bignose
11-25-2001, 07:29 PM
Hello,
I am wondering if there is a way through the OpenGL API to set the threshold angle that is used for smoothing polygons using glShadeModel(GL_SMOOTH).
I know that most 3D modeling software lets you set the autofacet angle. Two polygons that have less than that angle between them and it smoothes the edge - greater than that angle and it does not, which gives you a sharp edge.
Does my explanation make sense? Basically I want to be able to increase or decrease the amount of smoothing that OpenGL does. I am dreading that the only way to do this is by manipulating the surface normals for the polygons. :-(
Thanks for any help!
I am wondering if there is a way through the OpenGL API to set the threshold angle that is used for smoothing polygons using glShadeModel(GL_SMOOTH).
I know that most 3D modeling software lets you set the autofacet angle. Two polygons that have less than that angle between them and it smoothes the edge - greater than that angle and it does not, which gives you a sharp edge.
Does my explanation make sense? Basically I want to be able to increase or decrease the amount of smoothing that OpenGL does. I am dreading that the only way to do this is by manipulating the surface normals for the polygons. :-(
Thanks for any help!