Introduction to WebGL

In the previous project, we learned to use X3D, which declares the location of items in 3D space, including that of lights and the camera. There were additional JavaScript libraries to read (parse) X3D that links directly to WebGL. X3D is a great file format to learn 3D concepts. I regularly taught classes on X3D to students in high schools and post-graduate courses at the University of California. However, WebGL gets us closer to 3D technology and gives us more direct access to the graphics card, and offers more capabilities to control the imagery.

WebGL uses JavaScript programming in a regular HTML web page. It eventually loads the 3D models to the graphics card to draw (render) 3D scenes. Many applications can use either ...

Get WebGL HOTSHOT 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.