Chapter 2
The First Steps
In this chapter we deal with the first practical steps that will accompany us for the rest of the book.
First we will show how to set up our first working rendering inside an HTML page by using WebGL. More precisely, we will draw a triangle. We advise you that at first it would look like you need to learn an awful lot of information for such a simple task as drawing a triangle, but what we will do in this simple example is the same as what we would do for a huge project. Simply put, you need to learn to drive a car for going 10 miles as well as 100 miles.
Then we will introduce the EnvyMyCar (NVMC) framework that we will use for the rest of this book for putting into use the theory we will learn along the way. Briefly, ...
Get Introduction to Computer Graphics 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.