Example 9: Polynomial Texture Maps

A WebGL-enabled browser is needed to run the examples.
Refer to this page for a quick HOWTO.


This demo streams a large multiresolution Polynomial Texture Map, managing an internal cache and a request queue, using frustum culling and projected error for prioritizing hierarchy nodes.
Polynomial Texture Maps are images that can be relighted from different directions.
Data source elaboration and shaders code from Gianpaolo Palma.


Key "1" : Toggle Image
Key "2" : Toggle Nodes Bounding Boxes
LeftMouseButton + MouseMove : Pan
Ctrl + LeftMouseButton + MouseMove : Change Light Direction
MouseWheel : Zoom
Shift+R : Reset Viewpoint