Ignore:
Timestamp:
06/20/08 00:46:27 (17 years ago)
Author:
mattausch
Message:
 
Location:
GTP/trunk/App/Demos/Vis/CHC_revisited/src
Files:
1 deleted
5 edited

Legend:

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

    r2782 r2784  
    9797 
    9898                //cout << "loading texture " << texname << " with len " << texnameSize << " id: " << id << endl; 
    99                 Texture *tex = new Texture(texname); 
     99                Texture *tex = new Texture(model_path + texname); 
    100100 
    101101                mTextureTable[i] = tex; 
  • GTP/trunk/App/Demos/Vis/CHC_revisited/src/RenderTraverser.cpp

    r2782 r2784  
    11#include "RenderTraverser.h" 
    22#include "glInterface.h" 
    3 #include "Timers.h" 
    43#include "Camera.h" 
    54#include "SceneEntity.h" 
  • 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)); 
  • GTP/trunk/App/Demos/Vis/CHC_revisited/src/common.cpp

    r2782 r2784  
    139139                _ftime(&mtime); 
    140140 
    141                 return 1000*(1000*mtime.time + mtime.millitm); 
     141                return 1000*(1000*(long)mtime.time + (long)mtime.millitm); 
    142142        } 
    143143#endif 
     
    162162                static struct _timeb mtime; 
    163163                _ftime(&mtime); 
    164                 return 1000*(1000*mtime.time + mtime.millitm); 
     164                return 1000*(1000*(long)mtime.time + (long)mtime.millitm); 
    165165        } 
    166166#endif 
  • GTP/trunk/App/Demos/Vis/CHC_revisited/src/common.h

    r2782 r2784  
    462462 
    463463 
     464////// 
     465//-- model directory 
     466 
     467static std::string model_path("data/city/model/"); 
     468 
    464469/////////// 
    465470//-- typedefs 
Note: See TracChangeset for help on using the changeset viewer.