initial setup of rendering engine. In this tutorial we will be using Sandy3D rendering engine.

/**
* initial setup for Sandy3D.
*/publicfunction setupSandy(): void{// We create the camerathis.camera = new Camera3D(600, 400);
this.camera.near = 1;
// We create the "group" that is the tree of all the visible objectsvar root:Group = new Group();
// We create a Scene and we add the camera and the objects tree this.scene = new Scene3D("scene", this, camera, root );
this.scene.light = new Light3D(new Vector(0,0,1),100);
}