A027298

10-22-2002, 07:08 PM

Hi!!!

What I try is to calculate a light position in the space of normalized device coordinates.

For example: I have a light at position (5.0, 5.0f, -5.0, 0.0), which is behind the camera, but in coordinates before the perspecive projection. How is this light mapped in to post-perspective space (the space of normalized device coordinates)?

What I think is, that I just have to multiply this position with a projection matrix to get the correct position. But I guess that's wrong. What do you guys think?

I hope some of you understand what I want.

Thanks!

What I try is to calculate a light position in the space of normalized device coordinates.

For example: I have a light at position (5.0, 5.0f, -5.0, 0.0), which is behind the camera, but in coordinates before the perspecive projection. How is this light mapped in to post-perspective space (the space of normalized device coordinates)?

What I think is, that I just have to multiply this position with a projection matrix to get the correct position. But I guess that's wrong. What do you guys think?

I hope some of you understand what I want.

Thanks!