2026-07-14

World Matrix vs View Matrix

World Matrix vs View Matrix

In 3D graphics, everything is about coordinate spaces. An object has its own local space, where its vertices are defined relative to its center. The world matrix transforms these local coordinates into world space, the shared coordinate system where all objects in the scene live. The view matrix then transforms world space into camera space, where the camera is at the origin looking down a specific axis.

The world matrix contains the object's position, rotation, and scale. When you move an object in your 3D software, you are changing its world matrix. When the renderer draws the object, it multiplies every vertex by the world matrix to find out where that vertex is in the world. This is why you can have a cube defined with vertices at plus or minus one, and it can appear anywhere in the scene.

The view matrix is the inverse of the camera's world matrix. It transforms everything so that the camera is at the origin, looking along the Z axis. This makes the rendering math much simpler because the renderer always works in camera space. The projection matrix then takes over to transform camera space into the final 2D image on screen, applying perspective or orthographic projection.

In VFX tracking, you work with these matrices constantly. The tracking software gives you the camera's world matrix for every frame, which tells you where the camera was in the scene. When you export to a 3D package, this becomes the camera's animation. Understanding the difference between world and view space helps you debug issues when objects appear in the wrong place or orientation.

Normal matrices are a related concept. When you transform an object with non uniform scale, the normals of the surface get distorted. The normal matrix is the inverse transpose of the world matrix, and it corrects this distortion so that lighting calculations are correct. This is handled automatically by most renderers, but it is good to know about when you encounter strange lighting artifacts on scaled objects.

Let's work together

Do you need more info, help with your project, or to develop an idea?

Whether it's an easy question, a quick doubt, or just a 5-minute chat, send me a message—it costs nothing and I'm always ready to help. I love discussing a problem to understand it, getting creative with solutions, and focusing on simple, reliable, and straightforward ideas that we can actuate quickly.

Contact me

Switch Topic

Choose a specialized topic to explore: