Time for action — exploring the Nissan GTX
- Open the file
ch4_CameraTypes.html in your HTML5 browser. You will see something like the following:
- Go around the world using the sliders in Tracking mode. Cool eh?
- Now, change the camera type to Orbiting mode and do the same.
- 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.
- 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 O’Reilly online learning.
O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.