Manta Interactive Ray Tracer Development Mailing List

Text archives Help


[MANTA] r1497 - in trunk/Model: MiscObjects Readers/glm


Chronological Thread 
  • From: thiago@sci.utah.edu
  • To: manta@sci.utah.edu
  • Subject: [MANTA] r1497 - in trunk/Model: MiscObjects Readers/glm
  • Date: Wed, 18 Jul 2007 16:01:32 -0600 (MDT)

Author: thiago
Date: Wed Jul 18 16:01:29 2007
New Revision: 1497

Modified:
   trunk/Model/MiscObjects/KeyFrameAnimation.cc
   trunk/Model/Readers/glm/glm.cc
Log:
MiscObjects/KeyFrameAnimation.cc:
Fixed race condition that was causing seg faults in parallel builds
(currently applies only to CGT).

Readers/glm/glm.cc :
variable wasn't being initialized. Not sure if this was causing any
errors, but valgrind complained so I fixed.




Modified: trunk/Model/MiscObjects/KeyFrameAnimation.cc
==============================================================================
--- trunk/Model/MiscObjects/KeyFrameAnimation.cc        (original)
+++ trunk/Model/MiscObjects/KeyFrameAnimation.cc        Wed Jul 18 16:01:29 
2007
@@ -99,7 +99,6 @@
 
     if (interpolation == linear) {
       //do interpolation in parallel
-      //TODO: Do the actual linear interpolation!
       int start = static_cast<int>(frame);
       int end   = (start+1) % frames.size();
       float t = frame - start;
@@ -117,7 +116,6 @@
         printf("KeyFrameAnimation had trouble interpolating!\n");
     }
     else if (interpolation == truncate) {
-      if (context.proc == 0) //TODO: Parallellize this!
         currGroup = frames[(int) frame];
     }
     if (as)

Modified: trunk/Model/Readers/glm/glm.cc
==============================================================================
--- trunk/Model/Readers/glm/glm.cc      (original)
+++ trunk/Model/Readers/glm/glm.cc      Wed Jul 18 16:01:29 2007
@@ -1594,7 +1594,7 @@
     model->position[0]   = 0.0;
     model->position[1]   = 0.0;
     model->position[2]   = 0.0;
-
+    model->usePerVertexColors = 0;
     /* make a first pass through the file to get a count of the number
        of vertices, normals, texcoords & triangles */
     if (_glmFirstPass(model, file)) {




  • [MANTA] r1497 - in trunk/Model: MiscObjects Readers/glm, thiago, 07/18/2007

Archive powered by MHonArc 2.6.16.

Top of page