Code Examples

Code Examples


Standalone Viewers

OpenSubdiv builds a number of standalone viewers that demonstrate various aspects of the software.


OpenGL examples
DirectX examples
Plugin examples

Common Keyboard Controls

Left mouse button drag   : orbit camera
Middle mouse button drag : pan camera
Right mouse button       : dolly camera
n, p                     : next/prev model
1, 2, 3, ..., 9, 0       : specify adaptive isolation or uniform refinment level
+, -                     : increase / decrease tessellation
Tab                      : toggle full-screen
Esc                      : turn on / off the HUD
w                        : switch display mode
q                        : quit