Sign in to follow this  

Couldn't think of a topic name

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

This topic is 4133 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.

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