Jump to content
  • Advertisement
Sign in to follow this  
Lshink

[SOLVED]Obtaining just the model matrix from the model-view matrix

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

Hello everyone: My apologies if this is the wrong section -- I'm new around here. Anyways, I have searched these forums for awhile, Google, and skimmed through my Red Book but I'm still not able to find a clear solution to this problem. What I am trying to do is take some object space coordinates and convert them to world space coordinates. I believe that all I need to do is multiply the object space vertices by the model matrix (not model view) to obtain the world coordinates. (Please correct me if I am mistaken). To do this of course, I would need to somehow extract the model matrix from the model-view matrix. Alas, here is where I'm stumped. How do I go about seperating the two? Thanks in advance. [Edited by - Lshink on February 19, 2008 11:39:37 AM]

Share this post


Link to post
Share on other sites
Advertisement
There is no separation. The two are logically equivalent. There is absolutely no difference between moving the camera left three units, and moving an object right three units. Of course, that's not really a problem: since you're the guy whose code is setting the model transformations, you know which transformations those are, and you can simply combine them into a world transformation yourself.

Share this post


Link to post
Share on other sites
One solution to the problem is to manage the cameras orientation as a separate matrix or vertices. This way you can obtain the data you're looking for.

Share this post


Link to post
Share on other sites
Gentlemen:

Thank you for the very descriptive, quick response. Since I won't be using this much, I think I will just go ahead and make my own world transformation matrix.

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.

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

Sign me up!