Thread: [PyOpenGL-Users] Antialiasing...
Brought to you by:
mcfletch
From: Magnus L. H. <ma...@he...> - 2002-07-16 23:40:51
|
Hi! I'm sorry if this is a standard newbie question, but... Is there an easy way to get antialiasing with OpenGL? I've scoured the Net and looked in the red book, but thus far it all seems a bit complicated to me... I haven't learned too much about the API yet, and I was hoping maybe there was just a standard recipe for turning on anti-aliasing in general... Especially for filled polygons, I guess; I'd like to avoid jagged outlines on my (filled) 3D objects... - Magnus, new and eager PyOpenGL user :) -- Magnus Lie Hetland The Anygui Project http://hetland.org http://anygui.org |
From: Jack J. <Jac...@cw...> - 2002-07-17 09:10:55
|
On Wednesday, July 17, 2002, at 01:40 , Magnus Lie Hetland wrote: > Hi! > > I'm sorry if this is a standard newbie question, but... Is there an > easy way to get antialiasing with OpenGL? I've scoured the Net and > looked in the red book, but thus far it all seems a bit complicated to > me... I haven't learned too much about the API yet, and I was hoping > maybe there was just a standard recipe for turning on anti-aliasing in > general... Especially for filled polygons, I guess; I'd like to avoid > jagged outlines on my (filled) 3D objects... Look at GlEnable(GL_POLYGON_SMOOTH) (or GL_POINT_SMOOTH, GL_LINE_SMOOTH). There's also GlHint(GL_POLYGON_SMOOTH_HINT, ...) and friends whereby you can influence how the antialiasing is done. The result of this may not always be nice enough (as each polygon is antialiases "by itself"), then you'll have to look at using the accumulation buffer or some such. But I would start with the simple GlEnable() call above:-) -- - Jack Jansen <Jac...@or...> http://www.cwi.nl/~jack - - If I can't dance I don't want to be part of your revolution -- Emma Goldman - |