Jump to content
  • Advertisement

Archived

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

Mazdak

Again Moving in the world(kind of math problem)

This topic is 5432 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

I want to move in my scence,I know I have to use GetTransform function for D3DTS_WORLd(Is that correcr?) and then use D3DXMatrixMultiply function to mutiple it to a transformation matrix and create a new matrix for new location. Now the problem is what value this trasformation matrix should have?(For example for moving to left or forward) How can I create this matrix? Thanks Mazy

Share this post


Link to post
Share on other sites
Advertisement
u dont need GetTransform, u need create a new matrix for SetTransform, that matrix is create like this:
1) make a rotation matrix
2) make a translation matrix
3) multiply them to a new matrix
4) transform the new matrix
5) if u need to render object, render now.

that''s all.

Share this post


Link to post
Share on other sites
quote:
Original post by nlo
u dont need GetTransform, u need create a new matrix for SetTransform, that matrix is create like this:
1) make a rotation matrix
2) make a translation matrix
3) multiply them to a new matrix
4) transform the new matrix
5) if u need to render object, render now.

that''s all.


Thanks for your reply. I don''t know somethings here. For aking a rotation and translation matrix, what value they should have, this is mostly my problem. And for item 4,what do you mean by transform the new matrix.

Sorry,I''m newbie to this field and my questions are kind of dumb questions.

Mazy

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!