Skip to Main Content
WebGL Insights
book

WebGL Insights

by Patrick Cozzi
August 2015
Intermediate to advanced content levelIntermediate to advanced
416 pages
16h 58m
English
A K Peters/CRC Press
Content preview from WebGL Insights
198 12. Sketchfab Material Pipeline
12.2.4 WebGL Viewer
Our WebGL viewer loads a 3D scene in the order
described by Figure12.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. Aer 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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Learning HTML5 Game Programming: Build Online Games with Canvas, SVG, and WebGL

Learning HTML5 Game Programming: Build Online Games with Canvas, SVG, and WebGL

James L. Williams

Publisher Resources

ISBN: 9781498716079