Changeset 2784 for GTP/trunk/App/Demos/Vis/CHC_revisited/src
- Timestamp:
- 06/20/08 00:46:27 (17 years ago)
- 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 97 97 98 98 //cout << "loading texture " << texname << " with len " << texnameSize << " id: " << id << endl; 99 Texture *tex = new Texture( texname);99 Texture *tex = new Texture(model_path + texname); 100 100 101 101 mTextureTable[i] = tex; -
GTP/trunk/App/Demos/Vis/CHC_revisited/src/RenderTraverser.cpp
r2782 r2784 1 1 #include "RenderTraverser.h" 2 2 #include "glInterface.h" 3 #include "Timers.h"4 3 #include "Camera.h" 5 4 #include "SceneEntity.h" -
GTP/trunk/App/Demos/Vis/CHC_revisited/src/chcdemo.cpp
r2782 r2784 157 157 BinaryLoader loader; 158 158 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"); 163 161 164 162 if (loader.Load(filename, sceneEntities)) 165 163 cout << "scene " << filename << " loaded" << endl; 166 164 else 165 { 167 166 cerr << "loading scene " << filename << " failed" << endl; 168 167 exit(0); 168 } 169 170 const string bvh_filename = string(model_path + "city.bvh"); 169 171 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 } 174 180 175 181 bvh->SetCamera(camera); 176 182 ResetTraverser(); 177 178 //camera->LookAtBox(sceneBox);179 //camera->LookInBox(bvh->GetBox());180 183 181 184 camera->SetDirection(Vector3(0.961829f, 0.273652f, 0.0f)); -
GTP/trunk/App/Demos/Vis/CHC_revisited/src/common.cpp
r2782 r2784 139 139 _ftime(&mtime); 140 140 141 return 1000*(1000* mtime.time +mtime.millitm);141 return 1000*(1000*(long)mtime.time + (long)mtime.millitm); 142 142 } 143 143 #endif … … 162 162 static struct _timeb mtime; 163 163 _ftime(&mtime); 164 return 1000*(1000* mtime.time +mtime.millitm);164 return 1000*(1000*(long)mtime.time + (long)mtime.millitm); 165 165 } 166 166 #endif -
GTP/trunk/App/Demos/Vis/CHC_revisited/src/common.h
r2782 r2784 462 462 463 463 464 ////// 465 //-- model directory 466 467 static std::string model_path("data/city/model/"); 468 464 469 /////////// 465 470 //-- typedefs
Note: See TracChangeset
for help on using the changeset viewer.