hi guys
I've recently, the last day or two go into Dx9 with VB.NET (due to job)
And i have a problem...possibly.
basically, i'm rendering 2 meshes, and i want one to turn on an axis while the other turns on another axis.
If i do this
dxClass.dxDevice.Transform.World = Matrix.Translation(-40, 0, 0)
dxMesh1.RenderMesh()
dxClass.dxDevice.Transform.World = Matrix.Translation(40, 0, 0)
dxMesh2.RenderMesh()
Then they both render at different points as i expected.
However, if i try this...
'New Line Here!
dxClass.dxDevice.Transform.World = Matrix.Multiply(dxClass.dxDevice.Transform.World, Matrix.RotationYawPitchRoll(Math.PI / 10000, Math.PI / 10000, Math.PI / 10000))
dxClass.dxDevice.Transform.World = Matrix.Translation(-40, 0, 0)
dxMesh1.RenderMesh()
dxClass.dxDevice.Transform.World = Matrix.Translation(40, 0, 0)
dxMesh2.RenderMesh()
The first Mesh doesn't Rotate at all, it just sits there.
Now, im sure it does that due to the Translation of me playing it a x:-40, however, how am i supposed to place an object off-center and get it rotating, there obviously has to be a way.
I'm not asking for direct code, as that way i wouldn't learn as well, but if possible pointers to the right pages etc.
Cheers,
Dean