Layer effect behavior changed in recent releases?

0 favourites
  • 10 posts
From the Asset Store
The underworld has released another villain who is more menacing than ever before!
  • Am I right in thinking that previously adding layer effects worked on empty layers, essentially effecting everything below? Was this changed for the newer releases? I vaguely recall playing around with blur and glow shaders on a layer above all the others to get a nice working bloom effect, but now it doesn't seem to work (possibly changed in the most recent or the previous release).

    I could have sworn it worked before though. If it has been changed, is this intentional or accidental, and can we expect to see it back at some point?

  • I haven't touched any of the layer effect code for months myself, so I don't see why this would have suddenly changed. Have you got a before/after .cap that demonstrates an actual difference? Are you sure you're not setting it up wrong?

  • I haven't touched any of the layer effect code for months myself, so I don't see why this would have suddenly changed. Have you got a before/after .cap that demonstrates an actual difference? Are you sure you're not setting it up wrong?

    Well I have been up all night again, so the latter is quite possible Maybe I was working on a single layer and thought I'd done it on an empty layer above or something, it was a while back now while I was still getting used to the UI. Damn :\</p>

  • Well, make a .cap in an early version, load it in 0.99.7, and if anything's different, put the .cap on the tracker with the usual details (repro/expected/result).

  • Am I right in thinking that previously adding layer effects worked on empty layers, essentially effecting everything below?

    No, it was never like this. For a full screen post process effect pass, go with a canvas, with grab layout before drawing.

  • Well, make a .cap in an early version, load it in 0.99.7, and if anything's different, put the .cap on the tracker with the usual details (repro/expected/result).

    Nah it's cool. If you say you haven't touched it then I must have imagined I did it that way and was more than likely using just one layer. If it had been possible and suddenly wasn't, I'm sure lots of others would have mentioned it by now too. So yeah, I'll have got it wrong, sorry :

    > Am I right in thinking that previously adding layer effects worked on empty layers, essentially effecting everything below?

    >

    No, it was never like this. For a full screen post process effect pass, go with a canvas, with grab layout before drawing.

    Had a go trying that, couldn't get it to grab the screen (I think I was using -after- drawing though, so will give it another try when I get back), is there anything special that needs to be done? Are there any limits to it? For example can the canvas grab everything below it, including other effects.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • For example can the canvas grab everything below it, including other effects.

    Yep, and this is what Davioware meant, for fullscreen effect processing. You want to set it to grab the layout before drawing (it means "grab layout before drawing the canvas"). That means it works like this:

    Layout (everything beneath the canvas) is fully drawn

    Canvas takes a snapshot of that

    Canvas processes an effect (assuming you added one) and draws on top of everything

    End result: you see everything with an effect applied.

    'Grab after drawing' means it takes a snapshot after the canvas has already drawn itself. That's useful for frame feedback effects, such as an effect mixing the previous frame and the current frame (usually the canvas has to be semitransparent for that to work).

  • > For example can the canvas grab everything below it, including other effects.

    >

    Yep, and this is what Davioware meant, for fullscreen effect processing. You want to set it to grab the layout before drawing (it means "grab layout before drawing the canvas"). That means it works like this:

    Layout (everything beneath the canvas) is fully drawn

    Canvas takes a snapshot of that

    Canvas processes an effect (assuming you added one) and draws on top of everything

    End result: you see everything with an effect applied.

    'Grab after drawing' means it takes a snapshot after the canvas has already drawn itself. That's useful for frame feedback effects, such as an effect mixing the previous frame and the current frame (usually the canvas has to be semitransparent for that to work).

    Yep got back a few minutes ago and gave it a try soon as I sat down, worked perfectly! I'm using that bloom effect you posted way back actually, the blur horizontal x2 / vertical x2 + glow. Looks really nice. Plus having it on it's own layer makes adding options to turn the effect on and off, really simple.

    I also noticed the canvas bug where using different size canvases with a pre-drawn texture ends up with it removing entire chunks of it, doesn't happen at all when grabbing the layout. So making a canvas of only 8x8 and stretching it to fill the entire display works great! Doesn't effect the quality at all, but runs much faster and uses barely any extra VRAM!

  • So making a canvas of only 8x8 and stretching it to fill the entire display works great! Doesn't effect the quality at all, but runs much faster and uses barely any extra VRAM!

    Sort of - a canvas always uses as much VRAM as the size of the canvas itself - it's needed for pixel by pixel processing on the canvas. You are saving the VRAM of the source texture that way, but don't think you're getting all that for free! I said before, I recommend you don't make canvases larger than the size of the window.

  • > So making a canvas of only 8x8 and stretching it to fill the entire display works great! Doesn't effect the quality at all, but runs much faster and uses barely any extra VRAM!

    >

    Sort of - a canvas always uses as much VRAM as the size of the canvas itself - it's needed for pixel by pixel processing on the canvas. You are saving the VRAM of the source texture that way, but don't think you're getting all that for free! I said before, I recommend you don't make canvases larger than the size of the window.

    Awww

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)