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. ...

Get WebGL Beginner's Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.