source: trunk/VUT/GtpVisibilityPreprocessor/src/SamplingPreprocessor.h @ 191

Revision 191, 648 bytes checked in by bittner, 19 years ago (diff)

basic sampling strategies

Line 
1#ifndef _SamplingPreprocessor_H__
2#define _SamplingPreprocessor_H__
3
4#include "Preprocessor.h"
5
6
7/** Sampling based visibility preprocessing. The implementation is based on heuristical
8    sampling of view space */
9class SamplingPreprocessor : public Preprocessor {
10public:
11  int mSamplesPerPass;
12  int mTotalSamples;
13  int mKdPvsDepth;
14 
15  SamplingPreprocessor();
16
17  virtual bool ComputeVisibility();
18
19  void
20  SetupRay(Ray &ray, const Vector3 &point, const Vector3 &direction);
21
22  KdNode *
23  GetNodeForPvs(KdLeaf *leaf);
24
25  int
26  AddNodeSamples(Intersectable *object, const Ray &ray, const int pass);
27
28  void
29  HoleSamplingPass();
30
31};
32
33
34
35#endif
Note: See TracBrowser for help on using the repository browser.