Ignore:
Timestamp:
05/01/06 00:08:09 (19 years ago)
Author:
mattausch
Message:

fitting objects to bb, debug

Location:
GTP/trunk/Lib/Vis/OnlineCullingCHC/OGRE/include
Files:
3 edited

Legend:

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

    r863 r868  
    7171        */ 
    7272        bool validatePassForRendering(Pass* pass); 
    73  
     73        /** This function renders renderables using false color ids. 
     74        */ 
    7475        void RenderItemBuffer(RenderPriorityGroup* pGroup); 
     76        /** Renders a single object using false color id. 
     77        */ 
    7578        void RenderSingleObjectForItemBuffer(Renderable *rend, Pass *pass); 
     79        /** Overritten from scene manager to include the false color id rendering of the 
     80                scene objects. 
     81        */ 
    7682        void renderQueueGroupObjects(RenderQueueGroup* pGroup); 
    7783 
     
    8894        OctreeHierarchyInterface *GetHierarchyInterface(); 
    8995 
    90         /** Inherited from scene manager. Neccesary to draw terrain properly. 
     96        /** Override this because we must handle shadows differently. 
    9197        */ 
    9298        void endFrame(); 
     
    171177        int mLeavePassesInQueue; 
    172178 
     179 
    173180        /// if transparent object are considered for item buffer visibility 
    174181        bool mRenderTransparentsForItemBuffer; 
    175182        /// Always execute the vertex program of a pass, e.g., for the depth pass or item buffer 
    176183        bool mExecuteVertexProgramForAllPasses; 
     184 
    177185        /// if hierarchical culling is currently in use 
    178186        bool mIsHierarchicalCulling; 
  • GTP/trunk/Lib/Vis/OnlineCullingCHC/OGRE/include/OgreVisibilityOctreeSceneManager.h

    r865 r868  
    1111#include "OgrePlatformQueryManager.h" 
    1212#include "VisibilityManager.h" 
     13#include "ViewCellsManager.h" 
     14 
     15//class GtpVisibilityPreprocessor::ViewCellsManager; 
    1316 
    1417 
     
    98101        void loadVisibilityConfig(const String& filename); 
    99102 
     103 
     104        /** Loads view cells for this particular scene. 
     105        */ 
     106        void LoadViewCells(std::string filename); 
     107 
    100108protected: 
    101109         
     
    113121        void InitVisibilityCulling(Camera *cam); 
    114122         
     123        /** Finds object corresponding to this bounding box in the scene. 
     124        */ 
     125        MovableObject *FindCorrespondingObject(const AxisAlignedBox &box); 
    115126 
     127        /** Identifies objects in the scene and gives them unique ids that 
     128                correspond to preprocessor ids. 
     129        */ 
     130        void IdentifyObjects(GtpVisibilityPreprocessor::ObjectContainer &objects); 
    116131 
    117132        /// the interface to the scene hierarchy. 
     
    163178        bool mExecuteVertexProgramForAllPasses; 
    164179 
     180        /// if hierarchical culling is currently in use 
    165181        bool mIsHierarchicalCulling; 
    166182 
    167         std::ofstream mDummyLog; 
     183        bool mViewCellsLoaded; 
     184        GtpVisibilityPreprocessor::ViewCellsManager *mViewCellsManager; 
    168185}; 
    169186 
  • GTP/trunk/Lib/Vis/OnlineCullingCHC/OGRE/include/OgreVisibilityTerrainSceneManager.h

    r865 r868  
    102102        void renderModulativeStencilShadowedQueueGroupObjects(RenderQueueGroup* pGroup); 
    103103 
     104        /** Override standard function so octree boxes are always of equal side length. 
     105                This has advantages for CHC, because terrain tiles are in different octree nodes 
     106                and can be culled. 
     107        */ 
     108        void setWorldGeometry(const String& filename); 
     109 
    104110protected: 
    105111         
Note: See TracChangeset for help on using the changeset viewer.