Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Alpha/Color issues with Gosu/Ashton #32

Open
Aerotune opened this issue Aug 25, 2014 · 4 comments
Open

Alpha/Color issues with Gosu/Ashton #32

Aerotune opened this issue Aug 25, 2014 · 4 comments
Assignees
Labels

Comments

@Aerotune
Copy link

I'm having some issues with getting Gosu and Ashton to render clean images.

Without Ashton I've found out that drawing a Gosu::Image on any non-whole position or up/down scaling makes some dark edges appear. It's not noticeable on a blurry picture.
screenshot_shader_off

With Ashton a shader that does nothing on the pyramides it messes up the colors and alpha channel. (gl_FragColor = texture2D(in_Texture, var_TexCoord); I'm not opengl savvy, am I doing something wrong?)
screenshot_shader_on

I've made a test case project here: https://github.com/Aerotune/ashton_alpha_issue
I'm using Gosu 0.7.50, Ashton 0.1.3 and I'm running Mac OS 10.7.5

@bil-bas
Copy link
Collaborator

bil-bas commented Aug 25, 2014

Well, first off, best bug report ever!

You are right in your assumption - the effect should be identical with or without the post-processing shader. Although I haven't looked at Ashton in a long while, I've been doing a lot of work with OpenGL lately, so maybe I can divine a cause.

Note that Ashton 0.1.4 was released a couple of days ago and uses a newer version of OpenGL gem which fixes some things in Ashton (probably not this, though). Also Gosu 0.8, but all that does is move to SDL2 as a backend and I think is still a bit buggy.

@Aerotune
Copy link
Author

OK I just tried updating Ashton to 0.1.4 and I still have the same dark edges.

@Aerotune
Copy link
Author

Updating to Gosu 0.8.2 doesn't change anything as well.

@bil-bas
Copy link
Collaborator

bil-bas commented Aug 25, 2014

I didn't particularly expect it to, but worth a try.

@bil-bas bil-bas added the bug label Sep 3, 2014
@bil-bas bil-bas self-assigned this Sep 3, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants