User Tag List

Page 1 of 2 1 2 LastLast
Results 1 to 10 of 11

Thread: Making shadows using the "Mask" effect

  1. #1
    Clicker Fusion 2.5HTML5 Export ModuleSWF Export Module

    Join Date
    Feb 2009
    Posts
    108
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)

    Making shadows using the "Mask" effect

    Hi guys--

    I'm planning on implementing shadows into my game, much in the same way that Blue66 uses them in GunGirl2. Basically, I'm thinking of using the Mask effect so that when a player enters a shadowed area, the shadow "disappears"...we've all seen the Ghost Hunter demo, so just like that.

    My question is this:
    Is the only way to achieve this effect to use the "Mask" effect and lay out background objects that will denote the lighted areas? This seems terribly backwards and inefficient to me, especially since most areas are lighted.

    Is there some way I can make it so the shadows are the defined objects, and not the other way around?

    Thanks!

  2. #2
    Clickteam Clickteam
    LB's Avatar
    Join Date
    Jun 2007
    Location
    Richardson, Texas, North America
    Posts
    8,937
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)

    Re: Making shadows using the "Mask" effect

    Semitransparent Actives and some sneaky object ordering to hide the character shadow?
    Working as fast as I can on Fusion 3

  3. #3
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleSWF Export ModuleUnicode Add-on
    Looki's Avatar
    Join Date
    Aug 2006
    Location
    Karlsruhe, Germany
    Posts
    3,741
    Mentioned
    5 Post(s)
    Tagged
    1 Thread(s)

    Re: Making shadows using the "Mask" effect

    Subtract shader...?

  4. #4
    Clicker Fusion 2.5HTML5 Export ModuleSWF Export Module

    Join Date
    Feb 2009
    Posts
    108
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)

    Re: Making shadows using the "Mask" effect

    Well, I want to make it so that when the character enters a shadowed area, the shadow disappears as if the character is holding a flashlight. In fact, pretend like this is all about creating a convincing flashlight effect.

    When the flashlight shines into the shadows, the shadow should disappear, and thus not obstructing visibility of the background behind it.

  5. #5
    Clickteam Clickteam
    LB's Avatar
    Join Date
    Jun 2007
    Location
    Richardson, Texas, North America
    Posts
    8,937
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)

    Re: Making shadows using the "Mask" effect

    OH, we thought you meant the character shadow so that it didn't get double dark.
    Working as fast as I can on Fusion 3

  6. #6
    Clicker Fusion 2.5HTML5 Export ModuleSWF Export Module

    Join Date
    Feb 2009
    Posts
    108
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)

    Re: Making shadows using the "Mask" effect

    Sorry, yeah, I can see how that came off. It's more like a flashlight object cancelling out the shadow with which it interacts...any thoughts?

  7. #7
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleSWF Export ModuleUnicode Add-on
    Looki's Avatar
    Join Date
    Aug 2006
    Location
    Karlsruhe, Germany
    Posts
    3,741
    Mentioned
    5 Post(s)
    Tagged
    1 Thread(s)

    Re: Making shadows using the "Mask" effect

    Make a new layer with the subtract shader, put a white quick backdrop on it. Now, add objects that fade to black, these will be the light sources.

  8. #8
    Forum Moderator

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleXNA Export ModuleInstall Creator Pro
    nivram's Avatar
    Join Date
    Jul 2006
    Location
    Bandon, Oregon
    Posts
    6,773
    Mentioned
    12 Post(s)
    Tagged
    0 Thread(s)

    Re: Making shadows using the "Mask" effect

    Looki,any chance you could make an example of that. That would be cool to see and you know me and brain leakage.

    Marv
    ​458 TGF to CTF 2.5+ Examples and games
    http://www.castles-of-britain.com/mmf2examples.htm

  9. #9
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleSWF Export ModuleUnicode Add-on
    Looki's Avatar
    Join Date
    Aug 2006
    Location
    Karlsruhe, Germany
    Posts
    3,741
    Mentioned
    5 Post(s)
    Tagged
    1 Thread(s)

    Re: Making shadows using the "Mask" effect

    http://clickteam.info/looki/Examples/Subtract.mfa Very very simple. It should be easy enough to understand though. White parts get dark, black parts don't change anything.

  10. #10
    Clicker Fusion 2.5HTML5 Export ModuleSWF Export Module

    Join Date
    Feb 2009
    Posts
    108
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)

    Re: Making shadows using the "Mask" effect

    Ah, wonderful, thanks Looki!

Page 1 of 2 1 2 LastLast

Similar Threads

  1. Limitation: "You can not make holes in the mask of collisions"
    By flyoffacliff in forum SWF/Flash Export Module Version 2.0
    Replies: 13
    Last Post: 21st November 2013, 01:45 AM
  2. Replies: 2
    Last Post: 13th November 2013, 12:48 PM
  3. How to make a "slow motion" effect on the game?
    By Daimonmau in forum Multimedia Fusion 2 - Technical Support
    Replies: 19
    Last Post: 22nd June 2010, 02:53 PM
  4. "Invisible" Mask
    By Thomas in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 25th September 2009, 09:39 PM
  5. "Subtract" effect is buggy when applied to layer
    By alxmrg in forum Hardware Accelerated Runtime
    Replies: 6
    Last Post: 8th July 2009, 01:14 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
  •