Jump to content
  • Advertisement
Sign in to follow this  
basudev1311

Couldn't think of a topic name

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

In OpenGL: say i've two cameras in my scene (A & B). I want to draw my scene from A's point of view, But depth calculations have to be from B's point of view. and I want to do this in real time. thanks in advance for all the suggestions. I hope my question isn't silly. I wanna use this to do shadows.

Share this post


Link to post
Share on other sites
Advertisement
The best I can think of is using a point light as B, and use the attenuation to determine the distance to B (it would be equal to the inverse of the diffuse color from that light). You can then use this distance for computations.

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!