beginning Quadtree
I have my terrain accurately split up into a quadtree now.
I''m stuck on how to do culling (like don''t draw if it''s outside the view frustum). I know it''s a simple test of determining whether a point is on the left or right of certain planes, but how can I extract the planes from the view frustrum and what exactly is that equation to determine which side a point is on? It''s some dot3 evaluation isn''t it?
I looked around for a while and everything I found just explains the concept but doesn''t tell me how to implement it. I''m using DirectX 9.0. Thanks!
Here is a superb tutorial on Frustum Culling, it is OpenGL but easily converted to DirectX, this is what I used for my frustum culling.
Link : http://www.markmorley.com/opengl/frustumculling.html
Hope it helps,
Steve
Link : http://www.markmorley.com/opengl/frustumculling.html
Hope it helps,
Steve
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement