/** * 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; }
/** * 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); }
public RenderObjectHandle(CameraBase camera) { obj = camera; type = RenderObjectType.CAMERA; }
public void put(string name, CameraBase camera) { renderObjects[name] = new RenderObjectHandle(camera); }
/** * 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; }