Jump to content
  • Advertisement
Sign in to follow this  
weewun

OpenGL lines in openGL

This topic is 3667 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.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!