Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

Mursel

movin player...

This topic is 5857 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

ok...i have one mesh object loaded in 3D space...so i want to make a mesh and camera moving together...i tried with D3DXMatrixTranslation function with same coords of mesh and camera...its something like this: if(key left) { D3DXMatrixTranslation(&matrix1,x,y,z); //for camera D3DXMatrixTranslation(&matrix2,x,y,z); //for mesh D3DXMatrixMultiply(&matrix3,&matrix2,&matrix1); //here i am confused...how to put them together (camera and mesh) device->SetTransform(View,matrix3); }

Share this post


Link to post
Share on other sites
Advertisement
You''re getting it completely wrong... You should go to www.drunkenhyena.com or nexe.gamedev.net or any other site with basic tutorials and read them carefully.

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!