Let's cover an example showing the different rotations in different spaces:
- Open ch04_02_model-view-rotation.html in your browser:
- As we did in the previous example, we will see the following:
- A cone at the origin of the world
- The camera is located at [0, 2, 50] in world coordinates
- Three sliders that allow us to rotate either the world or the camera
- A matrix where we can see the result of different rotations
- Let's see what happens to the axis after we apply a rotation. With the World coordinates selected, rotate the world 90 degrees around the x-axis. What does the Model-View matrix look like?
- Let's see where the axes end up after a 90 degree rotation around the x-axis:
- By looking at the first column, we can see that the x-axis has not changed. It's still [1, 0, 0]. This makes sense since we...