Jump to content
  • Advertisement
Sign in to follow this  

OpenGL Ambient Occlusion

This topic is 2920 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

I'm trying to implement ambient occlusion as seen on this page (scroll down a bit). I think I understand how it works, rays are projected from the center of each occupied cell (ones that have faces), the distance the rays travel before colliding into another occupied cell is recorded. An occlusion value for each face is calculated using the distances the rays travelled, and the sum of the cosines of the face normal and ray normal. That occlusion value is then used to determine how much lighting the face receives.

Trouble is, the source is written in python and the author doesn't go into much detail on how to calculate how far the rays travel, so I need a bit of help. Are there any other resources on this or can anybody explain this for me? Thanks in advance.

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.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!