Jump to content

View more

Image of the Day

Boxes as reward for our ranking mode. ヾ(☆▽☆)
#indiedev #gamedev #gameart #screenshotsaturday https://t.co/ALF1InmM7K
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now

Extrude...

4: Adsense

Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.


  • You cannot reply to this topic
2 replies to this topic

#1 Michelle   Members   

122
Like
Likes
Like

Posted 26 November 2001 - 05:55 AM

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

#2 Obelix   Members   

122
Like
Likes
Like

Posted 26 November 2001 - 03:09 PM

For some reason do I think of the GLE Tubing and Extrusion Library.
http://linas.org/gle/

#3 HellRiZZer   Members   

308
Like
Likes
Like

Posted 26 November 2001 - 11:16 PM

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/




Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.