lilawood
08-19-2012, 04:25 PM
Hello,
I'm new to openGl and I need some help. I've draw a tree thanks to glLineWidth() like that :
glLineWidth(2);
glBegin(GL_LINES); //créer une ligne
glVertex3f(0,0,0);
glVertex3f(0.0,2,0.0);
glEnd();
glTranslatef(0.0,2,0.0);
It works well but I want to use cylinders or quads to obtain something more "realistic".
The question is which object can I use to do this ? I think cylinders but I'm not sure. I've tried cylinders
but they are all distant from each others.
Thanks in advice !
;)
I'm new to openGl and I need some help. I've draw a tree thanks to glLineWidth() like that :
glLineWidth(2);
glBegin(GL_LINES); //créer une ligne
glVertex3f(0,0,0);
glVertex3f(0.0,2,0.0);
glEnd();
glTranslatef(0.0,2,0.0);
It works well but I want to use cylinders or quads to obtain something more "realistic".
The question is which object can I use to do this ? I think cylinders but I'm not sure. I've tried cylinders
but they are all distant from each others.
Thanks in advice !
;)