PDA

View Full Version : How to set smoothing level in OpenGl?



MofuX
08-27-2001, 09:00 AM
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!
http://www.opengl.org/discussion_boards/ubb/wink.gif

mikael_aronsson
08-27-2001, 10:48 AM
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

MofuX
08-27-2001, 11:41 PM
Oh...
sounds very hard 2 do ;)
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!

mikael_aronsson
08-28-2001, 12:00 AM
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