Ignore:
Timestamp:
06/20/08 00:46:27 (16 years ago)
Author:
mattausch
Message:
 
File:
1 edited

Legend:

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

    r2782 r2784  
    157157        BinaryLoader loader; 
    158158 
    159         //const string filename("house_test.dem"); 
    160         //const string filename("city_demo.dem"); 
    161         const string filename("city.dem"); 
    162         //const string filename("roofs.dem"); 
     159        //const string filename("data/city/model/city.dem"); 
     160        const string filename = string(model_path + "city.dem"); 
    163161 
    164162        if (loader.Load(filename, sceneEntities)) 
    165163                cout << "scene " << filename << " loaded" << endl; 
    166164        else 
     165        { 
    167166                cerr << "loading scene " << filename << " failed" << endl; 
    168  
     167                exit(0); 
     168        } 
     169 
     170        const string bvh_filename = string(model_path + "city.bvh"); 
    169171        BvhLoader bvhLoader; 
    170         //bvh = bvhLoader.Load("roofs.bvh", sceneEntities); 
    171         bvh = bvhLoader.Load("city.bvh", sceneEntities); 
    172         //bvh = bvhLoader.Load("city_demo.bvh", sceneEntities); 
    173         //bvh = bvhLoader.Load("house_test.bvh", sceneEntities); 
     172        bvh = bvhLoader.Load(bvh_filename, sceneEntities); 
     173        //bvh = bvhLoader.Load("data/city/model/city.bvh", sceneEntities); 
     174 
     175        if (!bvh) 
     176        { 
     177                cerr << "loading bvh " << bvh_filename << " failed" << endl; 
     178                exit(0); 
     179        } 
    174180 
    175181        bvh->SetCamera(camera); 
    176182        ResetTraverser(); 
    177  
    178         //camera->LookAtBox(sceneBox); 
    179         //camera->LookInBox(bvh->GetBox()); 
    180183 
    181184        camera->SetDirection(Vector3(0.961829f, 0.273652f, 0.0f)); 
Note: See TracChangeset for help on using the changeset viewer.