Jump to content
  • Advertisement
Sign in to follow this  
BloodOrange1981

Character silhouette visible through geometry problem

This topic is 1173 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 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
Advertisement

Can you just render the outline with a reversed depth comparison, so it only appears when it's behind something else?

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.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!