#include <windows.h>
#include <gl/gl.h>
#include <gl/glut.h>
#include <iostream>
#include <cstdlib>
#include <ctime>
#include "FormatImport/PlyLoader.h"
#include "FormatImport/MyLoader.h"
#include "Partitoning/UniformGrid.h"
#include "Partitoning/KdTree.h"
#include "Camera.h"
#include <float.h>
Classes | |
struct | Child |
Defines | |
#define | SPHERES |
#define | KDVIS |
#define | A |
Functions | |
void | keyDown (unsigned char key, int q, int w) |
void | keyDownSpec (int key, int q, int w) |
void | intersectTexture (float3 &eye, float3 &dir, unsigned offset, float &u, float &v, float &t) |
int | traverseKdTree (float3 &eye, float3 &dir, float3 &minimum, float3 &maximum) |
__global__ void | renderTreeP (float3 eye, float3 upperLeft, float3 dx, float3 dy, float3 minimum, float3 maximum) |
void | cudaRenderKd (unsigned int width, unsigned int height, float3 &minimum, float3 &maximum, CameraCuda &camera) |
void | drawTree (unsigned node, unsigned depth, float3 mini, float3 maxi) |
void | render () |
void | dumpMainHeap () |
int | main (int argc, char **argv) |
Variables | |
Object * | bunny |
KdTree * | grid |
unsigned * | bla |
int | x = 56 |
int | y = 32 |
int | z = 17 |
float | angleX |
const float | PI2 = 6.283185307179586476925286766559f |
const float | PI2A = 57.295779513082320876798154814105f |
float | eyex |
float | eyey |
float | eyez |
float | dirx |
float | diry |
float | dirz |
float | p1x |
float | p1y |
float | p1z |
float | p2x |
float | p2y |
float | p2z |
unsigned | level = 0 |
unsigned | cellIndex = 0 |
unsigned | cellTarget = 0 |
CameraCuda | cameraCuda |
unsigned | indices [] |
unsigned | maxDepth = 0 |
unsigned | triangleTests = 0 |
unsigned | steps = 0 |
#define A |
#define KDVIS |
#define SPHERES |
void cudaRenderKd | ( | unsigned int | width, | |
unsigned int | height, | |||
float3 & | minimum, | |||
float3 & | maximum, | |||
CameraCuda & | camera | |||
) |
void drawTree | ( | unsigned | node, | |
unsigned | depth, | |||
float3 | mini, | |||
float3 | maxi | |||
) |
void dumpMainHeap | ( | ) |
void intersectTexture | ( | float3 & | eye, | |
float3 & | dir, | |||
unsigned | offset, | |||
float & | u, | |||
float & | v, | |||
float & | t | |||
) |
void keyDown | ( | unsigned char | key, | |
int | q, | |||
int | w | |||
) |
void keyDownSpec | ( | int | key, | |
int | q, | |||
int | w | |||
) |
int main | ( | int | argc, | |
char ** | argv | |||
) |
void render | ( | ) |
__global__ void renderTreeP | ( | float3 | eye, | |
float3 | upperLeft, | |||
float3 | dx, | |||
float3 | dy, | |||
float3 | minimum, | |||
float3 | maximum | |||
) |
int traverseKdTree | ( | float3 & | eye, | |
float3 & | dir, | |||
float3 & | minimum, | |||
float3 & | maximum | |||
) |
float angleX |
unsigned* bla |
unsigned cellIndex = 0 |
unsigned cellTarget = 0 |
float dirx |
float diry |
float dirz |
float eyex |
float eyey |
float eyez |
unsigned indices[] |
Initial value:
{ 2531, 2595, 2596, 2531, 2596, 2532, 2532, 2596, 2597, 2532, 2597, 2533, 2533, 2597, 2598, 2533, 2598, 2534, 2534, 2598, 2599, 2530, 2595, 2531}
unsigned level = 0 |
unsigned maxDepth = 0 |
float p1x |
float p1y |
float p1z |
float p2x |
float p2y |
float p2z |
const float PI2 = 6.283185307179586476925286766559f |
const float PI2A = 57.295779513082320876798154814105f |
unsigned steps = 0 |
unsigned triangleTests = 0 |
int x = 56 |
int y = 32 |
int z = 17 |