
365
23
Designing Cameras for
WebGL Applications
Diego Cantor-Rivera and Kamyar Abhari
23.1 Introduction
An important consideration for any WebGL application is the implementation of the
camera. Cameras must perform a series of matrix transformations that move the world,
translating and rotating the geometry to obtain a vantage point. However, WebGL does
not provide a construct to represent cameras, and each developer needs to implement his
or her own. is is challenging, in particular, for a JavaScript developer with no experi-
ence in computer graphics: e math behind the operation of cameras is not developer
friendly and it is a source of conf ...