Fatming

hi~
I want to change left hand to right hand coordinate system

Y Z
| /
| /
|/
---->X

above is the left hand coordinate Y up I used,

I setup the coordinate change matrix related to

rightt hand coordinate Z up
Z Y
| /
| /
|/
----->X

1 0 0
0 0 1
0 1 0

//the coordinate change matrix

D3DXMATRIX mat = D3DXMATRIX(1,0,0,0,0,0,1,0,0,1,0,1);

//the right hand matrix from Max exporter

D3DXMATRIX pos = actor->getWorldMatrix();

//get the correct position
pos = mat*pos;

//get the orient matrix33 from mat

Matrix33 orient = GetOrientFromMatrix44(mat );

set inverse to orient,and apply orient to the pos

such as step I can get the correct position,

but the orient wont correct respond.....

have any idea for this

my math is too bad, so sorry for this...

thanks any advice to teach me to math way




Re: Game Technologies: Graphics How to convert Right coordinate matrix to Left hand coordinate matrix

Bad Habit

In the SDK documentation have a look at:

DirectX Graphics\Programming Guide\Getting Started\3-D Coordinate Systems and Geometry\3-D Coordinate Systems

It should help you in changing systems.





Re: Game Technologies: Graphics How to convert Right coordinate matrix to Left hand coordinate matrix

Fatming

thx, I should go to study more mah knowledge to solve such question : )