Changeset 103 for trunk/VUT/Ogre/include


Ignore:
Timestamp:
05/18/05 02:06:32 (19 years ago)
Author:
mattausch
Message:

fixed bug with shadow maps

Location:
trunk/VUT/Ogre/include
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/VUT/Ogre/include/OgrePlatformHierarchyInterface.h

    r94 r103  
    4444        void SetCullCamera(Camera *cullCam); 
    4545        /** Initialises this scene traverser for the current frame. 
    46         @param root root of the hierarchy 
    47                 @param cam current camera 
    48                 @param cullCam the camera used for culling. If null, the current camera is used 
    49                 @remark convenience method wich calls VisibilitySceneTraverser::initFrame, 
    50                 sets the current camera, and initialises the distance queue. 
     46                @remark This is a convenience method which resets the stats,  
     47                                sets the current camera, and initialises the distance queue. 
     48                @param root root of the hierarchy 
     49                @param cam the actual camera definding the view frustum 
     50                @param cullCam the camera used for culling.  
     51                @remark If null, the actual camera is used for both viewing and culling          
    5152        */ 
    5253        void InitFrame(GtpVisibility::HierarchyNode *root, Camera *cam, Camera *cullCam = NULL); 
     
    6061        */ 
    6162        void SetSceneManager(SceneManager *sm); 
    62         /** Sets pointer to the current render system  
     63        /** Sets pointer to the current render system . 
    6364                @param rsys the rendersystem  
    6465        */ 
     
    7778                GtpVisibility::HierarchyNode *node, const bool wasVisible); 
    7879 
     80        /** If true, the interface finds and renders only objects which are marked as shadow casters. 
     81                @remark This is important for the shadow texture pass 
     82        */ 
     83        void SetOnlyShadowCasters(bool onlyShadowCasters); 
     84 
    7985protected: 
     86        /** A pass that prepares an occlusion query. 
     87                @remark disables depth write, colour write, lighting, 
     88                vertex and fragment program. 
     89        */ 
     90        void SetOcclusionPass(); 
     91 
    8092        /** Deletes all occlusion queries. 
    8193        */ 
     
    8597        */ 
    8698        void RenderBoundingBox(AxisAlignedBox *box); 
    87         /** Returns pointer to current renderable half bounding box geometry 
    88         */ 
    89         //SolidHalfBoundingBox *GetSolidHalfBoundingBox(); 
     99 
    90100        /** Returns pointer to current renderable bounding box geometry 
    91101        */ 
    92102        SolidBoundingBox *GetSolidBoundingBox(); 
    93103 
    94         /** one renderable half of an aabb.  
     104        /** Returns pointer to current renderable half bounding box geometry 
     105        */ 
     106        //SolidHalfBoundingBox *GetSolidHalfBoundingBox(); 
     107 
     108        /** Renderable of an aabb 
    95109        */ 
    96110        SolidBoundingBox *mSolidBoundingBox; 
     
    105119         
    106120        std::vector<PlatformOcclusionQuery *> mOcclusionQueries; 
     121 
     122        bool mOnlyShadowCasters; 
    107123}; 
    108124 
  • trunk/VUT/Ogre/include/OgreVisibilitySceneManager.h

    r99 r103  
    5656        SceneNodeHierarchyInterface *mHierarchyInterface; 
    5757        GtpVisibility::VisibilityManager *mVisibilityManager; 
     58 
    5859        bool mUseVisibilityCulling; 
     60        bool mShowVisualization; 
    5961}; 
    6062} // namespace Ogre 
  • trunk/VUT/Ogre/include/OgreVisibilityTerrainSceneManager.h

    r100 r103  
    3030 
    3131        /** Sets the given option for the SceneManager 
    32                             @remarks 
    33                 Options are: 
    34                 "Algorithm", int *;                      
     32                @remarks Options are: "Algorithm", int *;                        
    3533        */ 
    3634         
     
    4543        bool getOptionKeys( StringVector &refKeys ); 
    4644 
    47         /** Sets the visibility manager. 
     45        /** Sets the visibility manager 
    4846                @param visManager the visibility manager 
    4947        */ 
    5048        void setVisibilityManager(GtpVisibility::VisibilityManager *visManager); 
    51         /** See set. 
     49        /** See set 
    5250        */ 
    5351        GtpVisibility::VisibilityManager *getVisibilityManager(); 
    5452         
    55         //writes out stats into the Ogre log file 
    56         void WriteLog(); 
    57         void SetShowVisualization(bool showViz); 
    58  
    59 /*      void SetSkyBoxEnabled(bool enabled); 
    60         void SetSkyPlaneEnabled(bool enabled); 
    61         void SetSkyDomeEnabled(bool enabled);*/ 
    62  
    6353protected: 
    6454         
     55        /** Writes out stats into the Ogre log file 
     56        */ 
     57        void WriteLog(); 
     58 
    6559        OctreeHierarchyInterface *mHierarchyInterface; 
    6660        GtpVisibility::VisibilityManager *mVisibilityManager; 
     
    6862        bool mUseVisibilityCulling; 
    6963        bool mShowVisualization; 
     64        bool mRenderNodesForViz; 
    7065}; 
    7166 
Note: See TracChangeset for help on using the changeset viewer.