Jump to content
  • Advertisement
Sign in to follow this  
Coluna

Terrain Dynamic Occlusion

This topic is 4886 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi; I finished doing my terrain occlusion system, and wanna know if any of u had done it like this... 0 - For each patch (chunk, node, or any name u use) of my terrain, I create an occlusion querie (HW). 1 - For each frame, after sorting front-back and fast frustum culling, i get the occlusion value(from the last frame, avoinding the stall of pipeline) of each visible patch,testing if was visible in previous frame. If yes, i start the occlusion querie, draw that patch as usual and stop that querie. If the patch wasnt visible last frame, i add it to a list of possible not visible patches. 2 - After rendering all visible patches, i loop throuhg the list of possible not visible patches, start the querie and draw only its bounding box (no color writes...), and stop the querie. 3 - go 1 I dont know if its a good way, but for non-flat terrains it works well, but for flat ones the overhead of occlusion functions its killing the performance....in FarCry they use a similar way, but i didnt find out how they do...even in wireframe they method works....maybe using a PVS could help (but no real-time deformation of course...)? Please comment your methods of culling... thanks!!!

Share this post


Link to post
Share on other sites
Advertisement
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!