Not logged inGosu Forums
Forum back to libgosu.org Help Search Register Login
Up Topic Gosu / Extending Gosu / Antialiasing in Gosu
- - By carno Date 2013-05-08 02:06
Hi everyone, I'm not an expert on the subject so I'm sorry if this doesn' make much sense.

I'm playing with gosu + opengl gem but currently everything on my scene looks very aliased:
- I know I can enable GL_LINE_SMOOTH to make the lines a bit better but still the rest of the scene looks bad
- The textures are low res on purpose so making them smooth would make them blurry I want to have some nice and crisp borders on my textures but currently they look weird.
- Reading online it seems that I need to pass some specific parameters on the creation context to get some fullscreen antialiasing. Is there any way to do that with Gosu? I'm currently calling the gl {} method

Parent - By Dahrkael Date 2013-05-08 12:08
you can use Gosu::enable_undocumented_retrofication
I think thats the name of the function, or something similar, to keep the aliasing out
Parent - - By jlnr (dev) Date 2013-05-09 03:45
I have a personal To Do item for FSAA support in Gosu. If you are interested in seeing it advance, I recommend filing a github ticket with more information :) Most Gosu games would not benefit too much because they only use images.

As a workaround, you can use images to replace draw_line, which I recommend anyway. Driver support can be an issue, and on the new Retina Macs they will look anaemic because of the doubled resolution. :)
Parent - By Spooner Date 2013-05-09 23:53
I had a go at a FXAA shader in Ashton, but it didn't look good ;)
Parent - - By carno Date 2013-05-10 04:10
Having FSAA would be great. I think a lot of games could benefit from it or other solutions, the softness of rotated sprites is a little offputting.
Parent - - By jlnr (dev) Date 2013-05-10 13:53
Would rotated sprites with FSAA look any different than they do now? I would expect that only a higher image resolution helps with that :)
Parent - By carno Date 2013-05-10 17:58
You are probably right. I just think it would look more consistent, it's not that it looks bad it's that it looks so different when they align perfectly.
Up Topic Gosu / Extending Gosu / Antialiasing in Gosu

Powered by mwForum 2.29.7 © 1999-2015 Markus Wichitill