Matrix Global/Local rotations/translations

97d70b06abb5a8829977ed3d33cb0c13
0
error0 101 Aug 27, 2006 at 18:16

What i do wrong in that code

D3DXMatrixScaling( &ScaleMatrix, 5.0f, 5.0f, 5.0f );
D3DXMatrixTranslation(&PositionMatrix, 0.0f, 0.0f, 0.0f );      
D3DXMatrixRotationYawPitchRoll(&RotationalMatrix,D3DXToRadian(value),0,0);


FinalMatrix=ScaleMatrix*PositionMatrix*RotationalMatrix;
device->SetTransform( D3DTS_WORLD, &FinalMatrix );

In that case my sphere fly around point? not herself
How can i do,that sphere rotate, at her center, and i can move her into another position

In Blitz3D,Ogre and others engine there is that function
SetPosition setting global position
SetMeshCenterPosition setting local center position
SetRotation setting LOCAL mesh rotation

Please help me, and i terribly sorry, butmy english suxx

2 Replies

Please log in or register to post a reply.

97d70b06abb5a8829977ed3d33cb0c13
0
error0 101 Aug 27, 2006 at 19:03

problem solved :)
but i can’t delete this topic

F7a4a748ecf664f189bb704a660b3573
0
anubis 101 Aug 27, 2006 at 20:07

The appropriate thing would be to post the solution to your problem for future reference