Sign in to follow this  

Determining camera obstructions?

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this