Click to See Complete Forum and Search --> : DirectX transformations


Bobbysl
April 5th, 2009, 12:08 PM
I'm trying to transform objects in DirectX. I'm using .x files. All the tutorials I read seem to say something like this


D3D_Device->SetTransform( D3DTS_VIEW, &matrix );


That works well when i have one object.

SetTransform transforms the entire view right? so what if i have multiple objects, how do i transform each object by itself???

Thanks

Bobbysl
April 6th, 2009, 10:01 AM
Ok, i figured it out. If anyone else is wondering you have to SetTransform for each object