
198 12. Sketchfab Material Pipeline
12.2.4 WebGL Viewer
Our WebGL viewer loads a 3D scene in the order
described by Figure12.6.
First, a resource manager (rst in/rst out [FIFO]
queue simultaneously downloading resources)
schedules the assets to load. We limit
*
the number
of threads loading data to create independence from
the browser implementation limit. Aer a resource
is loaded, a slot is freed to download the subsequent
resource. At time zero, the materials data and scene
information are available to the viewer. Data are
then pushed in the following order:
1. 3D geometry (binary array) using a device-dependent Level of Detail
2. Low-resolut ...