Jump to content
  • Advertisement
Sign in to follow this  
weewun

OpenGL lines in openGL

This topic is 3617 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

im about to make a program that will represent curves in 3D space using openGL and was wondering what the best way to draw them would be. i was thinking about using a quad strip but was thinking that to make it look smooth would require alot of quads. is there a better way to do this? any input would be appreciated :) cheers

Share this post


Link to post
Share on other sites
Advertisement
graphics hardware deals with polygons so at some point whatever you do will have to interpreted by the GPU as vertices and polygons,

in openGL, GLU provides some functions to help you render parametric surfaces like NURBS or BEZIER but at the end of the day this will become polygons.

In short yes for a smoother surface you will need lots of quads, in long you could reduce your polygon count and use some clever tricks like smoothing normals to create the illusion of a surface more curved then the geometry actually is.

you may notice in some games when you notice the silhouette of an object it looks a lot blockier than when you cant see the silhouette because normal maps and smooth groups create the illusion of a smoother surface.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!