commit 0d38570ff3b203262c7b767329d39a315a4e5b28
parent cf64dc1e171eecf467743af3031d86331d20cdcf
Author: Yoann <yoann.b87@voila.fr>
Date: Thu, 6 Oct 2011 13:58:50 +0200
Trois fois rien.
Diffstat:
3 files changed, 10 insertions(+), 10 deletions(-)
diff --git a/display.c b/display.c
@@ -191,7 +191,7 @@ void setNormals(Triangle *t) {
- printf("%f %f %f\n",x,y,z);
+
t->vLeft->xNormal = x;
t->vLeft->yNormal = y;
t->vLeft->zNormal = z;
diff --git a/display.h b/display.h
@@ -17,12 +17,12 @@ int *vertices;
int windowWidth = 1024;
int nbVertex = 0;
int windowHeight = 768;
-int xCamera = 1024;
-int yCamera = 400;
-int zCamera = 1500;
-int xSight = 1024;
-int ySight = 512;
+int xCamera = 256;
+int yCamera = 100;
+int zCamera = 400;
+int xSight = 256;
+int ySight = 128;
int zSight = 0;
int yAngle = 0;
int xAngle = 0;
-int moveDist = 64;
+int moveDist = 16;
diff --git a/roam.c b/roam.c
@@ -312,9 +312,9 @@ Triangle* initDefaultExample() {
Vertex* vLeft = (Vertex*)malloc(sizeof(Vertex));
Vertex* vRight = (Vertex*)malloc(sizeof(Vertex));
- vApex->x = 1024; vApex->y = 1024; vApex->z = get_z(1024,1024);
+ vApex->x = 256; vApex->y = 256; vApex->z = get_z(256,256);
vLeft->x = 0; vLeft->y = 0; vLeft->z = get_z(0,0);
- vRight->x = 2048; vRight->y = 0; vRight->z = get_z(2048,0);
+ vRight->x = 512; vRight->y = 0; vRight->z = get_z(512,0);
t->vApex = vApex;
t->vLeft = vLeft;
@@ -326,7 +326,7 @@ Triangle* initDefaultExample() {
t->tRightNeighbor = NULL;
t->tParent = NULL;
- recursiveSplit(t, 13);
+ recursiveSplit(t, 20);
/* triangle_split(t); */
/* triangle_split(t->tLeftChild); */
/* triangle_split(t->tLeftChild->tLeftChild); */