nv_dv
03-Jul-2006, 18:07
hi there
issuing with transforms onto modelview-matrix
when i create vertex_group (one actually) the only thing seem moving its
vertex... (hooo :grin: )
seriously, my goal its to translate [vertex] while they turn on themselve
but once i translate i figure out that the rotate axe away
i wonder if there's a way to move the origine
i tryed this
-----------------------------------
glRotatef(ax, 1.0,0.0,0.0);
glRotatef(ay, 0.0,1.0,0.0);
glRotatef(az, 0.0,0.0,1.0); // i'm aint sure about that View or Model ?
glPushMatrix();
glTranslatef(to origine);
glRotatef(pr, 0.0,0.0,1.0);
glTranslatef(to curent pos);
glVertex..........; glPopmatrix();
------------------------------------------
its ok when turn on the same place
but + translate...
-------------------------------------------
...
glPushMatrix();
glTranslatef(to origine);
glRotatef(pr, 0.0,0.0,1.0);
glTranslatef(to curent pos);
---- glTranslatef(0.02,0.0,0.0); -----
glVertex..........; glPopmatrix();
------------------------------------------
rotate away :sad:
if someone got a trick about modelview thing and/or origine translating
any help or link wloud be great.
alright that it and keep on GL :razz:
issuing with transforms onto modelview-matrix
when i create vertex_group (one actually) the only thing seem moving its
vertex... (hooo :grin: )
seriously, my goal its to translate [vertex] while they turn on themselve
but once i translate i figure out that the rotate axe away
i wonder if there's a way to move the origine
i tryed this
-----------------------------------
glRotatef(ax, 1.0,0.0,0.0);
glRotatef(ay, 0.0,1.0,0.0);
glRotatef(az, 0.0,0.0,1.0); // i'm aint sure about that View or Model ?
glPushMatrix();
glTranslatef(to origine);
glRotatef(pr, 0.0,0.0,1.0);
glTranslatef(to curent pos);
glVertex..........; glPopmatrix();
------------------------------------------
its ok when turn on the same place
but + translate...
-------------------------------------------
...
glPushMatrix();
glTranslatef(to origine);
glRotatef(pr, 0.0,0.0,1.0);
glTranslatef(to curent pos);
---- glTranslatef(0.02,0.0,0.0); -----
glVertex..........; glPopmatrix();
------------------------------------------
rotate away :sad:
if someone got a trick about modelview thing and/or origine translating
any help or link wloud be great.
alright that it and keep on GL :razz: