Ignore:
Timestamp:
11/03/05 19:31:56 (19 years ago)
Author:
bittner
Message:

vsspreprocessor kdtree meshkdtree optimization

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/VUT/GtpVisibilityPreprocessor/src/VssPreprocessor.h

    r374 r376  
    66 
    77#include "Preprocessor.h" 
    8  
     8#include "VssRay.h" 
    99 
    1010/** Sampling based visibility preprocessing. The implementation is based on heuristical 
     
    1313public: 
    1414        int mPass; 
    15  
    1615  int mSamplesPerPass; 
    1716  int mTotalSamples; 
    18   int mKdPvsDepth; 
    1917  ofstream mStats; 
     18         
    2019  ObjectContainer mObjects; 
    21   RayContainer mSampleRays; 
     20 
     21        // rays cast during the processing 
     22  VssRayContainer mVssRays; 
    2223         
    2324  VssPreprocessor(); 
    24  
    2525  ~VssPreprocessor(); 
    2626 
    2727  virtual bool ComputeVisibility(); 
    2828 
     29        Vector3 
     30        GetViewpoint(); 
     31 
     32        Vector3 
     33        GetDirection(const Vector3 &viewpoint); 
     34         
    2935  void 
    3036  SetupRay(Ray &ray,  
     
    3339                                         ); 
    3440 
    35   KdNode * 
    36   GetNodeForPvs(KdLeaf *leaf); 
    3741 
    38         int 
    39         AddNodeSamples(const Ray &ray, 
    40                                                                  Intersectable *sObject, 
    41                                                                  Intersectable *tObject 
    42                                                                  ); 
     42         
     43        VssRay *  
     44        CastRay( 
     45                                        Vector3 &viewPoint, 
     46                                        Vector3 &direction 
     47                                        ); 
     48                 
    4349 
    44         int 
    45         CastRay(Intersectable *object, 
    46                                         Ray &ray); 
    4750         
    48         KdNode * 
    49         GetNodeToSample(Intersectable *object); 
    50  
    5151        virtual bool BuildBspTree() { return false; } 
    5252 
Note: See TracChangeset for help on using the changeset viewer.