O'Reilly logo

WebGL Programming Guide: Interactive 3D Graphics Programming with WebGL by Rodger Lea, Kouichi Matsuda

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

Chapter 10. Advanced Techniques

This chapter includes a “grab-bag” of interesting techniques that you should find useful for creating your WebGL applications. The techniques are mostly stand-alone, so you can select and read any section that interests you. Where there are dependencies, they are clearly identified. The explanations in this chapter are terse in order to include as many techniques as possible. However, the sample programs on the website include comprehensive comments, so please refer to them as well.

Rotate an Object with the Mouse

When creating WebGL applications, sometimes you want users to be able to control 3D objects with the mouse. In this section, you construct a sample program RotateObject, which allows users to rotate ...

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