Extrude...
Hello!
I´ve generated some nice sinus curves... These sinus curves are line based, now I want to extrude this function to make some nice effect...
How do I extrude these curves in an nice way?
This is the rendering loop:
float r;
glBegin(GL_LINE_STRIP);
for(float i=0,j; i<360; i++, j+=0.3)
{
r=sin(i*3.14/180*5+anim);
glVertex3f(-r*sin(3*i*3.14/180),-r*cos(3*5*i*3.14/180),- r*cos(3*i*3.14/180));
}
glEnd();
Too see the app in action: ftp://public:public@213.65.120.191:666/test-1.exe
/michelle
What do you mean ''to extrude function'' ?
If you mean create a surface by it, then its simple. You can create a set of points and evaluate them with OpenGL evaluators using glMap2f and glEvalMesh2.
See link
http://www.opengl.org/developers/code/mjktips/grid/
If you mean create a surface by it, then its simple. You can create a set of points and evaluate them with OpenGL evaluators using glMap2f and glEvalMesh2.
See link
http://www.opengl.org/developers/code/mjktips/grid/
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement