manual matrix multiplication

Started by
1 comment, last by Grizwald 21 years, 6 months ago
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 love me and you love you.
Advertisement
>>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
oh i tried that also! it doesn''t work...would the way i described work? and how would it?
I love me and you love you.

This topic is closed to new replies.

Advertisement