Wt uses WebGL to render 3D graphics in the browser. The class WGLWidget provides an interface for a 3D widget. Most of the functions provided by this class are a simple one-to-one map of the WebGL functions available in the browser.
The rendering process consists of four major parts, which should be implemented by overriding four virtual functions:
When a browser does not support WebGL (e.g. IE10 or less, mobile browsers ...), WGLWidget provides a server-side fall-back. The image will then be rendered in the server an sent to the browser as an PNG. Interaction is still possible, but the performance will be determined by the network latency. Also note that for practical scenarios this requires a server with hardware 3D acceleration.