Jump to content
  • Advertisement

Archived

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

The C modest god

Does the world matrix change the view matrix?

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

Advertisement
The WORLD, VIEW, and PROJECTION matrices can be thought of as three distinct things. The WORLD matrix transforms things in world space, "I move this box onto this table". The VIEW matrix transforms things to camera space. "I (the viewer) am looking down at the table", and the PROJECTION matrix transforms things into screen space "This point on the table maps to this x,y coordinate on my screen".

Due to the magic of Matrix multiplication, all three are multiplied together, and then the resulting matrix can be used to transform all geometry from it''s local space into screen space. When dealing with things in 3-D space however, you mostly want to stick with mucking with the WORLD matrix. Only change the VIEW matrix if you want to change your view, and only change the PROJECTION matrix if you want to change how you are mapping your coordinates to screen space (perspective or orthographic projections, changing your FOV, ect...)

Share this post


Link to post
Share on other sites
1. What NerdBoy80 said.

2. **Internally** D3D does hold other matrices which are built from the publically exposed ones. These internal matrices get rebuilt when one of the external matrices (WORLD, VIEW, PROJECTION) it''s formed from changes.

3. The OP may be getting confused due to OpenGL having a matrix called "MODELVIEW" which is simply a concatenated WORLD and VIEW matrix.

--
Simon O''Connor
3D Game Programmer &
Microsoft DirectX MVP

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!