Jump to content
Site Stability Read more... ×
  • Advertisement
Sign in to follow this  
Enrico

SDL and multisampling AA does not work

This topic is 4961 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi, yesterday I noticed, that Multisampling AA does not work anymore in any of my applications. I am creating a window with this code without any errors:
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_DEPTH_SIZE, 24);
SDL_GL_SetAttribute(SDL_GL_DOUBLEBUFFER, 1);

// should enable 4x AA
SDL_GL_SetAttribute(SDL_GL_MULTISAMPLEBUFFERS, 1);
SDL_GL_SetAttribute(SDL_GL_MULTISAMPLESAMPLES, 4);
Then I create a window with SDL_SetVideoMode() and enable multisampling
glEnable(GL_MULTISAMPLE);
But nothing is smoothed :-( I read out the values for SDL_GL_MULTISAMPLEBUFFERS and SDL_GL_MULTISAMPLESAMPLES after window creation and both are set to 0. Graphics card is a ATI X800XT with Catalyst 6.2 and SDL 1.2.7 on Windows. Could you please give me a hint? Thanks, Enrico

Share this post


Link to post
Share on other sites
Advertisement
I think you should specify a size for the alpha channel (8), you seem to put only R,G,B via SDL_GL_SetAttribute.

And I believe the "glEnable(GL_MULTISAMPLE)" is redundant. I have FSAA in my app and it works fine without it.

EDIT: and if that doesn't help then check your driver settings maybe AA is forced disabled.

Share this post


Link to post
Share on other sites
Thanks :)
It is working now. FSAA only works with a 24 Bit depth buffer on ATI cards and I had a 32 Bit depth buffer :-/

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!