Sign in to follow this  
basudev1311

Couldn't think of a topic name

Recommended Posts

basudev1311    122
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
ToohrVyk    1595
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

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