Jump to content
  • Advertisement


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


Question about mesh position in the world matrix

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

Hi.. I''ve set my world''s matrix... To do this I''ve se three vector: Pos, AtLook, Up. But with 3 vector I can''t set the position of a mesh.. so if I do move a single mesh.... what can I do? Byezzzzzzz ^__^

Share this post

Link to post
Share on other sites
I think when you say ''pos,lookat,up'' you mean you have set your view matrix. Not the world matrix. To set your world matrix you should use functions,


Those functions set up the world, then you setTransform with the world matrix, and render your mesh. Generally it would look something like this

-Set projection matrix (perspective/orthographic)
-Set view matrix (lookat/up/pos)
-set world matric (you mess around with this to move meshes)
-Render mesh.

:::: [ Triple Buffer V2.0 ] ::::

Share this post

Link to post
Share on other sites
Guest Anonymous Poster
Oh thanks very much

I''ve understand ... In sdk I''ve find these information.
But now I''ve another question

If I want move two meshes, I must setting 2 matrixs?
I don''t find this in SDK...

Thanks again..

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.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!