   [SOLVED]moving meshes?
  Hi, I finally got a mesh of a monkey (provided by Blender as a .x file) to display using functions like DrawSubset.However, now that it displays... how do I move it? When I was dealing with vertices and not meshes, moving objects was simply a matter of adjusting the vertex values each frame before passing it into the vertex buffer on the graphics card.Now with a mesh, I don't see its position, rotation or scale values anywhere.[Edited by - xytor on June 13, 2009 10:06:36 AM]
  effect.world;  I meant in c++, but your reply gave me some ideas.I thought the function SetTransform(D3DTS_WORLD,&matrix) somehow modified every mesh in the program. MSDN was not helpful, either.However it occured to me that it modifies only the meshes drawn after it, and it does!Thanks for your help.;  Hi, all works using matrix transformations, the main 3 transforms are scale, rotate and translate, in that order.Locking the vertex buffer every frame only for move your mesh is not the wayto move objects, is very slow and you really don´t need to do that, using matrixtransformations you don´t modify geometry, only transform all the vertexto another position. Locking the vertex buffer to modify are common used forsoftware skinning (animated meshes), soft-bodies or things what modify thegeometry of your mesh.Speaking about C++ you can read this tutorialhttp://www.chadvernon.com/blog/tutorials/directx9/transformations/   