Screenshot for transition

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
uiblob
Prole
Posts: 8
Joined: Sun Jun 10, 2018 8:06 am

Screenshot for transition

Post by uiblob »

Hi,

I have a problem with screenshots and I am not sure what exactly is happening.

You can find the code in the "uiblob" branch on the repository: https://gitlab.com/uiblob/deorum/tree/uiblob

The background: In my scene manager (src/scene.lua) I take a screenshot of the current scene. However the layers seem to be adding up, with some transparency, I have no idea where the transparency comes from. You can watch the behaviour in the issue: https://gitlab.com/uiblob/deorum/issues/3

Scene.lua important functions
Line 53: Scene switch. This is where I take the screenshot.
Line 76: Draw function.

I am out off ideas about the issue. Hopefully you can help.

Greetings,
uiblob
User avatar
pgimeno
Party member
Posts: 2563
Joined: Sun Oct 18, 2015 2:58 pm

Re: Screenshot for transition

Post by pgimeno »

The transparency comes from onboarding-fullscreen.lua and onboarding-resolution.lua (look for the calls to setColor with 0.5 at the end). It appears that you expect a global colour state of 1,1,1,1 yet you don't reset it after setting it, or push/pop the state.
uiblob
Prole
Posts: 8
Joined: Sun Jun 10, 2018 8:06 am

Re: Screenshot for transition

Post by uiblob »

pgimeno wrote: Tue Jul 03, 2018 3:18 pm The transparency comes from onboarding-fullscreen.lua and onboarding-resolution.lua (look for the calls to setColor with 0.5 at the end). It appears that you expect a global colour state of 1,1,1,1 yet you don't reset it after setting it, or push/pop the state.
Wow thank you, of course that's such a dumb error. When I started those modules the scene manager just switched between scenes and didn't do anything else. Gonna test when I am coming home today.

EDIT

Thanks, that was it.
Post Reply

Who is online

Users browsing this forum: No registered users and 37 guests