• Advertisement
Sign in to follow this  

Couldn't think of a topic name

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