Changeset 944 for GTP/trunk/Lib/Vis/OnlineCullingCHC
- Timestamp:
- 05/10/06 18:33:35 (19 years ago)
- Location:
- GTP/trunk/Lib/Vis/OnlineCullingCHC
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/OnlineCullingCHC/OGRE/src/OgreBoundingBoxConverter.cpp
r938 r944 19 19 GtpVisibilityPreprocessor::IndexedBoundingBoxContainer:: 20 20 const_iterator iit, iit_end = iboxes.end(); 21 std::stringstream d; d << "here75557\n"; 22 LogManager::getSingleton().logMessage(d.str());21 22 23 23 for (iit = iboxes.begin(); iit != iit_end; ++ iit) 24 24 { 25 25 const GtpVisibilityPreprocessor::AxisAlignedBox3 box = (*iit).second; 26 26 const AxisAlignedBox currentBox = OgreTypeConverter::ConvertToOgre(box); 27 std::stringstream d; d << "here77\n"; 28 LogManager::getSingleton().logMessage(d.str());27 28 29 29 Entity *ent = FindCorrespondingObject(currentBox); 30 30 … … 53 53 AxisAlignedBox mybox = EnlargeBox(box); 54 54 //AxisAlignedBox dummy(Vector3(-50000, -50000, -50000), Vector3(50000, 50000, 50000)); 55 std::stringstream d; d << "here3 idenbtiy 8888\n"; 56 LogManager::getSingleton().logMessage(d.str()); 55 57 56 //-- get intersecting scene nodes 58 57 mSceneMgr->findNodesIn(mybox, sceneNodeList, NULL); -
GTP/trunk/Lib/Vis/OnlineCullingCHC/OGRE/src/OgreOcclusionCullingSceneManager.cpp
r938 r944 168 168 } 169 169 // add bounding boxes of rendered objects 170 if ( 1)170 if (0) 171 171 for (BoxList::iterator it = mBoxes.begin(); it != mBoxes.end(); ++it) 172 172 { … … 561 561 if (mViewCellsLoaded) 562 562 { 563 LogManager::getSingleton().logMessage("here3");564 563 mUseViewCells = *static_cast<const bool *>(val); 565 564 … … 1014 1013 OgreMeshInstance *omi = static_cast<OgreMeshInstance *>(*it); 1015 1014 Entity *ent = omi->GetMesh(); 1016 LogManager::getSingleton().logMessage("here999");1015 1017 1016 ent->setVisible(visible); 1018 1017 } … … 1036 1035 // load the view cells assigning the found objects to the pvss 1037 1036 mViewCellsManager = 1038 GtpVisibilityPreprocessor::ViewCellsManager::LoadViewCells(filename, &mObjects, env, &bconverter);1037 GtpVisibilityPreprocessor::ViewCellsManager::LoadViewCells(filename, &mObjects, env, false, &bconverter); 1039 1038 1040 1039 if (!mViewCellsManager) … … 1055 1054 // set everything visible for savety 1056 1055 SetObjectsVisible(true); 1057 LogManager::getSingleton().logMessage("here7"); 1056 1058 1057 return; 1059 1058 } 1060 LogManager::getSingleton().logMessage("here8");1059 1061 1060 GtpVisibilityPreprocessor::ObjectPvsMap::const_iterator oit, 1062 1061 oit_end = vc->GetPvs().mEntries.end(); … … 1069 1068 OgreMeshInstance *omi = dynamic_cast<OgreMeshInstance*>((*oit).first); 1070 1069 omi->GetMesh()->setVisible(load); 1071 GtpVisibilityPreprocessor::Debug << "here45" << omi->GetId() << endl;1070 //GtpVisibilityPreprocessor::Debug << "assigned id " << omi->GetId() << endl; 1072 1071 } 1073 1072 } … … 1089 1088 1090 1089 mElementaryViewCell = newElementary; 1091 LogManager::getSingleton().logMessage("unloading");1090 //LogManager::getSingleton().logMessage("unloading"); 1092 1091 //-- unload old pvs 1093 1092 applyViewCellPvs(mCurrentViewCell, false); … … 1110 1109 viewCell = newElementary; 1111 1110 } 1112 LogManager::getSingleton().logMessage("loading");1111 //LogManager::getSingleton().logMessage("loading"); 1113 1112 //-- load new pvs 1114 if (0)applyViewCellPvs(viewCell, true);1113 applyViewCellPvs(viewCell, true); 1115 1114 1116 1115 // store pvs -
GTP/trunk/Lib/Vis/OnlineCullingCHC/OGRE/src/OgreOctreeHierarchyInterface.cpp
r938 r944 54 54 { 55 55 Octree *octree = static_cast<Octree *>(node); 56 56 57 // HACK: if there are subtrees, they are empty => we are not interested in them 57 58 return octree->numNodes() == (int)octree->mNodes.size(); … … 70 71 const Vector3 pos = (bmax - bmin) * 0.5 + bmin; 71 72 73 /* std::stringstream d; 74 d << "a: " << (mCameraPosition - pos).squaredLength() 75 << " b: " << (mCullCamera->getDerivedPosition() - pos).squaredLength(); 76 LogManager::getSingleton().logMessage(d.str());*/ 72 77 return (mCameraPosition - pos).squaredLength(); 73 //return (mCullCamera->getDerivedPosition() - pos).squaredLength();74 78 } 75 79 //----------------------------------------------------------------------- -
GTP/trunk/Lib/Vis/OnlineCullingCHC/OGRE/src/OgrePlatformOcclusionQuery.cpp
r938 r944 12 12 PlatformOcclusionQuery::~PlatformOcclusionQuery() 13 13 { 14 // hardwareocclusion query is deleted by Ogre 14 15 //delete mHardwareOcclusionQuery; 15 16 } -
GTP/trunk/Lib/Vis/OnlineCullingCHC/src/VisibilityEnvironment.cpp
r938 r944 32 32 argv[1] = fname; 33 33 34 GtpVisibilityPreprocessor::Debug << "here4 loading environment from: " << argv[1] << endl; 34 GtpVisibilityPreprocessor::Debug << "loading environment from: " << argv[1] << endl; 35 return GtpVisibilityPreprocessor::environment->Parse(argc, argv, false); 35 36 */ 36 37 //-- parse environment 37 38 return mEnvironment->ReadEnvFile(filename.c_str()); 38 //return GtpVisibilityPreprocessor::environment->Parse(argc, argv, false);39 39 } 40 40 //-----------------------------------------------------------------------
Note: See TracChangeset
for help on using the changeset viewer.