- Timestamp:
- 03/31/06 20:31:55 (19 years ago)
- Location:
- GTP/trunk/Lib/Vis
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/OnlineCullingCHC/OGRE/scripts/Plugin_VisibilitySceneManager.vcproj
r675 r722 266 266 </Filter> 267 267 </Filter> 268 <File 269 RelativePath=".\VTune\Plugin_VisibilitySceneManager.vpj"> 270 </File> 268 271 </Files> 269 272 <Globals> -
GTP/trunk/Lib/Vis/OnlineCullingCHC/OGRE/src/OgreOctreeHierarchyInterface.cpp
r370 r722 51 51 bool OctreeHierarchyInterface::HasGeometry(GtpVisibility::HierarchyNode *node) const 52 52 { 53 return static_cast<Octree *>(node)->mNodes.size() > 0;53 return !(static_cast<Octree *>(node))->mNodes.empty(); 54 54 } 55 55 //----------------------------------------------------------------------- 56 56 float OctreeHierarchyInterface::GetSquaredDistance(GtpVisibility::HierarchyNode *node) const 57 57 { 58 AxisAlignedBox *box = &static_cast<Octree *>(node)->mBox; 59 Vector3 pos = ((box->getMaximum() - box->getMinimum()) * 0.5) + box->getMinimum(); 58 LogManager::getSingleton().logMessage("here4"); 59 60 const AxisAlignedBox &box = static_cast<Octree *>(node)->mBox; 61 const Vector3 pos = ((box.getMaximum() - box.getMinimum()) * 0.5) + box.getMinimum(); 60 62 61 63 return (mCullCamera->getDerivedPosition() - pos).squaredLength(); -
GTP/trunk/Lib/Vis/OnlineCullingCHC/OGRE/src/OgreSolidBoundingBox.cpp
r118 r722 9 9 #include <OgrePass.h> 10 10 #include <OgreTechnique.h> 11 #include <OgreLogManager.h> 11 12 12 13 namespace Ogre { … … 157 158 Real SolidBoundingBox::getSquaredViewDepth(const Camera* cam) const 158 159 { 159 Vector3 min, max, mid, dist; 160 161 min = mBox.getMinimum(); 162 max = mBox.getMaximum(); 163 mid = ((min - max) * 0.5) + min; 164 dist = cam->getDerivedPosition() - mid; 160 Ogre::LogManager::getSingleton().logMessage("here3"); 161 const Vector3 &min = mBox.getMinimum(); 162 const Vector3 &max = mBox.getMaximum(); 163 const Vector3 &mid = ((min - max) * 0.5) + min; 164 const Vector3 &dist = cam->getDerivedPosition() - mid; 165 165 166 166 return dist.squaredLength(); -
GTP/trunk/Lib/Vis/OnlineCullingCHC/include/DistanceQueue.h
r316 r722 25 25 bool operator() (T v1, T v2) const 26 26 { 27 return mHierarchyInterface->GetSquaredDistance(v1) > mHierarchyInterface->GetSquaredDistance(v2);27 return false;//mHierarchyInterface->GetSquaredDistance(v1) > mHierarchyInterface->GetSquaredDistance(v2); 28 28 } 29 29 -
GTP/trunk/Lib/Vis/OnlineCullingCHC/src/VisibilityManager.cpp
r720 r722 11 11 //----------------------------------------------------------------------- 12 12 VisibilityManager::VisibilityManager(VisibilityEnvironment *visEnvironment): 13 mVisibilityThreshold(0), mCullingManager(NULL), 13 mVisibilityThreshold(0), 14 mCullingManager(NULL), 14 15 mQueryManager(NULL), 15 16 mPreprocessingManager(new DummyPreprocessingManager(NULL)), -
GTP/trunk/Lib/Vis/Preprocessing/scripts/Preprocessor.vcproj
r712 r722 495 495 </File> 496 496 </Filter> 497 <File 498 RelativePath=".\VTune\Preprocessor.vpj"> 499 </File> 497 500 </Files> 498 501 <Globals> -
GTP/trunk/Lib/Vis/Preprocessing/src/Environment.cpp
r712 r722 1279 1279 "8000000"); 1280 1280 1281 RegisterOption("ViewCells.Evaluation.samplingType", 1282 optString, 1283 "view_cells_evaluation_sampling_type=", 1284 "box"); 1285 1281 1286 RegisterOption("ViewCells.Evaluation.samplesPerPass", 1282 1287 optInt, -
GTP/trunk/Lib/Vis/Preprocessing/src/ViewCellsManager.cpp
r720 r722 97 97 98 98 if (strcmp(buf, "box") == 0) 99 { 99 100 mSamplingType = Preprocessor::SPATIAL_BOX_BASED_DISTRIBUTION; 101 } 100 102 else if (strcmp(buf, "directional") == 0) 103 { 101 104 mSamplingType = Preprocessor::DIRECTION_BASED_DISTRIBUTION; 105 } 102 106 else 103 107 { … … 106 110 } 107 111 108 environment->GetStringValue("ViewCells.Visualization.colorCode", buf); 112 environment->GetStringValue("ViewCells.Evaluation.samplingType", buf); 113 114 if (strcmp(buf, "box") == 0) 115 { 116 mEvaluationSamplingType = Preprocessor::SPATIAL_BOX_BASED_DISTRIBUTION; 117 } 118 else if (strcmp(buf, "directional") == 0) 119 { 120 mEvaluationSamplingType = Preprocessor::DIRECTION_BASED_DISTRIBUTION; 121 } 122 else 123 { 124 Debug << "error! wrong sampling type" << endl; 125 exit(0); 126 } 127 128 environment->GetStringValue("ViewCells.Visualization.colorCode", buf); 109 129 110 130 if (strcmp(buf, "PVS") == 0) … … 492 512 //VssRayContainer outRays; 493 513 // should directional sampling be used? 494 bool dirSamples = mSamplingType == Preprocessor::DIRECTION_BASED_DISTRIBUTION;514 bool dirSamples = (mEvaluationSamplingType == Preprocessor::DIRECTION_BASED_DISTRIBUTION); 495 515 496 516 cout << "Evaluating view cell partition" << endl; … … 521 541 VssRayContainer evaluationSamples; 522 542 523 const int samplingType = m SamplingType;543 const int samplingType = mEvaluationSamplingType; 524 544 /* dirSamples ? 525 545 Preprocessor::DIRECTION_BASED_DISTRIBUTION : -
GTP/trunk/Lib/Vis/Preprocessing/src/ViewCellsManager.h
r720 r722 549 549 550 550 int mSamplingType; 551 int mEvaluationSamplingType; 551 552 int mNumActiveViewCells; 552 553 bool mCompressViewCells; -
GTP/trunk/Lib/Vis/shared/EvalStats/EvalStats.vcproj
r656 r722 146 146 </Filter> 147 147 <File 148 RelativePath=".\VTune\EvalStats.vpj"> 149 </File> 150 <File 148 151 RelativePath=".\ReadMe.txt"> 149 152 </File>
Note: See TracChangeset
for help on using the changeset viewer.