beginning Quadtree

Started by
1 comment, last by okonomiyaki 20 years, 11 months ago
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!
Advertisement
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

If it isn't working, take a bath, have a think and try again...

Thank you very much! That''s exactly what I was looking for!

This topic is closed to new replies.

Advertisement