Windows FSAA

I can’t get FSAA to work on Win32. I’m using Win2k with a GeForceFX 5900
Ultra. If I force FSAA via the driver it works correctly. If I use SDL, I get
nothing:

// No matter what I pass in for fsaa (e.g. 0, 1, 2, 4), I get no

antialiasing
SDL_GL_SetAttribute(SDL_GL_MULTISAMPLEBUFFERS, 1);
SDL_GL_SetAttribute(SDL_GL_MULTISAMPLESAMPLES, fsaa);

...
SDL_SetVideoMode(...)
...

int actualFSAABuffers = 0, actualFSAASamples = 0;
SDL_GL_GetAttribute(SDL_GL_MULTISAMPLEBUFFERS, &actualFSAABuffers);
SDL_GL_GetAttribute(SDL_GL_MULTISAMPLESAMPLES, &actualFSAASamples);
// The values aren't even set by these calls; they remain at whatever I

initialize to!

Has anyone gotten FSAA to work on Windows?

-m=====
Morgan McGuire
@Morgan_McGuire


Do you Yahoo!?
Exclusive Video Premiere - Britney Spears
http://launch.yahoo.com/promos/britneyspears/

Morgan McGuire wrote:

Has anyone gotten FSAA to work on Windows?

Works for me on a fx5200. Here’s the init-code:

SDL_GL_SetAttribute( SDL_GL_RED_SIZE, 8);
SDL_GL_SetAttribute( SDL_GL_GREEN_SIZE, 8);
SDL_GL_SetAttribute( SDL_GL_BLUE_SIZE, 8);
SDL_GL_SetAttribute( SDL_GL_ALPHA_SIZE, 8);

SDL_GL_SetAttribute( SDL_GL_DEPTH_SIZE, 24);
SDL_GL_SetAttribute( SDL_GL_DOUBLEBUFFER, 1);

SDL_GL_SetAttribute( SDL_GL_MULTISAMPLEBUFFERS, 1);
SDL_GL_SetAttribute( SDL_GL_MULTISAMPLESAMPLES, 4);

SDL_Surface *screen = SDL_SetVideoMode(640, 480, 32,
SDL_OPENGL|SDL_OPENGLBLIT);

Regards,
\Mikkel Gjoel

Some videocards will also let you disable anti-aliasing in windows
regardless of what the app requests. Might want to check that out too.

Mikkel Gj?l wrote:> Morgan McGuire wrote:

Has anyone gotten FSAA to work on Windows?

Works for me on a fx5200. Here’s the init-code:

SDL_GL_SetAttribute( SDL_GL_RED_SIZE, 8);
SDL_GL_SetAttribute( SDL_GL_GREEN_SIZE, 8);
SDL_GL_SetAttribute( SDL_GL_BLUE_SIZE, 8);
SDL_GL_SetAttribute( SDL_GL_ALPHA_SIZE, 8);

SDL_GL_SetAttribute( SDL_GL_DEPTH_SIZE, 24);
SDL_GL_SetAttribute( SDL_GL_DOUBLEBUFFER, 1);

SDL_GL_SetAttribute( SDL_GL_MULTISAMPLEBUFFERS, 1);
SDL_GL_SetAttribute( SDL_GL_MULTISAMPLESAMPLES, 4);

SDL_Surface *screen = SDL_SetVideoMode(640, 480, 32,
SDL_OPENGL|SDL_OPENGLBLIT);

Regards,
\Mikkel Gjoel


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl


Justin Speers / @Justin_Speers
http://jaspeers.blogspot.com


Gary Nolan for President in 2004!