-
Notifications
You must be signed in to change notification settings - Fork 25
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
Fix PNG transparency (Fixes #2) #22
base: master
Are you sure you want to change the base?
Conversation
This is a JME issue. Since the modified code is internal to JME, a new class with the same interface is created instead.
Is this the result from my branch? |
yes ,it is.I guess the channel of the alpha has a little problem |
Ok, looking at my code, I think I'm making all white pixels transparent. The problem is: how to determine whether a white pixel is truly transparent (i.e. background) or still part of the rendered image? |
I don't know whether to adjust the color of the light to decide to set the pixel to be transparent or not ? Always the direct zone of the ray or the brightest part seem to be wrongly decided. or applying Affine Transformation to decide to the transparent part if getting the motion info of the camera |
I've read some comments before that the transparency is fine on OS X, but doesn't work in Linux and Windows. This is actually harder to fix because the actual rendered image doesn't contain proper values for the alpha channel. |
Your advice is very important for me,thank you! |
This is a JME issue. Since the modified code is internal to JME, a new
class with the same interface is created instead.
There are two problems:
This is a quick fix which should address the issue without waiting for JME to fix the issue on their end.