예제 #1
0
파일: Scene.cs 프로젝트: rzel/sunflowsharp
        /**
         * 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
파일: Scene.cs 프로젝트: rzel/sunflowsharp
 /**
  * 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
파일: Scene.cs 프로젝트: Vargol/PhotonPump
 /**
  * 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;
 }