[Q] gluUnProject with perspective projection

I tested gluUnProject function in orthogonal projection and it worked well.

I just changed projection method from orthogonal to perspective. And then glUnProject function seems not to work.

Is the gluUnProject applicable only to orthogonal projection ?

Originally posted by Wonwoo:
[b]
I tested gluUnProject function in orthogonal projection and it worked well.

I just changed projection method from orthogonal to perspective. And then glUnProject function seems not to work.

Is the gluUnProject applicable only to orthogonal projection ?

[/b]

No, you may want to do a search in the beginners forum as this is not really advanced.

GluUnProject() should work with any type of projection. Are you sure you are giving it the right parameters?