O'Reilly logo

WebGL Beginner's Guide by Brandon Jones, Diego Cantor

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Time for action — exploring rotations: world space versus camera space

  1. Open ch4_ModelView_Rotation.html in your HTML5 browser:
    Time for action — exploring rotations: world space versus camera space
  2. Just like in the previous example, we will see:
    • A cone at the origin of the world
    • The camera is located at [0,2,50] in world coordinates
    • Three sliders that will allows us to rotate either the world or the camera
    • Also, we have a matrix where we can see the result of different rotations
  3. Let's see what happens to the axis after we apply a rotation. With the World coordinates button selected, rotate the world 90 degrees around the x-axis. What does the Model-View matrix look like?
  4. Let's see where the axes end up after a 90 degree rotation ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required