Initializing Components
Render Controller
Render Controller handles the rendering pipeline - It takes textures from the cameras setup , processes them and renders the final output onto the specified canvas.
Render Controller expects
Canvas where the output has to be rendered
WebGL context of the output canvas
Window object
Convergence distance
This initialization can be done once on launch along with your framework initialization.
Cameras and Projections Matrices
Depending on the device the application is being developed for , the scene typically requires 4 to N cameras to be setup. The positions and the projection matrices of these cameras can be queried from the SDK while setting up. Before the cameras are setup.
The projection matrices in from SDK vary with the camera type, so the type of the camera has to be specified while querying 'perspective'
or 'orthographic'
for the projection matrices. These projection matrices can be set to the cameras that were initially setup
Render Textures
Once the cameras are setup, a render texture can be created to render the camera output and passed on to the SDK
The width and height of the render texture can be queried from the SDK as follows
Last updated