Changeset 3261 for GTP/trunk/App/Demos/Vis/FriendlyCulling/src/chcdemo.cpp
- Timestamp:
- 01/09/09 19:50:56 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Vis/FriendlyCulling/src/chcdemo.cpp
r3260 r3261 587 587 //LoadModel("sibenik.dem", dynamicObjects); 588 588 589 LoadModel("procedural_pompeii_area6_hires/pompeii.dem", dynamicObjects); 590 591 AxisAlignedBox3 box; 592 box.Initialize(); 593 594 const Vector3 offs(.0f, 3000.0f, 180); 595 //const Vector3 sceneCenter(470.398f, 240.364f, 180.3); 596 Matrix4x4 moffs = TranslationMatrix(offs); 597 598 for (size_t i = 0; i < dynamicObjects.size(); ++ i) 599 { 600 dynamicObjects[i]->GetTransform()->SetMatrix(moffs); 601 box.Include(dynamicObjects[i]->GetWorldBoundingBox()); 602 } 603 604 cout << "pompeii bb:\n" << box << endl; 605 589 606 #if 0 590 LoadModel("hbuddha.dem", dynamicObjects);591 592 buddha = dynamicObjects.back();593 594 607 const Vector3 sceneCenter(470.398f, 240.364f, 181.7f); 595 608 //const Vector3 sceneCenter(470.398f, 240.364f, 180.3); 596 597 609 Matrix4x4 transl = TranslationMatrix(sceneCenter); 610 611 LoadModel("hbuddha.dem", dynamicObjects); 612 613 buddha = dynamicObjects.back(); 598 614 buddha->GetTransform()->SetMatrix(transl); 599 615 … … 646 662 647 663 648 ObjExporter().Export(model_path + "mycity.obj", bvh);649 BvhExporter().Export(model_path + "mycity.bvh", bvh);664 //ObjExporter().Export(model_path + "mycity.obj", bvh); 665 //BvhExporter().Export(model_path + "mycity.bvh", bvh); 650 666 651 667
Note: See TracChangeset
for help on using the changeset viewer.