Changeset 2784 for GTP/trunk/App/Demos/Vis/CHC_revisited
- Timestamp:
- 06/20/08 00:46:27 (17 years ago)
- Location:
- GTP/trunk/App/Demos/Vis/CHC_revisited
- Files:
-
- 1 added
- 1 deleted
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Vis/CHC_revisited/chc_revisited.vcproj
r2783 r2784 18 18 <Configuration 19 19 Name="Debug|Win32" 20 OutputDirectory="$(SolutionDir) $(ConfigurationName)"21 IntermediateDirectory=" $(ConfigurationName)"20 OutputDirectory="$(SolutionDir)/bin/$(ConfigurationName)" 21 IntermediateDirectory="obj/$(ConfigurationName)" 22 22 ConfigurationType="1" 23 23 CharacterSet="1" … … 41 41 Name="VCCLCompilerTool" 42 42 Optimization="0" 43 AdditionalIncludeDirectories=" Devil/include;GL"44 PreprocessorDefinitions="WIN32;_DEBUG;_CONSOLE "43 AdditionalIncludeDirectories="libs;libs/GL;libs/Devil/include;src" 44 PreprocessorDefinitions="WIN32;_DEBUG;_CONSOLE;_CRT_SECURE_NO_WARNINGS" 45 45 MinimalRebuild="true" 46 46 BasicRuntimeChecks="3" … … 65 65 AdditionalDependencies="glut32.lib glew32s.lib glew32.lib DevIL.lib ILUT.lib" 66 66 LinkIncremental="2" 67 AdditionalLibraryDirectories=" GL;Devil/lib"67 AdditionalLibraryDirectories="libs/GL;libs/Devil/lib" 68 68 GenerateDebugInformation="true" 69 69 SubSystem="1" … … 97 97 <Configuration 98 98 Name="Release|Win32" 99 OutputDirectory="$(SolutionDir) $(ConfigurationName)"100 IntermediateDirectory=" $(ConfigurationName)"99 OutputDirectory="$(SolutionDir)/bin/$(ConfigurationName)" 100 IntermediateDirectory="obj/$(ConfigurationName)" 101 101 ConfigurationType="1" 102 102 CharacterSet="1" … … 127 127 EnableFiberSafeOptimizations="true" 128 128 AdditionalIncludeDirectories="libs;libs/GL;libs/Devil/include;src" 129 PreprocessorDefinitions="WIN32;NDEBUG;_CONSOLE "129 PreprocessorDefinitions="WIN32;NDEBUG;_CONSOLE; _CRT_SECURE_NO_WARNINGS" 130 130 StringPooling="true" 131 131 RuntimeLibrary="2" -
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.