package { import flare.basic.*; import flare.collisions.*; import flare.core.*; import flare.events.*; import flare.materials.*; import flare.materials.filters.*; import flare.utils.*; import flash.display.*; import flash.events.*; import flash.geom.*; /** * Texture painting example. * * @author Ariel Nehmad. */ public class Test65_CustomProjection extends Sprite { private var scene:Scene3D; private var shape:Shape; private var texture:Texture3D; public function Test65_CustomProjection() { scene = new Viewer3D(this); scene.autoResize = true; scene.addChildFromFile( "elsa.zf3d" ); // this is just to avioid the automatic set of the camera that comes with the model. scene.allowImportSettings = false; scene.camera = new Camera3D(); scene.camera.orthographic = true; scene.camera.projection = Matrix3DUtils.buildOrthoProjection( -200, 200, -120, 120, 0, 1000 ); scene.camera.z = -150; } } }