Sign in to follow this  
BloodOrange1981

Character silhouette visible through geometry problem

Recommended Posts

Hi Gamedev community, my problem for today is trying to render a characters' silhouette through geometry if there is any occlusion between the camera's pov and a character mesh. I understand how to detect the occlusion (if the vector/ray between the character and the camera intersects other geometry first) and then reorder the rendering calls with depth culling turned off for the character's outline (or composite the outline onto the final image as a kind of post process) but what if half the character is visible and half the character isn't?

 

E.g when turning a corner or half occluded.

 

Just so you know I'm implementing this in unity but I'd like a more high level approach to the problem so that in the future I can try and apply it to other engines and/or rendering APIs.

 

Thanks!

 

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