Пример #1
0
        /**
         * Creates an empty scene.
         */
        public Scene()
        {
            lightServer = new LightServer(this);
            instanceList = new InstanceList();
            infiniteInstanceList = new InstanceList();
            acceltype = "auto";

            bakingViewDependent = false;
            bakingInstance = null;
            bakingPrimitives = null;
            bakingAccel = null;

            camera = null;
            imageWidth = 640;
            imageHeight = 480;
            threads = 0;
            lowPriority = true;

            rebuildAccel = true;
        }
Пример #2
0
        /**
         * Creates an empty scene.
         */
        public Scene()
        {
            lightServer          = new LightServer(this);
            instanceList         = new InstanceList();
            infiniteInstanceList = new InstanceList();
            acceltype            = "auto";

            bakingViewDependent = false;
            bakingInstance      = null;
            bakingPrimitives    = null;
            bakingAccel         = null;

            camera      = null;
            imageWidth  = 640;
            imageHeight = 480;
            threads     = 0;
            lowPriority = true;

            rebuildAccel = true;
        }
Пример #3
0
        /**
         * Get a transformation matrix that will transform world space points into
         * camera space.
         *
         * @return world to camera transform
         */
        public Matrix4 getWorldToCamera()
        {
            CameraBase c = server.getScene().getCamera();

            return(c != null?c.getWorldToCamera() : Matrix4.IDENTITY);
        }
Пример #4
0
 public RenderObjectHandle(CameraBase camera)
 {
     obj = camera;
     type = RenderObjectType.CAMERA;
 }
Пример #5
0
 public void put(string name, CameraBase camera)
 {
     renderObjects[name] = new RenderObjectHandle(camera);
 }
Пример #6
0
 /**
  * Sets the current camera (no support for multiple cameras yet).
  *
  * @param camera camera to be used as the viewpoint for the scene
  */
 public void setCamera(CameraBase camera)
 {
     this.camera = camera;
 }
Пример #7
0
 /**
  * Sets the current camera (no support for multiple cameras yet).
  *
  * @param camera camera to be used as the viewpoint for the scene
  */
 public void setCamera(CameraBase camera)
 {
     this.camera = camera;
 }