Ignore:
Timestamp:
09/02/08 09:07:45 (16 years ago)
Author:
mattausch
Message:

shadow mapping almost working (but ulgy!!)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/App/Demos/Vis/FriendlyCulling/src/Bvh.h

    r2825 r2894  
    6565        */ 
    6666        virtual ~BvhNode(); 
    67         /** Returns unique id for this node. 
    68         */ 
    69         //inline int GetId() {return mId;} 
    7067        /** Depth of this node in the tree. 
    7168        */ 
     
    167164 
    168165        ///////// 
    169         // used for view frustum culling 
     166        //-- used for view frustum culling 
    170167 
    171168        int mPlaneMask; 
     
    619616 
    620617        //////////////////////// 
    621  
     618         
     619        /// the bounding box of the bvh 
     620        AxisAlignedBox3 mBox; 
    622621        /// the root of the hierarchy 
    623622        BvhNode *mRoot; 
     
    627626        size_t mGeometrySize; 
    628627 
    629  
    630         //////////////// 
    631  
    632628        /// the current camera 
    633629        Camera *mCamera; 
     630 
     631 
     632        //////////////// 
     633        //-- tigher bounds termination criteria 
     634 
     635        /** maximal depth from which children are fetched for  
     636                testing instead of the current node 
     637        */ 
     638        int mMaxDepthForTestingChildren; 
     639        /// threshold for computing tighter bounds 
     640        float mAreaRatioThreshold; 
     641         
     642         
     643        //////////////// 
     644        //-- statistics 
     645 
     646        BvhStats mBvhStats; 
     647        /// the overall number of nodes 
     648        int mNumNodes; 
     649        /// the number of "virtual" (=actually used) nodes 
     650        int mNumVirtualNodes; 
     651 
     652 
     653        //////////// 
     654        //-- rendering stuff 
     655 
     656        /// these proxy nodes are tested instead of the current node 
     657        BvhNodeContainer mTestNodes; 
     658        /// the indices used for vbo index buffering 
     659        unsigned int *mTestIndices; 
     660        /// a pointer to the end of the indices array 
     661        int mCurrentIndicesPtr; 
     662        /// the vbo id 
     663        unsigned int mVboId; 
    634664        /// a vertex array used if working with indexed arrays (without vbo) 
    635665        Vector3 *mVertices; 
    636666        /// indices used for draw array rendering 
    637667        unsigned int *mIndices; 
    638  
    639         /** maximal depth from which children are fetched for  
    640                 testing instead of the current node 
    641         */ 
    642         int mMaxDepthForTestingChildren; 
    643  
    644         float mAreaRatioThreshold; 
    645  
    646  
    647         BvhStats mBvhStats; 
    648  
    649         BvhNodeContainer mTestNodes; 
    650          
    651         unsigned int *mTestIndices; 
    652         /// a pointer to the end of the indices array 
    653         int mCurrentIndicesPtr; 
    654  
    655         int mNumNodes; 
    656  
    657         /// the bounding box 
    658         AxisAlignedBox3 mBox; 
    659  
    660         int mNumVirtualNodes; 
    661  
    662         ////////////// 
    663  
    664         unsigned int mVboId; 
    665668}; 
    666669 
Note: See TracChangeset for help on using the changeset viewer.