Ignore:
Timestamp:
11/13/08 13:14:55 (16 years ago)
Author:
mattausch
Message:

changed tm so no values out of bounds, somehow occlusion error missing again

File:
1 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/App/Demos/Vis/FriendlyCulling/src/chcdemo.cpp

    r3123 r3125  
    472472 
    473473        //LoadModel("fisch.dem", dynamicObjects); 
    474         /*LoadModel("hbuddha.dem", dynamicObjects); 
     474        LoadModel("hbuddha.dem", dynamicObjects); 
    475475        buddha = dynamicObjects.back(); 
    476476         
     
    497497                ent->SetTransform(transform); 
    498498                dynamicObjects.push_back(ent); 
    499         }*/ 
     499        } 
    500500 
    501501 
     
    913913void MainLoop()  
    914914{        
    915 #if 0 
     915#if 1 
    916916        GPUProgramParameters *vtxParams =  
    917917                buddha->GetShape(0)->GetMaterial()->GetTechnique(1)->GetVertexProgramParameters(); 
     
    930930                if (GetOrCreateSceneQuery()->CalcIntersection(newPos)) 
    931931                { 
    932                         Matrix4x4 mat = TranslationMatrix(newPos - ent->GetCenter());// + Vector3(0, 0, ent->GetBoundingBox().Size(2) * 0.5f)); 
     932                        Matrix4x4 mat = TranslationMatrix(newPos - ent->GetCenter()); 
    933933                        ent->GetTransform()->SetMatrix(mat); 
    934934                } 
     
    937937        Matrix4x4 rotMatrix = RotationZMatrix(M_PI * 1e-3f); 
    938938        dynamicObjects[1]->GetTransform()->MultMatrix(rotMatrix); 
     939 
     940 
     941        ///////////////////////// 
     942        //-- update animations 
     943         
     944        motionPath->Move(0.01f); 
     945 
    939946#endif 
    940947 
     
    11641171 
    11651172        glutSwapBuffers(); 
    1166  
    1167  
    1168         ///////////////////////// 
    1169         //-- update animations 
    1170         motionPath->Move(0.01f); 
    11711173} 
    11721174 
Note: See TracChangeset for help on using the changeset viewer.