How to set smoothing level in OpenGl?

hi guys!
how can i set the smoothing level?
do you know programms like 3dexploration, which is based on opengl too`?
there you can in/decrease the level of smoothing!
but how to do that?
Thanks for your help!

Hi !

Not sure what you mean here, the only thing you can do in OpenGL is to select if you want to use vertex normals or not (this will interpolate normals to make a mesh of triangles “look” smoother), if you mean to make a mesh smoother, through subdivision or something like that, then this is at a much higher level then OpenGL.

OpenGL itself is just a rendering engine to display your triangles, you have to supply them yourself, and if you want subdivision you will have to do that before you send the triangles to OpenGL.

Mikael

Oh…
sounds very hard 2 do :wink:
hmmm…
there must be a way to auto-generate these smoother normals…
in 3d Exploration they can make this with every object…
there you can set the smoothing level in degrees!
THX for your help!

Hi !

Calculating vertex normals is pretty easy if you just have the triangle, there are lots of documentation on this available, and there are lots of different ways to do it, but it’s not difficult.

Mikael