Aily Posted October 4, 2010 Share Posted October 4, 2010 I want to build my own not-deffered renderer for LW2.24, and all works fine. FSAA and light. But for result calculation of shadow map I need WorldViewProj matrix of light (i.e. camera that renders shadow depth buffer) to compare depths of source pixel and it's position in the depth texture. So, is Leadwerks have such methods? P.S. before ask to your question: "Why do you need forward render?" With deffered lighting in my project (it have sun light only) i have 100 FPS (notebook), and with forward render - 250 FPS. So... think you understand. Thanks Quote "Better" is big enemy of "good" Link to comment Share on other sites More sharing options...
Canardia Posted October 4, 2010 Share Posted October 4, 2010 Try adding 10000 cubes and see if your forward renderer is still faster with your sun then. So forward renderer is only good when you make simple scenes, and not real games. Quote ■ Ryzen 9 ■ RX 6800M ■ 16GB ■ XF8 ■ Windows 11 ■ ■ Ultra ■ LE 2.5 ■ 3DWS 5.6 ■ Reaper ■ C/C++ ■ C# ■ Fortran 2008 ■ Story ■ ■ Homepage: https://canardia.com ■ Link to comment Share on other sites More sharing options...
Aily Posted October 4, 2010 Author Share Posted October 4, 2010 Try adding 10000 cubes and see if your forward renderer is still faster with your sun then. So forward renderer is only good when you make simple scenes, and not real games. My project don't be render more than 50 000 triangles per frame. And about 20-30 DIP calls (primitives at frame), so, i think forward render will be better. So. How about matrices? Quote "Better" is big enemy of "good" Link to comment Share on other sites More sharing options...
Canardia Posted October 4, 2010 Share Posted October 4, 2010 A light has a camera, since you can say CameraRange(light,0.01,1000), but the DLL is missing a method like GetEntityCamera(light). Quote ■ Ryzen 9 ■ RX 6800M ■ 16GB ■ XF8 ■ Windows 11 ■ ■ Ultra ■ LE 2.5 ■ 3DWS 5.6 ■ Reaper ■ C/C++ ■ C# ■ Fortran 2008 ■ Story ■ ■ Homepage: https://canardia.com ■ Link to comment Share on other sites More sharing options...
Aily Posted October 5, 2010 Author Share Posted October 5, 2010 Lum, you don't understanding I need something like cam=createcamera() world:tmatrix=getcameraWORLDmatrix(cam) view:tmatrix=getcameraVIEWmatrix(cam) proj:tmatrix=getcameraPROJmatrix(cam) Quote "Better" is big enemy of "good" Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.