Jump to content
  • Advertisement
Sign in to follow this  

Determining camera obstructions?

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

So, here's my idea. I want to be able to create a circular cutout around my character to see through any camera obstrucions. I swear that one of the katamari games does this (maybe the second one?). All of my objects have bounding spheres and, unfortunately, none of them are necessarily static (by the nature of our game). Right now I'm using a frustum from the character center to my screen to determine what objects are obstructing view of my character. However, it catches really big objects too, like my ground plane, which have very large bounding spheres. The grand plan is to use objects that pass this frustum test and then use the stencil buffer to keep a clear circle around my character. Has anyone ever seen this done, and/or have any ideas on its implementation? Thanks :D

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!