Changeset 2762 for GTP/trunk/App/Demos/Vis/CHC_revisited/chcdemo.cpp
- Timestamp:
- 06/15/08 23:35:07 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Vis/CHC_revisited/chcdemo.cpp
r2760 r2762 128 128 //const string filename("house_test.dem"); 129 129 //const string filename("city_demo.dem"); 130 const string filename("city.dem"); 130 //const string filename("city.dem"); 131 const string filename("roofs.dem"); 131 132 132 133 if (loader.Load(filename, sceneEntities)) … … 136 137 137 138 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); 139 144 140 145 sceneBox = bvh->GetBox(); … … 171 176 172 177 glDepthFunc(GL_LESS); 178 glEnable(GL_DEPTH_TEST); 173 179 174 180 SetupLighting(); … … 185 191 //glDisable(GL_CULL_FACE); 186 192 193 187 194 GLfloat ambientColor[] = {0.5, 0.5, 0.5, 1.0}; 188 195 GLfloat diffuseColor[] = {1.0, 0.0, 0.0, 1.0}; … … 322 329 323 330 glMatrixMode(GL_MODELVIEW); 324 glLoadIdentity();325 326 331 camera->SetupCameraView(); 327 332 … … 389 394 390 395 t1 = GetTime(); 396 397 traverser->SetCamera(camera); 398 399 //traverser->RenderFrustum(); 391 400 392 401 glEnableClientState(GL_VERTEX_ARRAY); … … 446 455 447 456 448 449 457 begin2D(); 450 458 … … 473 481 } 474 482 } 475 476 483 end2D(); 477 484
Note: See TracChangeset
for help on using the changeset viewer.