I just wondering why if I change the orientation of the view for example:
From:
glTranslatef(0.0, 0.0, 0.0);
glScalef(1.0, 1.0, 1.0);
glRotatef(720, 1.0, 0.0, 0.0);
glRotatef(360, 0.0, 0.0, 1.0);
gluUnProject Coords: objx = -0.488667 objy = 0.025000 objz = -0.499775
When I do rotation, scaling & tranlation for ex:
glTranslatef(0.105000, -0.370000, 0.000000)
glScalef(1.100000, 1.100000, 1.100000)
glRotatef(697.000000, 1.0, 0.0, 0.0);
glRotatef(328.333344, 0.0, 0.0, 1.0);
gluUnProject Coords: objx = -0.338066 objy = -0.303501 objz = -0.625457
Does gluUnProject really behaves this way?
I just followed this article:
http://nehe.gamedev.net/data/articles/article.asp?article=13#2