   Change Size of Meshes
  Hi all!I've succeeded in drawing static and animated meshes but i'd like to resize them (tiny in the SDK is a bit tall!).I thought I could multiply the vertices by a scale matrix but how can I get the vertices from a mesh?And I'm sure it's different for animated meshes because of bones:How can I change the size of skinned meshes?Thank you for your help...   
  Your world matrix should look something like this.Hope this helps.This works for animated and non animated meshes in the same way, since they're both drawn a single mesh at a time.D3DXMATRIX matRotation;D3DXMATRIX matTranslation;D3DXMATRIX matScaling; D3DXMatrixScaling(&matScaling,Scale.x,Scale.y,Scale.z);D3DXMatrixRotationYawPitchRoll( &matRotation, Yaw, Pitch, Roll );D3DXMatrixTranslation(&matTranslation,Position.x,Position.y,Position.z);m_pd3dDevice->SetTransform( D3DTS_WORLD, &(matScaling * matRotation * matTranslation) );//Draw each mesh subset with correct materials and texturefor (DWORD i = 0; i < pMesh->NumMaterials; ++i){m_pd3dDevice->SetMaterial(&pMesh->pMaterials9);m_pd3dDevice->SetTexture(0, pMesh->ppTextures);pDrawMesh->DrawSubset(i);};  OK thanks a LOTWell thats what i used to do when I wanted to move/rotate my meshes:But since I have many models at screen, when I want to move (and now resize) one mesh, I have to:- apply transformations to the World matrix- draw the mesh- reinitialise the World matrix - and draw the other meshes.Is this good?Because the scaling should be done just one time, at start, and not once per frame!   ;  You can't change the scale for skinned meshes, because you would then have to make the same adjustments to the offset matrix in the ID3DXSkinInfo, TransformationMatrix in each D3DXFRAME, and all of the animation keys.If you want to apply a matrix to all of the vertices of a non-skinned mesh, you can do this:D3DXVECTOR3* V;pMesh->LockVertexBuffer(0, (LPVOID*)&V);D3DXVec3TransformCoordArray(V, stride, V, stride, &Matrix, pMesh->GetNumVertices());pMesh->UnlockVertexBuffer();   ;  DXNut and WarisSweet: Thank you for your answer, it's ok now for me.   