weird lookatLH results , not understand

Started by
0 comments, last by SerialVelocity 13 years, 1 month ago
im using D3DXMatrixLookAtLH(&temp ,&vect1, &vect2, &vectUP); to get the look up funtion

vect1 is 0,0,0
vect2 is 2,0,2


but im getting something like matrix facing Z = -0.7,0 , 7

so instead of pointing north east its pointing north west .

when i run it in real time , the model rotates the wrong way around, it not make sence at all , even tryed D3DXMatrixLookAtRH, but gave differnt results but still werid and very wrong

can any one help please
Advertisement
What is vectUP set to? make sure it's ( 0, 1, 0 ).

This topic is closed to new replies.

Advertisement