Virtual Car Showroom application
Using our WebGL skills and the infrastructure code that we have developed, we will create an application that allows visualizing different 3D car models. The final result will look like this:
First of all, we need to define what the graphical user interface (GUI) is going to look like. Then, we will be adding WebGL support by creating a canvas element and obtaining the correspondent WebGL context. Simultaneously, we need to define and implement the Vertex Shader and Fragment Shader using ESSL. After that, we need to implement the
three functions that constitute the lifecycle of our application: configure
, load
, and render
.
First, let's consider some particularities of our virtual showroom application.
Complexity of the models
A real-world application is different from a proof of concept demo in that the models that we will be loading are much more detailed than simple spheres, cones, and other geometric figures. Usually, models have lots of vertices conforming...