Ignore:
Timestamp:
10/24/05 16:37:50 (19 years ago)
Author:
mattausch
Message:

fixed color bug
fixed terrain tile ch culling
made better terrain

Location:
trunk/VUT/work/ogre_changes/Plugins/OctreeSceneManager
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/VUT/work/ogre_changes/Plugins/OctreeSceneManager/include/OgreOctree.h

    r316 r347  
    188188        */ 
    189189        void setLastRendered(int frameid); 
    190         /** Returns current depth of octree  
    191         @return current depth 
    192         */ 
    193         int getDepth(); 
    194         /** Returns real extent of the octree, i.e., the merged extent of the bounding boxes. */ 
     190         
     191        /** Returns real extent of the octree, i.e., the merged extent of the bounding boxes.  
     192        */ 
    195193        AxisAlignedBox _getWorldAABB(void) const; 
    196194 
    197         /** Updates bounds of real aabb of octree. */ 
     195        /** Updates bounds of real aabb of octree.  
     196        */ 
    198197        void _updateBounds(); 
    199198 
     
    206205        int mLastVisited; 
    207206        bool mVisible; 
    208         int mDepth; 
    209207         
    210208#endif // GTP_VISIBILITY_MODIFIED_OGRE 
  • trunk/VUT/work/ogre_changes/Plugins/OctreeSceneManager/src/OgreOctree.cpp

    r316 r347  
    104104    mParent = parent; 
    105105#ifdef GTP_VISIBILITY_MODIFIED_OGRE 
    106         if (mParent)  
    107                 mDepth = parent->getDepth() + 1; 
    108         else 
    109                 mDepth = 0; 
    110106        // update bounds because we want tight octree 
    111         _updateBounds(); 
     107        if (1) _updateBounds();  
    112108         
    113109#endif //GTP_VISIBILITY_MODIFIED_OGRE 
     
    219215{ 
    220216        return mParent; 
    221 } 
    222 //-----------------------------------------------------------------------        
    223 int Octree::getDepth() 
    224 { 
    225         return mDepth; 
    226217} 
    227218//-----------------------------------------------------------------------        
Note: See TracChangeset for help on using the changeset viewer.