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

kinda working

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.