Skip to Content
WebGL Programming Guide: Interactive 3D Graphics Programming with WebGL
book

WebGL Programming Guide: Interactive 3D Graphics Programming with WebGL

by Kouichi Matsuda, Rodger Lea
July 2013
Intermediate to advanced
600 pages
15h 15m
English
Addison-Wesley Professional
Content preview from WebGL Programming Guide: Interactive 3D Graphics Programming with WebGL

Chapter 2. Your First Step with WebGL

As explained in Chapter 1, “Overview of WebGL,” WebGL applications use both HTML and JavaScript to create and draw 3D graphics on the screen. To do this, WebGL utilizes the new <canvas> element, introduced in HTML5, which defines a drawing area on a web page. Without WebGL, the <canvas> element only allows you to draw two-dimensional graphics using JavaScript. With WebGL, you can use the same element for drawing three-dimensional graphics.

This chapter explains the <canvas> element and the core functions of WebGL by taking you, step-by-step, through the construction of several example programs. Each example is written in JavaScript and uses WebGL to display and interact with a simple shape on a web page. ...

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.
Start your free trial

You might also like

Real-Time 3D Graphics with WebGL 2 - Second Edition

Real-Time 3D Graphics with WebGL 2 - Second Edition

Farhad Ghayour, Diego Cantor

Publisher Resources

ISBN: 9780133364903Purchase bookOther