Ignore:
Timestamp:
05/15/05 04:08:02 (19 years ago)
Author:
mattausch
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/VUT/work/ogre_changes/Plugins/OctreeSceneManager/src/OgreOctreeSceneManager.cpp

    r61 r99  
    316316 
    317317    mOctree = new Octree( 0 ); 
    318 #ifdef OGRE_COHERENT_OCCLUSION_CULLING 
     318#ifdef GTP_VISIBILITY_MODIFIED_OGRE 
    319319        mNumOctreeNodes = 1; 
    320 #endif // OGRE_COHERENT_OCCLUSION_CULLING 
     320#endif // GTP_VISIBILITY_MODIFIED_OGRE 
    321321    mMaxDepth = depth; 
    322322    mBox = box; 
     
    461461        { 
    462462            octant -> mChildren[ x ][ y ][ z ] = new Octree( octant ); 
    463 #ifdef OGRE_COHERENT_OCCLUSION_CULLING 
     463#ifdef GTP_VISIBILITY_MODIFIED_OGRE 
    464464        mNumOctreeNodes ++; 
    465 #endif // OGRE_COHERENT_OCCLUSION_CULLING 
     465#endif // GTP_VISIBILITY_MODIFIED_OGRE 
    466466 
    467467            const Vector3 *corners = octant -> mBox.getAllCorners(); 
     
    10281028 
    10291029    mOctree = new Octree( 0 ); 
    1030 #ifdef OGRE_COHERENT_OCCLUSION_CULLING 
     1030#ifdef GTP_VISIBILITY_MODIFIED_OGRE 
    10311031        mNumOctreeNodes = 1; 
    1032 #endif // OGRE_COHERENT_OCCLUSION_CULLING 
     1032#endif // GTP_VISIBILITY_MODIFIED_OGRE 
    10331033    mOctree->mBox = box; 
    10341034 
     
    11661166    return q; 
    11671167} 
    1168 #ifdef OGRE_COHERENT_OCCLUSION_CULLING 
     1168#ifdef GTP_VISIBILITY_MODIFIED_OGRE 
    11691169//----------------------------------------------------------------------- 
    11701170void OctreeSceneManager::_renderOctant(Camera *cam, Octree *octant) 
     
    11771177                OctreeNode *sn = *it; 
    11781178 
    1179         mNumObjects++; 
     1179        ++mNumObjects; 
    11801180 
    11811181                // check bounding box visibility of scene nodes 
     
    11871187 
    11881188                        if (mDisplayNodes) 
     1189                        { 
    11891190                                getRenderQueue()->addRenderable(sn); 
     1191                        } 
    11901192 
    11911193                        // check if the scene manager or this node wants the bounding box shown. 
    11921194                        if (sn->getShowBoundingBox() || mShowBoundingBoxes) 
     1195                        { 
    11931196                                sn->_addBoundingBoxToQueue(getRenderQueue()); 
    1194  
    1195                         if (mShowBoxes) 
    1196                                 getRenderQueue()->addRenderable(octant->getWireBoundingBox()); 
     1197                        } 
    11971198                } 
    11981199        ++it; 
    11991200        } 
    12001201 
     1202        if (mShowBoxes) 
     1203        { 
     1204                getRenderQueue()->addRenderable(octant->getWireBoundingBox()); 
     1205                ++mNumObjects; 
     1206        } 
     1207 
    12011208        SceneManager::_renderVisibleObjects(); 
    12021209 
    1203         // delete all rendered objects from renderqueue 
     1210        // delete all rendered objects from the render queue 
    12041211        _deleteRenderedQueueGroups(); 
    12051212} 
    1206 #endif // OGRE_COHERENT_OCCLUSION_CULLING 
    1207 } 
     1213#endif // GTP_VISIBILITY_MODIFIED_OGRE 
     1214} 
Note: See TracChangeset for help on using the changeset viewer.