Detached layer cannot apply transition?

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
User avatar
birctreel
Regular
Posts: 53
Joined: Wed Dec 20, 2017 7:17 am
Projects: Knell of st.Godhrkar
Organization: -Andinomie-
Tumblr: birctreel
Location: Beijing, China
Contact:

Detached layer cannot apply transition?

#1 Post by birctreel »

Hello everyone! I'm still working on applying shader on a whole screen and got inspired here about using detached layer. Thanks to the mentor here in my previous topic:
viewtopic.php?t=67583
And here is the new problem I face now:
The detached layer cannot apply usual transition. It contains two part:
1. The detached image cannot apply with defined imagedissolve. If we do that, it won't get code error but it just simple didn't do the transition.
2. When the detached layer is already shown as a image, you cannot add more transtion when you move the contains in it.
For example, here is my code. And I can upload a simple example project if need:

Code: Select all

define e = Character("Eileen")
define config.detached_layers += [ "broadcast" ]


image tv = Layer("broadcast")
init:
    $ roundout = ImageDissolve("round-out.png", 3.0, 0)
    

label start:
  e 'Test, test.'
  scene e001_00 onlayer broadcast
  camera broadcast:
      perspective True
      zpos 0
  show e onlayer broadcast at crt:
      subpixel True zoom 1.74 
      xpos -1093 
      easein 30.00 xpos -1732 
  show tv at crt #the "crt" is a defined shader, to apply on all image in the layer broadcast. 
  with {'master': dissolve, 'broadcast': roundout}
  e 'When you see this, the broadcast layer show but without the roundout transition.'
  camera broadcast:
    easein 1 xpos 50
  hide e onlayer broadcast
  with {'master': None, 'broadcast': dissolve}
  e 'When you see this, the braodcast layer didn\'t even bother to dissolve lol'
Is there anyway I can freely add transition we I edit the contains on the detached layer, or I have to find another way to apply shader on the whole master layer?

Thank you all for helping!

User avatar
m_from_space
Eileen-Class Veteran
Posts: 1030
Joined: Sun Feb 21, 2021 3:36 am
Contact:

Re: Detached layer cannot apply transition?

#2 Post by m_from_space »

birctreel wrote: Wed Jan 10, 2024 1:54 am Is there anyway I can freely add transition we I edit the contains on the detached layer, or I have to find another way to apply shader on the whole master layer?
I'm not sure I can help you, but two questions. Can you try this to make the roundout transition work?

Code: Select all

# use "define" and also not 0 ramplen, but the default of 8
define roundout = ImageDissolve("round-out.png", 3.0, 8)
with {'master': None, 'broadcast': dissolve}
e 'When you see this, the braodcast layer didn\'t even bother to dissolve lol'
What if you ignore the master layer transition and don't include it?

Post Reply

Who is online

Users browsing this forum: mosiuwu