Ejemplo n.º 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;
        }
Ejemplo n.º 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;
        }
Ejemplo n.º 3
0
 /**
  * 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;
 }
Ejemplo n.º 4
0
 /**
  * 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;
 }