manual matrix multiplication
I am using gluUnProject to get my mouse coordinates in 3D, but i can''t get it to work with my view (looking down the Y axis) because it only ever gives me a 1 for the Z value. This brings me to my question:
Could i do gluUnProject before ANY modelview transformations,save the matrix to a mouse matrix or something, and then after getting my view matrix (after setting the camera of course) via glGetFloatv, and multiply mouse matrix * view matrix = good mouse.
how would i put the untransformed values into a matrix, and then get them out again?
sorry if this doesn''t make sense to you. I''d be more than happy to clarify if you need it. Thank in advance!
-Cody
>>I am using gluUnProject to get my mouse coordinates in 3D, but i can''t get it to work with my view (looking down the Y axis) because it only ever gives me a 1 for the Z value. This brings me to my question:<<
are u using readpixels to get the depth value.
see the faq for an example (www.opengl.org right side)
http://uk.geocities.com/sloppyturds/kea/kea.html
http://uk.geocities.com/sloppyturds/gotterdammerung.html
are u using readpixels to get the depth value.
see the faq for an example (www.opengl.org right side)
http://uk.geocities.com/sloppyturds/kea/kea.html
http://uk.geocities.com/sloppyturds/gotterdammerung.html
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement