Merge branch 'master' of https://github.com/jsmaniac/2011-m2s3-city-builder
This commit is contained in:
commit
0fb5a0ecfd
8
bugs/new/2011-10-02-1410-geomorphing.txt
Normal file
8
bugs/new/2011-10-02-1410-geomorphing.txt
Normal file
|
@ -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 ?
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue
Block a user