diff --git a/bugs/new/2011-10-02-1410-geomorphing.txt b/bugs/new/2011-10-02-1410-geomorphing.txt new file mode 100644 index 0000000..1b3977d --- /dev/null +++ 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 index 91a077e..6d34ad5 100644 --- 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);