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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access