Changeset 1221 for GTP/trunk/Lib/Vis/OnlineCullingCHC/OGRE
- Timestamp:
- 08/18/06 19:28:12 (18 years ago)
- Location:
- GTP/trunk/Lib/Vis/OnlineCullingCHC/OGRE
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/OnlineCullingCHC/OGRE/include/OgreKdTreeSceneManager.h
r1214 r1221 92 92 /** Override pass so we can do the z-fail pass. 93 93 */ 94 const Pass* _setPass(Pass* pass);94 virtual const Pass* _setPass(const Pass* pass, bool evenIfSuppressed = false); 95 95 96 96 /** Render a queue group. -
GTP/trunk/Lib/Vis/OnlineCullingCHC/OGRE/include/OgreOcclusionCullingSceneManager.h
r938 r1221 64 64 /** Override pass so we can do the z-fail pass. 65 65 */ 66 const Pass* _setPass(Pass* pass);66 virtual const Pass* _setPass(const Pass* pass, bool evenIfSuppressed = false); 67 67 68 68 /** Override from SceneManager so we can skip all but first pass for depth pass. … … 124 124 */ 125 125 void InitVisibilityCulling(Camera *cam); 126 #if 0127 /** Finds object corresponding to this bounding box in the scene.128 */129 Entity *FindCorrespondingObject(const AxisAlignedBox &box);130 131 /** Identifies objects in the scene and gives them unique ids that132 correspond to preprocessor ids.133 */134 void IdentifyObjects(GtpVisibilityPreprocessor::ObjectContainer &objects);135 #endif136 126 /** Loads / unloads pvs of the view cell to set the visibility in the scene. 137 127 */ … … 145 135 */ 146 136 void SetObjectsVisible(const bool visible); 137 138 139 ////////////////////////////////////////// 147 140 148 141 /// the interface to the scene hierarchy. -
GTP/trunk/Lib/Vis/OnlineCullingCHC/OGRE/scripts/Plugin_VisibilitySceneManager.vcproj
r1206 r1221 109 109 LinkIncremental="1" 110 110 SuppressStartupBanner="TRUE" 111 AdditionalLibraryDirectories=""$(OGRE_PATH)\PlugIns\OctreeSceneManager\bin\$(ConfigurationName)";"$(OGRE_PATH)\OgreMain\lib\$(ConfigurationName)";"$(OGRE_PATH)\Samples\Common\CEGUIRenderer\lib";"..\..\GtpVisibility\lib\$(ConfigurationName)";"..\..\lib\$(ConfigurationName)";"..\lib\$(ConfigurationName)";"$(OGRE_PATH)\Dependencies\lib\$(ConfigurationName)";"..\..\..\Preprocessing\lib\$(ConfigurationName)";..\..\..\..\..\..\..\NonGTP\Xerces\xercesc\lib; "$(QTDIR)\lib";..\..\..\Preprocessing\src\GL;"$(CG_LIB_PATH)";..\..\..\..\..\..\..\NonGTP\Zlib\lib"111 AdditionalLibraryDirectories=""$(OGRE_PATH)\PlugIns\OctreeSceneManager\bin\$(ConfigurationName)";"$(OGRE_PATH)\OgreMain\lib\$(ConfigurationName)";"$(OGRE_PATH)\Samples\Common\CEGUIRenderer\lib";"..\..\GtpVisibility\lib\$(ConfigurationName)";"..\..\lib\$(ConfigurationName)";"..\lib\$(ConfigurationName)";"$(OGRE_PATH)\Dependencies\lib\$(ConfigurationName)";"..\..\..\Preprocessing\lib\$(ConfigurationName)";..\..\..\..\..\..\..\NonGTP\Xerces\xercesc\lib;..\..\..\Preprocessing\src\GL;"$(CG_LIB_PATH)";..\..\..\..\..\..\..\NonGTP\Zlib\lib" 112 112 ModuleDefinitionFile="..\misc\OgreVisibilitySceneManager.def" 113 113 GenerateDebugInformation="TRUE" -
GTP/trunk/Lib/Vis/OnlineCullingCHC/OGRE/src/OgreBoundingBoxConverter.cpp
r944 r1221 19 19 GtpVisibilityPreprocessor::IndexedBoundingBoxContainer:: 20 20 const_iterator iit, iit_end = iboxes.end(); 21 22 21 23 22 for (iit = iboxes.begin(); iit != iit_end; ++ iit) … … 25 24 const GtpVisibilityPreprocessor::AxisAlignedBox3 box = (*iit).second; 26 25 const AxisAlignedBox currentBox = OgreTypeConverter::ConvertToOgre(box); 27 28 26 29 27 Entity *ent = FindCorrespondingObject(currentBox); … … 42 40 const float eps = 1e-3f; 43 41 const Vector3 veps(eps, eps, eps); 42 44 43 Vector3 max = box.getMaximum(); 45 44 Vector3 min = box.getMinimum(); … … 54 53 //AxisAlignedBox dummy(Vector3(-50000, -50000, -50000), Vector3(50000, 50000, 50000)); 55 54 56 // --get intersecting scene nodes55 // get intersecting scene nodes 57 56 mSceneMgr->findNodesIn(mybox, sceneNodeList, NULL); 58 57 … … 99 98 bestFittingObj = static_cast<Entity *>(mo); 100 99 101 // perfect fit => object found, e raly exit100 // perfect fit => object found, early exit 102 101 if (overlap >= thresh) 103 102 return bestFittingObj; -
GTP/trunk/Lib/Vis/OnlineCullingCHC/OGRE/src/OgreKdTreeSceneManager.cpp
r1220 r1221 1109 1109 } 1110 1110 //----------------------------------------------------------------------- 1111 const Pass *KdTreeSceneManager::_setPass(Pass* pass )1111 const Pass *KdTreeSceneManager::_setPass(Pass* pass, bool evenIfSuppressed) 1112 1112 { 1113 1113 if (mRenderMethod == KdTree::KDRM_INTERNAL) -
GTP/trunk/Lib/Vis/OnlineCullingCHC/OGRE/src/OgreOcclusionCullingSceneManager.cpp
r1220 r1221 207 207 } 208 208 //----------------------------------------------------------------------- 209 const Pass *OcclusionCullingSceneManager::_setPass(Pass* pass )209 const Pass *OcclusionCullingSceneManager::_setPass(Pass* pass, bool evenIfSuppressed) 210 210 { 211 211 if (NORMAL_RENDER_HACK)
Note: See TracChangeset
for help on using the changeset viewer.