Changeset 722 for GTP/trunk/Lib/Vis/OnlineCullingCHC/OGRE
- Timestamp:
- 03/31/06 20:31:55 (19 years ago)
- Location:
- GTP/trunk/Lib/Vis/OnlineCullingCHC/OGRE
- Files:
-
- 3 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();
Note: See TracChangeset
for help on using the changeset viewer.