WebGL is a new web technology that brings hardware-accelerated 3D graphics to the browser without installing additional software. As WebGL is based on OpenGL and brings in a new concept of 3D graphics programming to web development, it may seem unfamiliar to even experienced Web developers.
Packed with many examples, this book shows how WebGL can be easy to learn despite its unfriendly appearance. Each chapter addresses one of the important aspects of 3D graphics programming and presents different alternatives for its implementation. The topics are always associated with exercises that will allow the reader to put the concepts to the test in an immediate manner.
What you will learn from this book
- Understand the structure of a WebGL application
- Build and render 3D objects with WebGL
- Load complex models using JSON and AJAX
- Set up a lighting model using shaders, physics of light reflection, and lighting strategies
- Create a camera and use it to move around a 3D scene
- Use texturing, lighting and shading techniques to add greater realism to 3D scenes
- Implement selection of objects in a 3D scene with the mouse
- Advanced techniques to create more visually complex and compelling scenes