User Tag List

Results 1 to 6 of 6

Thread: Question about invisible layers

  1. #1
    Forum Moderator Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleMac Export ModuleSWF Export Module
    AndyH's Avatar
    Join Date
    Jun 2006
    Location
    UK
    Posts
    1,445
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Question about invisible layers

    I've a game where I have around 9 layers and a scrolling frame and its working great.

    I want to create some effects with pixel shaders on new layers that will only be active or visible at certain times. How does MMF2 HWA handle layers that have pixel shaders that are set invisible?

    Will it still execute the pixel shaders on invisible layers or does it only execute when the layer is visible? I couldn't tell any difference in speed with a test app, but I haven't been able to test on a lower spec PC.
    Andy H @ ovine.net
    Awful Jokes - a new cartoon every day: http://awful.ovine.net/
    Ovine's games: http://www.ovine.net

  2. #2
    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: Question about invisible layers

    ...no, it really shouldn't, when they're invisible it doesn't render them at all, so the shader is never executed.

  3. #3
    Clicker Fusion 2.5
    Fusion 2.5 (Steam)
    BackStaged's Avatar
    Join Date
    Aug 2010
    Location
    France
    Posts
    693
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Question about invisible layers

    Just change the fCoeff by 0.1, it show in this case the Layer no?

  4. #4
    Clicker Multimedia Fusion 2SWF Export Module
    Jacob's Avatar
    Join Date
    Jul 2007
    Location
    Second pixel to the right
    Posts
    3,208
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Question about invisible layers

    Any object that is not displayed should not be affected by shaders at all.

  5. #5
    Clicker Fusion 2.5
    Fusion 2.5 (Steam)
    BackStaged's Avatar
    Join Date
    Aug 2010
    Location
    France
    Posts
    693
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Question about invisible layers

    (Well, it's logic no? Set the visibility ON and set down the SemiTransparency coeff then?)

  6. #6
    Forum Moderator Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleMac Export ModuleSWF Export Module
    AndyH's Avatar
    Join Date
    Jun 2006
    Location
    UK
    Posts
    1,445
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Re: Question about invisible layers

    My question has been answered by Looki in this case. I'm using lots of layers with shaders that by default are invisible and I'm switching them on and off as needed. Only one or two of these layers will ever be visible at the same time so my question was about the strain this might put on MMF, either due to video memory or GPU/CPU time being wasted or not. My assumption was that MMF would likely not waste time/resources on invisible layers but I could not prove this through my testing (it always ran at the correct speed and I observed no noticable slowdowns).
    Andy H @ ovine.net
    Awful Jokes - a new cartoon every day: http://awful.ovine.net/
    Ovine's games: http://www.ovine.net

Similar Threads

  1. Layers question
    By Drcooper in forum SWF/Flash Export Module Version 2.0
    Replies: 2
    Last Post: 16th July 2010, 08:31 PM
  2. Invisible Objects question.
    By BrandonC in forum Hardware Accelerated Runtime
    Replies: 5
    Last Post: 22nd March 2009, 12:25 PM
  3. Layers Question
    By scottige in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 14th August 2008, 11:12 PM
  4. A question regarding layers...
    By TDA in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 26th August 2006, 05:39 PM
  5. Layers question
    By Pixalatio in forum Multimedia Fusion 2 - Technical Support
    Replies: 15
    Last Post: 6th July 2006, 10:49 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
  •