Subversion Repositories gelsvn

Rev

Rev 312 | Rev 322 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 312 Rev 313
Line 22... Line 22...
22
#include "Geometry/AABox.h"
22
#include "Geometry/AABox.h"
23
#include "Geometry/OBox.h"
23
#include "Geometry/OBox.h"
24
#include "Util/Timer.h"
24
#include "Util/Timer.h"
25
#include "Camera.h"
25
#include "Camera.h"
26
 
26
 
27
// #define USE_BSP
27
#define USE_BSP
28
 
28
 
29
using namespace std;
29
using namespace std;
30
using namespace CGLA;
30
using namespace CGLA;
31
using namespace Geometry;
31
using namespace Geometry;
32
using namespace HMesh;
32
using namespace HMesh;
33
using namespace GLGraphics;
33
using namespace GLGraphics;
34
 
34
 
35
/*
35
/*
36
 * TODO: 
36
 * TODO: 
37
 * - BSP find out why BSP tree is suboptimal for the bunny mesh.
-
 
38
 * - BBOX remove HMesh dependency - that is crazy.
37
 * - BBOX remove HMesh dependency - that is crazy.
39
 * - BBox visit child nodes in order of how far away the intersection point on
38
 * - BBox visit child nodes in order of how far away the intersection point on
40
 *        the bbox is. Closest nodes visited first. Cull nodes farther than
39
 *        the bbox is. Closest nodes visited first. Cull nodes farther than
41
 *        an actual intersection point.
40
 *        an actual intersection point.
42
 * - BBox Smooth interpolation of triangle normals. Straightforward.
41
 * - BBox Smooth interpolation of triangle normals. Straightforward.