pioneerspacesim/pioneer — pull request #848 by Luomu (2011-12-11 18:01:23+00:00)
Title: Multisampled hdr

Previously it looked like this:
http://luomu.github.com/pioneer/issues/mshdr/no_aa.png
http://luomu.github.com/pioneer/issues/mshdr/no_aa_orbit.png

Now it can look like this (4xAA):
http://luomu.github.com/pioneer/issues/mshdr/landed_aa_4x.png
http://luomu.github.com/pioneer/issues/mshdr/aa_orbit_4x.png

I added AntiAliasingMode config value. This sets the number of samples. Typical values are 0 (off), 2, 4, 8 and 16. This can be overridden by nvidia/ati/etc. settings as usual. If an unsupported value is requested, SDL will pick the best match.

Problems:
Stars can appear rather dim, depending on the configuration: http://luomu.github.com/pioneer/issues/mshdr/aa_orbit16x.png. That's just the way it is. This could be avoided by increasing their size a bit.

On my Ubuntu laptop (Radeon HD4200, FGLRX) I can't get AA to work in non-HDR mode (not related to this change). Catalyst settings don't seem to affect it. No difference between window or fullscreen. Also tried adding SDL_GL_SetAttribute(SDL_GL_MULTISAMPLEBUFFERS, 1); and glEnable(GL_MULTISAMPLE) (should be default anyway) but no effect.