Archived

This topic is now archived and is closed to further replies.

Gammastrahler

problem with frustum culling

Recommended Posts

hi, i have implemented frustum culling in my 3d-engine, the code is from a game programming tutorial. there was no need to modify this code, and the demo program with that code (scene with flying spheres) worked properly. but in my 3d engine, this works only for polygons when all of its points lie in the frustum. for example, if i are at some distance to a wall, the wall is drawn, but as i approach the wall, and it spans the entire screen, it dissapers - ok this is logical but how to handle this case? need i to implement space partitioning or someone else? thanks gammastrahler

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
Change the distance to your near clip plane maybe? Or don''t let the camera get close enough to a polygon to clip it away with the near plane.

Share this post


Link to post
Share on other sites
Anon. poster, try reading his question before posting a reply which has nothing to do with his post.

Gammastrahler, do some checks to see whether the points are on opposing sides of the frustum, and you should be able to resolve it a bit.

-----------------------
chain=chain->chain;

Share this post


Link to post
Share on other sites