Jump to content
  • Advertisement
Sign in to follow this  
lucky6969b

Object space to world space

This topic is 2544 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 understand that object's space origin is local to the object.
But how do I convert that into world coordinates?
D3DXMatrixTransformation(&mat,...&m_vPos);
enough to do this?
If not, what is the target transformation matrix that I should be after?
How do I go about constructing a world transformation matrix out of nothing?


Update:
I've come up with an idea and not sure if this is correct.
The object basically has a world Vector, I make a matrix from that. And multiply the local position of the part of the object i'm after to get the world transformation . Sounds correct?
Thanks

Share this post


Link to post
Share on other sites
Advertisement
Usually you provide each object with a position, rotation, and possibly a scale value, and then use those properties to create a world matrix. If you are unclear about this process, I would suggest taking a look through the Cg Tutorial which provides a nice entry level description of the process (plus lots of other stuff too).

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • 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!