Changeset 1618 for GTP/trunk/Lib/Vis


Ignore:
Timestamp:
10/13/06 03:56:08 (18 years ago)
Author:
mattausch
Message:

kinda working

Location:
GTP/trunk/Lib/Vis/OnlineCullingCHC/OGRE
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/Lib/Vis/OnlineCullingCHC/OGRE/include/OgreBoundingBoxConverter.h

    r1616 r1618  
    209209        GtpVisibilityPreprocessor::ObjectContainer &objects) const 
    210210{ 
    211         Ogre::LogManager().logMessage("pvs: intersecting objects"); 
     211        //Ogre::LogManager().logMessage("pvs: intersecting objects"); 
    212212        const long startTime = GtpVisibilityPreprocessor::GetTime(); 
    213213 
     
    219219        for (iit = iboxes.begin(); iit != iit_end; ++ iit, ++ i) 
    220220        { 
    221                 if ((i % 1000) == 0) 
     221                if (0 && ((i % 1000) == 0)) 
    222222                { 
    223223                        std::stringstream d; d << "found " << i << " objects"; 
     
    251251        } 
    252252 
    253         std::stringstream d; d << "finished object intersection in " << GtpVisibilityPreprocessor::TimeDiff(startTime, GtpVisibilityPreprocessor::GetTime()) * 1e-3 << "secs"; 
    254         Ogre::LogManager().logMessage(d.str()); 
     253        //std::stringstream d; d << "finished object intersection in " << GtpVisibilityPreprocessor::TimeDiff(startTime, GtpVisibilityPreprocessor::GetTime()) * 1e-3 << "secs"; 
     254        //Ogre::LogManager().logMessage(d.str()); 
    255255 
    256256        return true; 
  • GTP/trunk/Lib/Vis/OnlineCullingCHC/OGRE/src/OgreOcclusionCullingSceneManager.cpp

    r1616 r1618  
    159159//----------------------------------------------------------------------- 
    160160void OcclusionCullingSceneManager::PrepareVisualization(Camera *cam) 
    161 { 
     161{/*Ogre::LogManager::getSingleton().logMessage("here4"); 
    162162        // add player camera for visualization purpose 
    163163        try  
     
    180180                getRenderQueue()->addRenderable(*it); 
    181181        } 
    182 /* 
     182 
    183183        // set old view cell geometry to invisible 
    184     if (mCurrentViewCell //&& mCurrentViewCell->GetMesh()) 
     184    if (mCurrentViewCell && mCurrentViewCell->GetMesh()) 
    185185        { 
    186186                //const bool showSingleViewCell = true; 
     
    272272                }        
    273273        } 
    274 */ 
    275  
    276     if (mRenderNodesForViz || mRenderNodesContentForViz) 
     274 
     275 
     276   if (mRenderNodesForViz || mRenderNodesContentForViz) 
    277277        { 
    278278                // HACK: change node material so it is better suited for visualization 
     
    307307                        } 
    308308                } 
    309         } 
     309        }*/ 
    310310} 
    311311//----------------------------------------------------------------------- 
     
    448448        //-- (e.g., the visualization mode, the shadow pass) 
    449449 
    450         if (mShowVisualization || 
     450        if ( 
     451                mShowVisualization || 
    451452           (mShadowTechnique == SHADOWTYPE_TEXTURE_MODULATIVE &&  
    452453            mIlluminationStage == IRS_RENDER_TO_TEXTURE)) 
     
    12041205        OctreeBoundingBoxConverter bconverter(this); 
    12051206 
     1207        // objects are set to invisible initially 
     1208        SetObjectsVisible(false); 
     1209 
    12061210        // load the view cells assigning the found objects to the pvss 
    12071211        const bool finalizeViewCells = true; 
     
    12091213                GtpVisibilityPreprocessor::ViewCellsManager::LoadViewCells(filename, &mObjects, true, &bconverter); 
    12101214 
    1211         Ogre::LogManager().getSingleton().logMessage("view cells loaded"); 
     1215        //Ogre::LogManager().getSingleton().logMessage("view cells loaded"); 
    12121216        //Ogre::LogManager().getSingleton().flush(); 
    1213         // objects are set to invisible initially 
    1214         SetObjectsVisible(false); 
     1217         
    12151218 
    12161219        if (finalizeViewCells) 
Note: See TracChangeset for help on using the changeset viewer.