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
Screenshot for transition
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
Re: Screenshot for transition
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.
Re: Screenshot for transition
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.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.
EDIT
Thanks, that was it.
Who is online
Users browsing this forum: No registered users and 3 guests