Jump to content
  • Advertisement
Sign in to follow this  
Roquqkie

Hierarchical Occlusion Maps - Projection test

This topic is 4811 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'm in the process of implementing hierarchical occlusion maps. I have my Z-hierarchi and I now need to test wether an object is occluded or not. This should be done by projecting the objects bounding box into the Z-hierarchi, but from here it gets a little blurry. Should I: Check each pixel in the projected area and then skip the object if none of the tests is true and continue down the Z-hierarchi if some of the pixel-tests is true? It seems to me that's a lot of pixel-processing >:) Best summer-regards, Roquqkie

Share this post


Link to post
Share on other sites
Advertisement
Basically yes, this is what should be done, the process is pixel intensive but
you may also use a scaled version for your rasterizer and smd instructions for inner loop like checking z value in a single row for 2floats at time or 4 if you use different packing.

Share this post


Link to post
Share on other sites
HOM's are quite processor intensive. The recursion on a per-pixel level is way more expensive then it needs to be.

I researched most of this and found a middle alternative which implimented most of the same software tests on the image map, but without the hierachy.

http://www.badheat.com/sinewave/workbench/downloads/McanlisRastOccl.pdf

~Main

Share this post


Link to post
Share on other sites
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!