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 the Nissan GTX

  1. Open the file ch4_CameraTypes.html in your HTML5 browser. You will see something like the following:
    Time for action — exploring the Nissan GTX
  2. Go around the world using the sliders in Tracking mode. Cool eh?
  3. Now, change the camera type to Orbiting mode and do the same.
  4. Now, please check that besides the slider controls, both in Tracking and Orbiting mode, you can use your mouse and keyboard to move around the world.
  5. In this exercise, we have implemented a camera using two new classes:
    • Camera: to manipulate the camera.
    • CameraInteractor: to connect the camera to the canvas. It will receive mouse and keyboard events and it will pass them along to the camera. ...

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