User Tag List

Results 1 to 3 of 3

Thread: Blend mode: subtract darkness effect.

  1. #1
    Clicker Fusion 2.5 (Steam)Fusion 2.5+ DLC (Steam)

    Join Date
    Oct 2021
    Posts
    21
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Blend mode: subtract darkness effect.

    Hey there clickers!

    Does anyone know of a good way to do darkness, different from mine?

    I have a day-and-night cycle, with a fading darkness layer. The darkness object covers the entire screen and is set to not follow frame.
    I use subtract, and then inside the layer I have another object that subtracts from the darkness object, which works as a flashlight.
    To avoid any jagged edges, the flashlight is huge and it is not possible for the flashlight object to NOT cover the screen.

    The problem is, I recently started fantasizing about having other light sources as well.
    The only way I can think of doing this is making a massive darkness layer that is entirely black and covers the entire frame, which is then subtracted from.
    The problem with this is, even though it's more efficient than covering the screen with frame sized light sources it still uses too much ram.
    My frame is 12000x12000px so even adding just a stretched black pixel, instantly uses 500Mb of ram.

    If anyone has another method of doing this, I'd love to hear. Thanks!

  2. #2
    Clicker Fusion 2.5 (Steam)Fusion 2.5+ DLC (Steam)

    Join Date
    Oct 2021
    Posts
    21
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It appears, that without official support for the multiply blend effect there's no good enough alternative for what I wanted to do.
    Meaning, no blend mode shader that I have found is without it's bugs.
    Here is however, what I ended up doing in case someone else is interested in this topic.

    After trying for several days straight, I have decided to drop skewable AI light sources from my project.
    Meaning the only light source in the game that can change shape with scale tweening is the players flashlight.

    However, in case someone is interested in this topic. Here is what I did:

    I downloaded photoshop blend modes (FOR FREE!) from the clickstore.
    Make a layer of darkness and set the layer blend mode to the built-in subtract mode.
    Position darkness objects in that layer with no blend mode.
    Subtract from darkness objects with Clickteams built in subtract effect, since it allows for real time scaling.
    Use photoshop multiply_as for the rest of the lightsources in the game.

    With this setup, multiply-blend objects use black for darkness deletion, and the subtract effect I used for the player uses white.

    Hope this helps someone!

  3. #3
    Forum Moderator Fusion 2.5 MacFusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)Firefly 3D Module (Steam)
    NaitorStudios's Avatar
    Join Date
    May 2010
    Location
    Brazil
    Posts
    819
    Mentioned
    9 Post(s)
    Tagged
    0 Thread(s)
    Check these, it adds support to alpha channel to the Photoshop effects from Looki: https://clickstore.clickteam.com/photoshop_blend_modes
    I did the DX11 port for these and a few extra shaders for the pack.

Similar Threads

  1. HWA Mode SUBTRACT effect problem
    By Panchos in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 6th August 2013, 09:06 PM
  2. Surface Object Darkness Effect
    By Corlen in forum Multimedia Fusion 2 - Technical Support
    Replies: 7
    Last Post: 12th March 2012, 12:07 PM
  3. Subtract effect
    By Felik in forum Hardware Accelerated Runtime
    Replies: 2
    Last Post: 24th October 2011, 02:58 PM
  4. Blend Coefficient with Subtract shader
    By Nifflas in forum Hardware Accelerated Runtime
    Replies: 2
    Last Post: 3rd November 2010, 01:13 PM
  5. Darkness and Flashlight Effect
    By Sumo in forum Multimedia Fusion 2 - Technical Support
    Replies: 10
    Last Post: 7th February 2010, 10:54 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •