- Timestamp:
- 01/09/09 04:50:49 (16 years ago)
- Location:
- GTP/trunk/App/Demos/Vis/FriendlyCulling
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Vis/FriendlyCulling/Converter/ObjConverter.cpp
r3247 r3260 170 170 geom->mMaterial = mat; 171 171 172 cout << " new geometry #vts=" << numElements<< endl;172 cout << "creating new geometry with " << numElements << " vertices" << endl; 173 173 174 174 for (int i = 0; i < numElements; ++ i) -
GTP/trunk/App/Demos/Vis/FriendlyCulling/FriendlyCulling.vcproj
r3259 r3260 19 19 Name="Debug|Win32" 20 20 OutputDirectory="$(SolutionDir)/lib/$(ConfigurationName)" 21 IntermediateDirectory=" obj/$(ConfigurationName)"21 IntermediateDirectory="$(SolutionDir)/obj/$(ConfigurationName)" 22 22 ConfigurationType="4" 23 23 CharacterSet="1" … … 83 83 Name="Release|Win32" 84 84 OutputDirectory="$(SolutionDir)/lib/$(ConfigurationName)" 85 IntermediateDirectory=" obj/$(ConfigurationName)"85 IntermediateDirectory="$(SolutionDir)/obj/$(ConfigurationName)" 86 86 ConfigurationType="4" 87 87 CharacterSet="1" … … 515 515 </File> 516 516 <File 517 RelativePath=".\src\ObjExporter.h" 518 > 519 </File> 520 <File 517 521 RelativePath=".\src\OcclusionQuery.h" 518 522 > … … 645 649 </File> 646 650 <File 651 RelativePath=".\src\ObjExporter.cpp" 652 > 653 </File> 654 <File 647 655 RelativePath=".\src\OcclusionQuery.cpp" 648 656 > -
GTP/trunk/App/Demos/Vis/FriendlyCulling/VboFormatConverter.vcproj
r3235 r3260 19 19 Name="Debug|Win32" 20 20 OutputDirectory="$(SolutionDir)$\VboFormatConverter\(ConfigurationName)" 21 IntermediateDirectory="$(ConfigurationName)\ VboFormatConverter"21 IntermediateDirectory="$(ConfigurationName)\$(ProjectName)" 22 22 ConfigurationType="1" 23 23 CharacterSet="1" … … 98 98 <Configuration 99 99 Name="Release|Win32" 100 OutputDirectory="$(SolutionDir) $\$(ProjectName)\(ConfigurationName)"100 OutputDirectory="$(SolutionDir)\$(ProjectName)\$(ConfigurationName)" 101 101 IntermediateDirectory="$(ConfigurationName)\$(ProjectName)" 102 102 ConfigurationType="1" -
GTP/trunk/App/Demos/Vis/FriendlyCulling/default.env
r3259 r3260 115 115 ## powerplant options 116 116 117 filename=PowerPlantM118 keyForwardMotion=500.0f119 mouseMotion=3.0f120 visibilitySolution=power-plant-2c-xx-1000b-pgv2121 camPosition=-1320.57 -6306.34 3603122 camDirection=0.292156 0.9556 0.0383878123 viewCellsScaleFactor=0.05f117 #filename=PowerPlantM 118 #keyForwardMotion=500.0f 119 #mouseMotion=3.0f 120 #visibilitySolution=power-plant-2c-xx-1000b-pgv2 121 #camPosition=-1320.57 -6306.34 3603 122 #camDirection=0.292156 0.9556 0.0383878 123 #viewCellsScaleFactor=0.05f -
GTP/trunk/App/Demos/Vis/FriendlyCulling/src/BvhExporter.cpp
r3259 r3260 76 76 77 77 78 bool BvhExporter::Export ToFile(const string &filename, Bvh *bvh)78 bool BvhExporter::Export(const string &filename, Bvh *bvh) 79 79 { 80 80 cout << "Info: Exporting to file '" << filename.c_str() << "'" << endl; -
GTP/trunk/App/Demos/Vis/FriendlyCulling/src/BvhExporter.h
r3259 r3260 1 #ifndef __ PVS_H2 #define __ PVS_H1 #ifndef __BVHEXPORTER_H 2 #define __BVHEXPORTER_H 3 3 4 4 #include "common.h" … … 16 16 public: 17 17 18 bool Export ToFile(const std::string &filename, Bvh *bvh);18 bool Export(const std::string &filename, Bvh *bvh); 19 19 20 20 -
GTP/trunk/App/Demos/Vis/FriendlyCulling/src/Geometry.h
r3259 r3260 62 62 63 63 protected: 64 64 65 /** Calculates the bounding box from the vertices. 65 66 */ -
GTP/trunk/App/Demos/Vis/FriendlyCulling/src/ResourceManager.cpp
r3259 r3260 383 383 } 384 384 385 const bool delGeometry = true; 385 //const bool delGeometry = true; 386 const bool delGeometry = false; 386 387 return new Geometry(vertices, normals, texcoords, vertexCount, delGeometry, NULL);//tangents); 387 388 } -
GTP/trunk/App/Demos/Vis/FriendlyCulling/src/SceneEntity.h
r3259 r3260 19 19 20 20 /** Class representing a scene entity. 21 A scene entity basically consists of geometry, transformation, and a material21 A scene entity basically consists of one or more shapes and a transformation. 22 22 */ 23 23 class SceneEntity … … 109 109 //-- static functions 110 110 111 /** If false, the highest ( most detailed) LOD level is used for all entities.111 /** If false, the highest (=most detailed) LOD level is used for all entities. 112 112 */ 113 113 static void SetUseLODs(bool useLODs); … … 119 119 */ 120 120 static void SetCurrentVisibleId(int id); 121 121 /** Returns the id that indicates a visible object. 122 */ 122 123 static int GetCurrentVisibleId(); 123 124 124 125 125 126 protected: 126 127 127 128 128 /** Internally updates current lod level. … … 159 159 /// if LODs are used for rendering: otherwise we always take the highest lod 160 160 static bool sUseLODs; 161 162 161 }; 163 162 -
GTP/trunk/App/Demos/Vis/FriendlyCulling/src/chcdemo.cpp
r3259 r3260 61 61 #include "ViewCellsTree.h" 62 62 #include "PvsCollectionRenderer.h" 63 #include "ObjExporter.h" 64 #include "BvhExporter.h" 63 65 64 66 … … 644 646 645 647 648 ObjExporter().Export(model_path + "mycity.obj", bvh); 649 BvhExporter().Export(model_path + "mycity.bvh", bvh); 650 651 652 646 653 ////////////////// 647 654 //-- setup the skydome model
Note: See TracChangeset
for help on using the changeset viewer.