Ignore:
Timestamp:
05/10/06 18:33:35 (18 years ago)
Author:
mattausch
Message:
 
Location:
GTP/trunk/Lib/Vis/OnlineCullingCHC/OGRE/src
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/Lib/Vis/OnlineCullingCHC/OGRE/src/OgreBoundingBoxConverter.cpp

    r938 r944  
    1919        GtpVisibilityPreprocessor::IndexedBoundingBoxContainer:: 
    2020                const_iterator iit, iit_end = iboxes.end(); 
    21 std::stringstream d; d << "here75557\n"; 
    22    LogManager::getSingleton().logMessage(d.str()); 
     21 
     22   
    2323        for (iit = iboxes.begin(); iit != iit_end; ++ iit) 
    2424        { 
    2525                const GtpVisibilityPreprocessor::AxisAlignedBox3 box = (*iit).second; 
    2626                const AxisAlignedBox currentBox = OgreTypeConverter::ConvertToOgre(box); 
    27 std::stringstream d; d << "here77\n"; 
    28    LogManager::getSingleton().logMessage(d.str()); 
     27 
     28    
    2929                Entity *ent = FindCorrespondingObject(currentBox); 
    3030 
     
    5353        AxisAlignedBox mybox = EnlargeBox(box); 
    5454        //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         
    5756        //-- get intersecting scene nodes 
    5857        mSceneMgr->findNodesIn(mybox, sceneNodeList, NULL); 
  • GTP/trunk/Lib/Vis/OnlineCullingCHC/OGRE/src/OgreOcclusionCullingSceneManager.cpp

    r938 r944  
    168168    } 
    169169        // add bounding boxes of rendered objects 
    170         if (1) 
     170        if (0) 
    171171        for (BoxList::iterator it = mBoxes.begin(); it != mBoxes.end(); ++it) 
    172172        { 
     
    561561                if (mViewCellsLoaded) 
    562562                { 
    563                         LogManager::getSingleton().logMessage("here3"); 
    564563                        mUseViewCells = *static_cast<const bool *>(val); 
    565564 
     
    10141013                OgreMeshInstance *omi = static_cast<OgreMeshInstance *>(*it); 
    10151014                Entity *ent = omi->GetMesh(); 
    1016                 LogManager::getSingleton().logMessage("here999"); 
     1015                 
    10171016                ent->setVisible(visible); 
    10181017        } 
     
    10361035        // load the view cells assigning the found objects to the pvss 
    10371036        mViewCellsManager =  
    1038                 GtpVisibilityPreprocessor::ViewCellsManager::LoadViewCells(filename, &mObjects, env, &bconverter); 
     1037                GtpVisibilityPreprocessor::ViewCellsManager::LoadViewCells(filename, &mObjects, env, false, &bconverter); 
    10391038 
    10401039        if (!mViewCellsManager) 
     
    10551054                // set everything visible for savety 
    10561055                SetObjectsVisible(true); 
    1057 LogManager::getSingleton().logMessage("here7"); 
     1056 
    10581057                return; 
    10591058        } 
    1060                   LogManager::getSingleton().logMessage("here8"); 
     1059                 
    10611060        GtpVisibilityPreprocessor::ObjectPvsMap::const_iterator oit, 
    10621061                        oit_end = vc->GetPvs().mEntries.end(); 
     
    10691068                OgreMeshInstance *omi = dynamic_cast<OgreMeshInstance*>((*oit).first); 
    10701069                omi->GetMesh()->setVisible(load); 
    1071                 GtpVisibilityPreprocessor::Debug << "here45 " << omi->GetId() << endl; 
     1070                //GtpVisibilityPreprocessor::Debug << "assigned id " << omi->GetId() << endl; 
    10721071        } 
    10731072} 
     
    10891088 
    10901089        mElementaryViewCell = newElementary; 
    1091         LogManager::getSingleton().logMessage("unloading"); 
     1090        //LogManager::getSingleton().logMessage("unloading"); 
    10921091        //-- unload old pvs 
    10931092        applyViewCellPvs(mCurrentViewCell, false); 
     
    11101109                viewCell = newElementary; 
    11111110        } 
    1112         LogManager::getSingleton().logMessage("loading"); 
     1111        //LogManager::getSingleton().logMessage("loading"); 
    11131112        //-- load new pvs 
    1114         if (0)applyViewCellPvs(viewCell, true); 
     1113        applyViewCellPvs(viewCell, true); 
    11151114 
    11161115        // store pvs 
  • GTP/trunk/Lib/Vis/OnlineCullingCHC/OGRE/src/OgreOctreeHierarchyInterface.cpp

    r938 r944  
    5454{ 
    5555        Octree *octree = static_cast<Octree *>(node); 
     56 
    5657        // HACK: if there are subtrees, they are empty => we are not interested in them 
    5758        return octree->numNodes() == (int)octree->mNodes.size(); 
     
    7071        const Vector3 pos = (bmax - bmin) * 0.5 + bmin; 
    7172         
     73/*      std::stringstream d;  
     74        d << "a: " << (mCameraPosition - pos).squaredLength()  
     75          << " b: " << (mCullCamera->getDerivedPosition() - pos).squaredLength(); 
     76        LogManager::getSingleton().logMessage(d.str());*/ 
    7277        return (mCameraPosition - pos).squaredLength(); 
    73         //return (mCullCamera->getDerivedPosition() - pos).squaredLength(); 
    7478} 
    7579//----------------------------------------------------------------------- 
  • GTP/trunk/Lib/Vis/OnlineCullingCHC/OGRE/src/OgrePlatformOcclusionQuery.cpp

    r938 r944  
    1212PlatformOcclusionQuery::~PlatformOcclusionQuery() 
    1313{ 
     14        // hardwareocclusion query is deleted by Ogre 
    1415        //delete mHardwareOcclusionQuery; 
    1516} 
Note: See TracChangeset for help on using the changeset viewer.