Ignore:
Timestamp:
06/15/08 23:35:07 (16 years ago)
Author:
mattausch
Message:

debug version

File:
1 edited

Legend:

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

    r2760 r2762  
    128128        //const string filename("house_test.dem"); 
    129129        //const string filename("city_demo.dem"); 
    130         const string filename("city.dem"); 
     130        //const string filename("city.dem"); 
     131        const string filename("roofs.dem"); 
    131132 
    132133        if (loader.Load(filename, sceneEntities)) 
     
    136137 
    137138        BvhLoader bvhLoader; 
    138         bvh = bvhLoader.Load("city.bvh", sceneEntities); 
     139        bvh = bvhLoader.Load("roofs.bvh", sceneEntities); 
     140         
     141 
     142        //bvh = bvhLoader.Load("city.bvh", sceneEntities); 
     143        //bvh = bvhLoader.Load("house_test.bvh", sceneEntities); 
    139144 
    140145        sceneBox = bvh->GetBox(); 
     
    171176         
    172177        glDepthFunc(GL_LESS); 
     178        glEnable(GL_DEPTH_TEST); 
    173179 
    174180        SetupLighting(); 
     
    185191        //glDisable(GL_CULL_FACE); 
    186192         
     193 
    187194        GLfloat ambientColor[] = {0.5, 0.5, 0.5, 1.0}; 
    188195        GLfloat diffuseColor[] = {1.0, 0.0, 0.0, 1.0}; 
     
    322329 
    323330        glMatrixMode(GL_MODELVIEW); 
    324         glLoadIdentity();        
    325  
    326331        camera->SetupCameraView(); 
    327332 
     
    389394 
    390395        t1 = GetTime(); 
     396 
     397        traverser->SetCamera(camera); 
     398 
     399        //traverser->RenderFrustum(); 
    391400 
    392401        glEnableClientState(GL_VERTEX_ARRAY); 
     
    446455         
    447456 
    448          
    449457        begin2D(); 
    450458         
     
    473481                } 
    474482        } 
    475  
    476483        end2D(); 
    477484 
Note: See TracChangeset for help on using the changeset viewer.