/** * 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; }
/** * Update the instance lists for this scene. * * @param instances regular instances * @param infinite infinite instances (no bounds) */ public void setInstanceLists(Instance[] instances, Instance[] infinite) { infiniteInstanceList = new InstanceList(infinite); instanceList = new InstanceList(instances); rebuildAccel = true; }