Manta Interactive Ray Tracer Development Mailing List

Text archives Help


[MANTA] r1577 - trunk/scenes


Chronological Thread 
  • From: boulos@sci.utah.edu
  • To: manta@sci.utah.edu
  • Subject: [MANTA] r1577 - trunk/scenes
  • Date: Sun, 29 Jul 2007 09:28:47 -0600 (MDT)

Author: boulos
Date: Sun Jul 29 09:28:44 2007
New Revision: 1577

Modified:
   trunk/scenes/cube.cc
   trunk/scenes/gridisovol.cc
   trunk/scenes/octisovol.cc
   trunk/scenes/vorpal.cc
Log:
scenes/cube.cc
scenes/gridisovol.cc
scenes/octisovol.cc
scenes/vorpal.cc

 Removing some warnings from these scenes.  We're probably going to need to
 modify the way getArgs works, since it should be using unsigned ints instead
 of signed ints (presumably this is a hold over from int argc).


Modified: trunk/scenes/cube.cc
==============================================================================
--- trunk/scenes/cube.cc        (original)
+++ trunk/scenes/cube.cc        Sun Jul 29 09:28:44 2007
@@ -68,7 +68,7 @@
 Scene* make_scene(const ReadContext& context, const vector<string>& args)
 {
   Factory factory( context.manta_interface );
-  
+
   int argc = static_cast<int>(args.size());
   Group* world = 0;
   for(int i=0;i<argc;i++){
@@ -91,7 +91,7 @@
   // You can specify the colors by either using 3 RGB components such
   // as Color(RGB(0.4, 0.4, 0.4)), or by using the ColorDB with a name
   // like ColorDB::getNamedColor("gray40")
-  Material* matl0=new Lambertian(Color(RGB(.4,.4,.4)));
+  //Material* matl0=new Lambertian(Color(RGB(.4,.4,.4)));
   Material* matl1=new Lambertian(ColorDB::getNamedColor("sky blue"));
 
   // Add a simple sphere to the scene

Modified: trunk/scenes/gridisovol.cc
==============================================================================
--- trunk/scenes/gridisovol.cc  (original)
+++ trunk/scenes/gridisovol.cc  Sun Jul 29 09:28:44 2007
@@ -37,83 +37,87 @@
 enum CuttingPlaneType { CUTTING_NONE, CUTTING_DEFAULT, CUTTING_SPECIFIED };
 
 ///////////////////////////////////////////////////////////////////////////
-extern "C" 
+extern "C"
 Scene* make_scene(const ReadContext& context, const vector<string>& args) {
-       
-    string filename = "";
-    int macrocells = 3;
-    double isovalue = 20;
-       
-       Vector plane_point;
-       Vector plane_normal;
-       
-       CuttingPlaneType cutting_type = CUTTING_NONE;
-       
-       // Parse args.i
-       for (int i=0;i<args.size();++i) {
-               if (args[i] == "-file") {
-                       if (!getStringArg(i, args, filename))
-                               throw IllegalArgument("gridisovol -file 
<filename>", i, args);
-               }
-        else if (args[i] == "-macrocells") {
-                       if (!getIntArg(i, args, macrocells))
-                               throw IllegalArgument("octisovol -macrocells 
<#macrocells>", i, args);
-               }
-        else if (args[i] == "-isovalue") {
-                       if (!getDoubleArg(i, args, isovalue))
-                               throw IllegalArgument("octisovol -isovalue 
<isovalue>", i, args);
-               }      
-               else {
-                       cerr << "Read built grid volume:" << endl;
-                       cerr << "-file <filename>"             << endl;
-            cerr << "-macrocells <#macrocells>" << endl;
-            cerr << "-isovalue <isovalue>" << endl;
-                       throw IllegalArgument( "gridisovol", i, args );
-               }
-       }
-    
-    char c_filename[2048];
-    strcpy(c_filename, filename.c_str());
-       
-    // Create the scene.
-       Scene *scene = new Scene();
-       Group *group = new Group();
-
-       Manta::BBox bounds; 
-    
-    //Material* mat1 = new Phong(Color(RGBColor(0.05f, 0.3f, 0.6f)), 
Color(RGBColor(1.f, 1.f, 1.f)), 50);
-    Material* mat1 = new Lambertian(Color(RGBColor(0.05f, 0.3f, 0.6f)));
-    IsosurfaceGridVolume* igv = new IsosurfaceGridVolume(c_filename, 
macrocells, isovalue, mat1);
-    bounds = igv->getBounds();
-    group->add(igv);
-               
-       // Add the tree to the scene.
-       scene->setObject( group );
-    
-    float fov = 45.f;
-    float view_dist = 0.5f * bounds[1].data[0] * (1.0f + 1.0f / tanf(0.5f * 
fov));
-    Vector lookat = (bounds[1] - bounds[0]) * 0.5f;
-    Vector eye = lookat;
-    Vector up = Vector(0,0,1);
-    eye.data[0] -= view_dist;
-       
-       // Set other important scene properties.
-       PinholeCamera *camera = new PinholeCamera(eye, lookat, up, fov);
-    //scene->setCamera(camera);
-
-    //NOTE: this will create a light directly "above" the volume in the +up 
direction.
-    //  Some volumes (e.g. heptane) will require us to change this to a -
-       LightSet *lights = new LightSet();
-    float ldist = 10.f * (lookat-eye).length();
-
-    lights->add( new PointLight( Vector(lookat + ldist*up), 
Color(RGBColor(1,1,1)) ) );
-       lights->setAmbientLight( new ConstantAmbient( 
Color(RGBColor(0.4,0.5,0.5) ) ));
-       scene->setLights(lights);
-
-       
-       // Background.
-    scene->setBackground( new ConstantBackground( Color(RGB(.96, 0.96, 
0.97)) ) );
-       
-       return scene;
+
+  string filename = "";
+  int macrocells = 3;
+  double isovalue = 20;
+
+  Vector plane_point;
+  Vector plane_normal;
+
+  // NOTE(boulos): As of 29-Jul-2007 this was unused.
+  //CuttingPlaneType cutting_type = CUTTING_NONE;
+
+  // Parse args.i
+  for (int i=0;i<args.size();++i) {
+    if (args[i] == "-file") {
+      if (!getStringArg(i, args, filename))
+        throw IllegalArgument("gridisovol -file <filename>", i, args);
+    }
+    else if (args[i] == "-macrocells") {
+      if (!getIntArg(i, args, macrocells))
+        throw IllegalArgument("octisovol -macrocells <#macrocells>", i, 
args);
+    }
+    else if (args[i] == "-isovalue") {
+      if (!getDoubleArg(i, args, isovalue))
+        throw IllegalArgument("octisovol -isovalue <isovalue>", i, args);
+    }
+    else {
+      cerr << "Read built grid volume:" << endl;
+      cerr << "-file <filename>"             << endl;
+      cerr << "-macrocells <#macrocells>" << endl;
+      cerr << "-isovalue <isovalue>" << endl;
+      throw IllegalArgument( "gridisovol", i, args );
+    }
+  }
+
+  char c_filename[2048];
+  strcpy(c_filename, filename.c_str());
+
+  // Create the scene.
+  Scene *scene = new Scene();
+  Group *group = new Group();
+
+  Manta::BBox bounds;
+
+  //Material* mat1 = new Phong(Color(RGBColor(0.05f, 0.3f, 0.6f)), 
Color(RGBColor(1.f, 1.f, 1.f)), 50);
+  Material* mat1 = new Lambertian(Color(RGBColor(0.05f, 0.3f, 0.6f)));
+  IsosurfaceGridVolume* igv = new IsosurfaceGridVolume(c_filename, 
macrocells, isovalue, mat1);
+  bounds = igv->getBounds();
+  group->add(igv);
+
+  // Add the tree to the scene.
+  scene->setObject( group );
+
+  float fov = 45.f;
+  float view_dist = 0.5f * bounds[1].data[0] * (1.0f + 1.0f / tanf(0.5f * 
fov));
+  Vector lookat = (bounds[1] - bounds[0]) * 0.5f;
+  Vector eye = lookat;
+  Vector up = Vector(0,0,1);
+  eye.data[0] -= view_dist;
+
+  // Set other important scene properties.
+  // NOTE(boulos): As of 29-Jul-2007 these were unused as well...
+
+  //PinholeCamera *camera = new PinholeCamera(eye, lookat, up, fov, fov);
+
+  //scene->setCamera(camera);
+
+  //NOTE: this will create a light directly "above" the volume in the +up 
direction.
+  //  Some volumes (e.g. heptane) will require us to change this to a -
+  LightSet *lights = new LightSet();
+  float ldist = 10.f * (lookat-eye).length();
+
+  lights->add( new PointLight( Vector(lookat + ldist*up), 
Color(RGBColor(1,1,1)) ) );
+  lights->setAmbientLight( new ConstantAmbient( Color(RGBColor(0.4,0.5,0.5) 
) ));
+  scene->setLights(lights);
+
+
+  // Background.
+  scene->setBackground( new ConstantBackground( Color(RGB(.96, 0.96, 0.97)) 
) );
+
+  return scene;
 }
 

Modified: trunk/scenes/octisovol.cc
==============================================================================
--- trunk/scenes/octisovol.cc   (original)
+++ trunk/scenes/octisovol.cc   Sun Jul 29 09:28:44 2007
@@ -35,157 +35,159 @@
 using namespace SCIRun;
 
 ///////////////////////////////////////////////////////////////////////////
-extern "C" 
+extern "C"
 Scene* make_scene(const ReadContext& context, const vector<string>& args) {
-       
-    string filename = "";
-    string buildfrom_filename = "";
-
-    int tstart = 0;
-    int tend = 0;
-    double variance = 0.1;
-    int kernel_width = 2;
-    int mres_levels = 0;
-    double isomin = 0;
-    double isomax = 255;
-    double isovalue = 100;
-       
-       // Parse args.i
-       for (int i=0;i<args.size();++i) {
-               if (args[i] == "-file") {
-                       if (!getStringArg(i, args, filename))
-                               throw IllegalArgument("octisovol -file 
<filename>", i, args);
-               }
-        else if (args[i] == "-buildfrom") {
-                       if (!getStringArg(i, args, buildfrom_filename))
-                               throw IllegalArgument("octisovol -buildfrom 
<filename>", i, args);
-               }
-        else if (args[i] == "-tstart") {
-                       if (!getIntArg(i, args, tstart))
-                               throw IllegalArgument("octisovol -tstart 
<tstart>", i, args);
-               }
-        else if (args[i] == "-tend") {
-                       if (!getIntArg(i, args, tend))
-                               throw IllegalArgument("octisovol -tend 
<tend>", i, args);
-               }       
-        else if (args[i] == "-variance") {
-                       if (!getDoubleArg(i, args, variance))
-                               throw IllegalArgument("octisovol -variance 
<variance>", i, args);
-               }        
-        else if (args[i] == "-kernel_width") {
-                       if (!getIntArg(i, args, kernel_width))
-                               throw IllegalArgument("octisovol 
-kernel_width <kernel_width>", i, args);
-               }
-        else if (args[i] == "-mres_levels") {
-                       if (!getIntArg(i, args, mres_levels))
-                               throw IllegalArgument("octisovol -mres_levels 
<mres_levels>", i, args);
-               }
-        else if (args[i] == "-isomin") {
-                       if (!getDoubleArg(i, args, isomin))
-                               throw IllegalArgument("octisovol -isomin 
<isomin>", i, args);
-               }           
-        else if (args[i] == "-isomax") {
-                       if (!getDoubleArg(i, args, isomin))
-                               throw IllegalArgument("octisovol -isomax 
<isomax>", i, args);
-               }           
-        else if (args[i] == "-isovalue") {
-                       if (!getDoubleArg(i, args, isovalue))
-                               throw IllegalArgument("octisovol -isovalue 
<isovalue>", i, args);
-               }                   
-               else {
-                       cerr << "Read built octree volume:" << endl;
-                       cerr << "-file <filename>"             << endl;
-                       cerr << "Octree build:" << endl;
-                       cerr << "  -buildfrom <filename> " << endl;
-                       cerr << "Octree build options:" << endl;
-                       cerr << "  -tstart <tstart>" << endl;
-                       cerr << "  -tend <tend>" << endl;
-                       cerr << "  -variance <variance>" << endl;
-                       cerr << "  -kernel_width <kernel_width>" << endl;
-                       cerr << "  -mres_levels <mres_levels>" << endl;
-                       cerr << "  -isomin <isomin>" << endl;
-                       cerr << "  -isomax <isomax>" << endl;
-            cerr << "  -isovalue <isovalue>" << endl;
-                       throw IllegalArgument( "octisovol", i, args );
-               }
-       }
-    
-    char c_filename[2048];
-    char c_buildfrom_filename[2048];
-    strcpy(c_filename, filename.c_str());
-    strcpy(c_buildfrom_filename, buildfrom_filename.c_str());
-       
-    OctreeVolume* ov;
-   
-    if (strcmp(c_filename, "")!=0)
-    {
-        cerr << "Creating octree volume from existing .otd data." << endl;
-        ov = new OctreeVolume(c_filename);
-    }
-    else if (strcmp(c_buildfrom_filename,"")!=0)
-    {
-        cerr << "Creating octree volume from original rectilinear grid 
data." << endl;
-        ov = new OctreeVolume(c_buildfrom_filename, tstart, tend, variance, 
kernel_width, (double)isomin, (double)isomax);
-    }
-    else
-    {
-        throw InputError( "octisovol: No volume source specified. Use either 
-file or -buildfrom.");
-    }
-    
-    ov->set_isovalue(isovalue);
-    
-    // Create the scene.
-       Scene *scene = new Scene();
-       Group *group = new Group();
 
-       Manta::BBox bounds;
+  string filename = "";
+  string buildfrom_filename = "";
 
-    //Material* mat1 = new Phong(Color(RGBColor(0.05f, 0.3f, 0.6f)), 
Color(RGBColor(1.f, 1.f, 1.f)), 50);    
+  int tstart = 0;
+  int tend = 0;
+  double variance = 0.1;
+  int kernel_width = 2;
+  int mres_levels = 0;
+  double isomin = 0;
+  double isomax = 255;
+  double isovalue = 100;
+
+  // Parse args.i
+  for (int i=0;i<args.size();++i) {
+    if (args[i] == "-file") {
+      if (!getStringArg(i, args, filename))
+        throw IllegalArgument("octisovol -file <filename>", i, args);
+    }
+    else if (args[i] == "-buildfrom") {
+      if (!getStringArg(i, args, buildfrom_filename))
+        throw IllegalArgument("octisovol -buildfrom <filename>", i, args);
+    }
+    else if (args[i] == "-tstart") {
+      if (!getIntArg(i, args, tstart))
+        throw IllegalArgument("octisovol -tstart <tstart>", i, args);
+    }
+    else if (args[i] == "-tend") {
+      if (!getIntArg(i, args, tend))
+        throw IllegalArgument("octisovol -tend <tend>", i, args);
+    }
+    else if (args[i] == "-variance") {
+      if (!getDoubleArg(i, args, variance))
+        throw IllegalArgument("octisovol -variance <variance>", i, args);
+    }
+    else if (args[i] == "-kernel_width") {
+      if (!getIntArg(i, args, kernel_width))
+        throw IllegalArgument("octisovol -kernel_width <kernel_width>", i, 
args);
+    }
+    else if (args[i] == "-mres_levels") {
+      if (!getIntArg(i, args, mres_levels))
+        throw IllegalArgument("octisovol -mres_levels <mres_levels>", i, 
args);
+    }
+    else if (args[i] == "-isomin") {
+      if (!getDoubleArg(i, args, isomin))
+        throw IllegalArgument("octisovol -isomin <isomin>", i, args);
+    }
+    else if (args[i] == "-isomax") {
+      if (!getDoubleArg(i, args, isomin))
+        throw IllegalArgument("octisovol -isomax <isomax>", i, args);
+    }
+    else if (args[i] == "-isovalue") {
+      if (!getDoubleArg(i, args, isovalue))
+        throw IllegalArgument("octisovol -isovalue <isovalue>", i, args);
+    }
+    else {
+      cerr << "Read built octree volume:" << endl;
+      cerr << "-file <filename>"             << endl;
+      cerr << "Octree build:" << endl;
+      cerr << "  -buildfrom <filename> " << endl;
+      cerr << "Octree build options:" << endl;
+      cerr << "  -tstart <tstart>" << endl;
+      cerr << "  -tend <tend>" << endl;
+      cerr << "  -variance <variance>" << endl;
+      cerr << "  -kernel_width <kernel_width>" << endl;
+      cerr << "  -mres_levels <mres_levels>" << endl;
+      cerr << "  -isomin <isomin>" << endl;
+      cerr << "  -isomax <isomax>" << endl;
+      cerr << "  -isovalue <isovalue>" << endl;
+      throw IllegalArgument( "octisovol", i, args );
+    }
+  }
+
+  char c_filename[2048];
+  char c_buildfrom_filename[2048];
+  strcpy(c_filename, filename.c_str());
+  strcpy(c_buildfrom_filename, buildfrom_filename.c_str());
+
+  OctreeVolume* ov;
+
+  if (strcmp(c_filename, "")!=0)
+  {
+    cerr << "Creating octree volume from existing .otd data." << endl;
+    ov = new OctreeVolume(c_filename);
+  }
+  else if (strcmp(c_buildfrom_filename,"")!=0)
+  {
+    cerr << "Creating octree volume from original rectilinear grid data." << 
endl;
+    ov = new OctreeVolume(c_buildfrom_filename, tstart, tend, variance, 
kernel_width, (double)isomin, (double)isomax);
+  }
+  else
+  {
+    throw InputError( "octisovol: No volume source specified. Use either 
-file or -buildfrom.");
+  }
+
+  ov->set_isovalue(isovalue);
+
+  // Create the scene.
+  Scene *scene = new Scene();
+  Group *group = new Group();
+
+  Manta::BBox bounds;
+
+  //Material* mat1 = new Phong(Color(RGBColor(0.05f, 0.3f, 0.6f)), 
Color(RGBColor(1.f, 1.f, 1.f)), 50);
 //#define H300
-#ifdef H300    
-    Material* mat1 = new Lambertian(Color(RGBColor(0.8f, 0.4f, 1.f)));      
//purple   
+#ifdef H300
+  Material* mat1 = new Lambertian(Color(RGBColor(0.8f, 0.4f, 1.f)));      
//purple
 #else
-    Material* mat1 = new Lambertian(Color(RGBColor(0.05f, 0.3f, 0.6f)));     
 //blue
+  Material* mat1 = new Lambertian(Color(RGBColor(0.05f, 0.3f, 0.6f)));      
//blue
 #endif
-    IsosurfaceOctreeVolume* iov = new IsosurfaceOctreeVolume(ov, mat1);
-    bounds = iov->getBounds();
-    group->add(iov);
-               
-       // Add the tree to the scene.
-       scene->setObject( group );
-    
-    float fov = 45.f;
-    float view_dist = 0.5f * bounds[1].data[0] * (1.0f + 1.0f / tanf(0.5f * 
fov));
-    Vector lookat = (bounds[1] - bounds[0]) * 0.5f;
-    Vector eye = lookat;
-    Vector up = Vector(0,0,1);
-    eye.data[0] -= view_dist;
-       
-       // Set other important scene properties.
-       PinholeCamera *camera = new PinholeCamera(eye, lookat, up, fov);
-    //scene->setCamera(camera);
-
-    //NOTE: this will create a light directly "above" the volume in the +up 
direction.
-    //  Some volumes (e.g. heptane) will require us to change this to a -
-       LightSet *lights = new LightSet();
-    float ldist = 10.f * (lookat-eye).length();
-
-#ifdef H300    
-    lights->add( new PointLight( Vector(lookat + ldist*(eye - 2*up)), 
Color(RGBColor(0.8,0.8,0.8)) ) );
-#else    
-    lights->add( new PointLight( Vector(lookat + ldist*up), 
Color(RGBColor(1,1,1)) ) );
-#endif    
-       lights->setAmbientLight( new ConstantAmbient( 
Color(RGBColor(0.4,0.5,0.5) ) ));
-       scene->setLights(lights);
+  IsosurfaceOctreeVolume* iov = new IsosurfaceOctreeVolume(ov, mat1);
+  bounds = iov->getBounds();
+  group->add(iov);
+
+  // Add the tree to the scene.
+  scene->setObject( group );
+
+  float fov = 45.f;
+  float view_dist = 0.5f * bounds[1].data[0] * (1.0f + 1.0f / tanf(0.5f * 
fov));
+  Vector lookat = (bounds[1] - bounds[0]) * 0.5f;
+  Vector eye = lookat;
+  Vector up = Vector(0,0,1);
+  eye.data[0] -= view_dist;
+
+  // Set other important scene properties.
+  // NOTE(boulos): These weren't being used as of 29-Jul-2007.
+
+  //PinholeCamera *camera = new PinholeCamera(eye, lookat, up, fov, fov);
+  //scene->setCamera(camera);
+
+  //NOTE: this will create a light directly "above" the volume in the +up 
direction.
+  //  Some volumes (e.g. heptane) will require us to change this to a -
+  LightSet *lights = new LightSet();
+  float ldist = 10.f * (lookat-eye).length();
 
-       
-       // Background.
 #ifdef H300
-    scene->setBackground( new ConstantBackground( Color(RGB(0,0,0)) ) );
-#else    
-    scene->setBackground( new ConstantBackground( Color(RGB(.96, 0.96, 
0.97)) ) );
+  lights->add( new PointLight( Vector(lookat + ldist*(eye - 2*up)), 
Color(RGBColor(0.8,0.8,0.8)) ) );
+#else
+  lights->add( new PointLight( Vector(lookat + ldist*up), 
Color(RGBColor(1,1,1)) ) );
 #endif
-       
-       return scene;
+  lights->setAmbientLight( new ConstantAmbient( Color(RGBColor(0.4,0.5,0.5) 
) ));
+  scene->setLights(lights);
+
+
+  // Background.
+#ifdef H300
+  scene->setBackground( new ConstantBackground( Color(RGB(0,0,0)) ) );
+#else
+  scene->setBackground( new ConstantBackground( Color(RGB(.96, 0.96, 0.97)) 
) );
+#endif
+
+  return scene;
 }
 

Modified: trunk/scenes/vorpal.cc
==============================================================================
--- trunk/scenes/vorpal.cc      (original)
+++ trunk/scenes/vorpal.cc      Sun Jul 29 09:28:44 2007
@@ -56,14 +56,14 @@
   Material *particle_matl =new Phong(heightMap// Color(RGB(0xCD/255.0, 
0x7f/255.0,0x32/255.0))
                                      ,new 
Constant<Color>(Color(RGB(.7,.7,.7))),
                                      64, 0);
-//   Material *particle_matl =new Phong(Color(RGB(0xCD/255.0, 
0x7f/255.0,0x32/255.0)), 
+//   Material *particle_matl =new Phong(Color(RGB(0xCD/255.0, 
0x7f/255.0,0x32/255.0)),
 //                                      Color(RGB(.7,.7,.7)),
 //                                      64,  (ColorComponent) 0.4);
 
   //Note, we add some randomness just to test the dynnamic scenes and 
interpolation...
   for (int i = 0; i < nparticles; ++i) {
-    Vector center( (data[i*3 + 0]-min_x)/max_dim*(drand48()*.2+.9), 
-                   (data[i*3 + 1]-min_y)/max_dim*(drand48()*.2+.9), 
+    Vector center( (data[i*3 + 0]-min_x)/max_dim*(drand48()*.2+.9),
+                   (data[i*3 + 1]-min_y)/max_dim*(drand48()*.2+.9),
                    data[i*3 + 2]*2*(drand48()*.2+.9));
     particles->add(new Sphere(particle_matl, center, .03));
   }
@@ -83,7 +83,7 @@
     if(arg == "-heightfield"){
       if(!getStringArg(i, args, heightfield_filename))
         throw IllegalArgument("scene vorpal -heightfield", i, args);
-    } 
+    }
     else if(arg == "-particles"){
       if(!getStringArg(i, args, particles_filename))
         throw IllegalArgument("scene vorpal -particles", i, args);
@@ -157,10 +157,10 @@
 //   //animation->pauseAnimation();
 //   animation->useAccelerationStructure(new DynBVH());
 //   group->add(animation);
-  
+
 //   AccelerationStructure *as = new DynBVH;
 //   as->rebuild(animation);
-  group->add(particle_animation);  
+  group->add(particle_animation);
 
 
   AffineTransform modelTransform;
@@ -168,11 +168,11 @@
   modelTransform.rotate(Vector(1,0,0), 1.57);
   modelTransform.translate(Vector(4, 3.5, 0));
 
-  
-  Material *model_matl =
-    new Phong(Color(RGB(.8, .4, .6)), 
-                                  Color(RGB(.7,.7,.7)),
-                                  64, 0);
+
+  // Material *model_matl =
+  //new Phong(Color(RGB(.8, .4, .6)),
+  //                              Color(RGB(.7,.7,.7)),
+  //                              64, 0);
 //     new Lambertian(Color(RGB(.2,.6,.2)));
 
 //   Group *modelGroup = new Group;
@@ -218,7 +218,7 @@
   Color cdown(RGB(0.1, 0.1, 0.1));
   Color grey(RGB(0.1, 0.1, 0.1));
   Vector up(0,1,0);
-   lights->setAmbientLight(new ArcAmbient(cup, cdown, up));
+  lights->setAmbientLight(new ArcAmbient(cup, cdown, up));
 //   lights->setAmbientLight(new ConstantAmbient(grey));
   scene->setLights(lights);
   return scene;




  • [MANTA] r1577 - trunk/scenes, boulos, 07/29/2007

Archive powered by MHonArc 2.6.16.

Top of page