commit 0fb5a0ecfdaf7ed72b5a895d6aaf3944fe758489
parent 24d01209cd6f3d1cf559bcdd3d26eb59dcbf5bf7
Author: Yoann <yoann.b87@voila.fr>
Date: Mon, 3 Oct 2011 11:27:13 +0200
Merge branch 'master' of https://github.com/jsmaniac/2011-m2s3-city-builder
Diffstat:
2 files changed, 10 insertions(+), 1 deletion(-)
diff --git a/bugs/new/2011-10-02-1410-geomorphing.txt b/bugs/new/2011-10-02-1410-geomorphing.txt
@@ -0,0 +1,8 @@
+Idée :
+
+Lorsqu'on ajoute un vertex, pour éviter une modification brutale de
+l'apparence du terrain, on anime la position du vertex depuis sa position
+interpolée lorsqu'il n'existait pas vers sa position réelle.
+
+Pour effectuer cette animation, on peut faire un vertex shader qui déplace
+le vertex vers sa bonne position en fonction de la distance de la caméra ?
diff --git a/display.c b/display.c
@@ -112,7 +112,8 @@ void renderScene() {
glLoadIdentity();
//gluLookAt(1024,512,1356,1024,512,0,0,1,0);
gluLookAt(xCamera,yCamera,zCamera,xSight,ySight,zSight,0,1,0);
-
+
+ //glClearColor(1,1,1,1); // pour un fond blanc
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT) ;
drawAxes();
glRotated(yAngle,0,1,0);