enabling/disabling anti-aliasing

Started by
5 comments, last by penetrator 22 years, 9 months ago
on a nvidia card based system, is it possible to enable/disable antialiasing through opengl commands (perhaps opengl extensions) ? i can do it with some tools like a geforce tweaker, but i''d like to be able to rule antialiasing within the program. thanks glHorizon_Project

www.web-discovery.net

Advertisement
The extension you need is GL_ARB_multisample:

http://oss.sgi.com/projects/ogl-sample/registry/ARB/multisample.txt
that extension is for fullscreen antialiasing. u can also do polygon,line,point antialiasing with eg glEnable( GL_POYGON_SMOOTH )
http://www.frii.com/~martz/oglfaq/ section 14

http://members.xoom.com/myBollux
i enabled the extension with:
#define GL_MULTISAMPLE_ARB 0x809D

and used a
glEnable(GL_MULTISAMPLE_ARB);

but anti-aliasning is always off: am i doing something wrong ?

glHorizon_Project



www.web-discovery.net


quote:Original post by penetrator
i enabled the extension with:
#define GL_MULTISAMPLE_ARB 0x809D

and used a
glEnable(GL_MULTISAMPLE_ARB);

but anti-aliasning is always off: am i doing something wrong ?


well.. actually - yes.

You cannot "enable" extension just by defining some constant.
If your 3D board has no such extension, glEnable(GL_MULTISAMPLE_ARB) will do nothing.

btw,
only GeForce3 supports GL_ARB_multisample
(well, we're tolking about consummer-level cards, not Wildcats..).
and you have to choose pixel format with multisample buffer.


Edited by - Serge K on June 30, 2001 8:16:04 PM
WGL_ARB_multisample is available on GeForce2's as well as GeForce3's, at least in 12.xx drivers it is.

Jason A.

---
I write code.
DelphiGL (http://delphigl.cfxweb.net)

Edited by - Jallen on June 30, 2001 10:35:47 PM
---I write code.DelphiGL (http://delphigl.cfxweb.net)
yes, i do have a Geforce 3, but i really don''t know how to choose pixel format with multisample buffer.




glHorizon_Project



www.web-discovery.net


This topic is closed to new replies.

Advertisement