O'Reilly logo

Introduction to Computer Graphics by Marco Di Benedetto, Sumanta Pattanaik, Massimiliano Corsini, Fabio Ganovelli

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required