Alpha glitch near bottom of the screen?

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
Post Reply
Message
Author
Onishion
Veteran
Posts: 295
Joined: Mon Apr 20, 2015 10:36 am
Contact:

Alpha glitch near bottom of the screen?

#1 Post by Onishion » Tue May 17, 2016 7:45 am

I'm hitting an odd glitch that I can't see how it's based on what I'm doing. Basically, I'm using an ATL animated image, and then using another image that uses that as an alpha channel (so it's only visible where the other image is). This mostly works fine, except that a strip along the bottom of the screen, about 10 pixels high or so, is not visible when it should be.

here's a basic version of what I'm doing:

Code: Select all

image CompositeImage:                       
    LiveComposite(   
        (100,100),
        (0,0), ConditionSwitch(           
                    "variable > 1", AlphaMask("baseimage", "alphamaskimage"),       #the animated base image alphaed by an animated alpha image                                                  
                    "variable", "baseimage",                                                                #the same image animated but without the alpha
                    "True", Null(),
                    ),        
    )
See how depending on the conditions it either uses an alpha masked version or a non-alphaed version? The non-alphaed version, as well as the other layers of the Live Composite, all show just fine, extending off the bottom of the screen as intended. It's only the version with the alpha mask applied that cuts off ten pixels or so short, when it should continue off the bottom of the screen as well. And even though both the object and mask are animated, neither of

And just to be clear, the alphamask otherwise works, it blocks off the other portions it was meant to, it just ALSO blocks off this strip along the bottom, which it shouldn't. It's also important to note that this is not an issue with the alpha image itself, that image is well larger than it needs to be and should carry for 100 or so pixels off the bottom of the screen, and even when I use pos to move it around, the "dead zone" strip stays exactly where it is. For example if I add a "ypos -20" line to the mask, it causes the "useful" portion of the mask to rise on the screen, but the dead zone stays exactly where it is.

Is there just some issue with using alpha masks like this near the edge of the screen? Could it be interacting with the quickmenu or something?

User avatar
xela
Lemma-Class Veteran
Posts: 2481
Joined: Sun Sep 18, 2011 10:13 am
Contact:

Re: Alpha glitch near bottom of the screen?

#2 Post by xela » Tue May 17, 2016 10:23 am

Onishion wrote:Is there just some issue with using alpha masks like this near the edge of the screen?
That would be weird but not impossible.
Onishion wrote:Could it be interacting with the quickmenu
Also not very likely but prolly still not impossible :D
Onishion wrote:or something?
Can you create a clean project just with that art + definition code and a test case?
Like what we're doing? Support us at:
Image

Post Reply

Who is online

Users browsing this forum: Alex, nyeowmi