forked from x3dom/x3dom
-
Notifications
You must be signed in to change notification settings - Fork 0
Code Flow
Andreas Plesch edited this page Nov 12, 2016
·
3 revisions
X3dom goes through many steps to produce the graphical representation of a x3d scene. This document describes the main phases of this process starting from when the browser requests a new frame to be rendered in the designated space.
The setup phase includes attaching a canvas with webgl context to the page, and installing listeners to change events inside the x3d subtree. The setup is triggered by a document load event handler 'onload' in Main.js loadX3DOM(). A x3dcanvas object is created and loaded and a runtime object is created and initialised.