Ignore:
Timestamp:
01/09/09 19:50:56 (15 years ago)
Author:
mattausch
Message:

worked on powerplant loading

File:
1 edited

Legend:

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

    r3260 r3261  
    587587        //LoadModel("sibenik.dem", dynamicObjects); 
    588588 
     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 
    589606#if 0 
    590         LoadModel("hbuddha.dem", dynamicObjects); 
    591  
    592         buddha = dynamicObjects.back(); 
    593          
    594607        const Vector3 sceneCenter(470.398f, 240.364f, 181.7f); 
    595608        //const Vector3 sceneCenter(470.398f, 240.364f, 180.3); 
    596          
    597609        Matrix4x4 transl = TranslationMatrix(sceneCenter); 
     610         
     611        LoadModel("hbuddha.dem", dynamicObjects); 
     612 
     613        buddha = dynamicObjects.back(); 
    598614        buddha->GetTransform()->SetMatrix(transl); 
    599615 
     
    646662 
    647663 
    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); 
    650666 
    651667 
Note: See TracChangeset for help on using the changeset viewer.