[effect] Relief Map

0 favourites
  • 5 posts
From the Asset Store
Create your own adventure map with this easy to use asset pack.
  • Relief map on the way ///


  • This looks amazing. If it's flexble enough, it could be used to create faux-3d environments...

    Can I make feature requests?

    Here goes:

    What if the .fx worked like this:

    And the following parameters were available to the user:

    Number Of Slices - the number of vertical slices

    Parallax Effect - the strength of the slice parallaxing

    Max Height - The maximum "height" of the effect

    Invert Height - inverts the height layer - in the image, the smallest slice would end up at the bottom and the largest on top.

    Height Offset - lets the user "sink" the slices into the screen

    Bottom Color - solid color to fake depth shading

    Bottom Color Intensity - max intensity of the solid color


    In the image, suppose the bottom color is Black and the intensity is 1

    That means that the bottom slices color is fully black, the middle slice is a 50% mix of the sprite color and black and the top slice has 0% black mixed in.

    If the intensity was 0.5, then the bottom slice would be 50% mix of black and sprite colors, middle slice would be a 25% mix and top slice would only be the sprite colors.

    Top Color

    Top Color Intensity


    same as the Bottom Color/Intensity, but appied from the top down.

    Sorry for the wall of text - I have no idea how feasible this is or if this is the direction you want to take the effect in. The potential of this effect is amazing - and I'm extremely excited about it.

    Thanks for looking.

  • Actually, I don't think sampling colors from the background would be a good idea... I was thinking about using the Alpha Channel to store the "height". That way, if the sprite image is saved with straight alpha, the color information would be preserved in the transparent areas.

    Alpha of 0.0 would be a special case, where the "slice" would not be drawn at all - I noticed your demo only has what looks like 1-bit transparency.

    This would make the whole setup more flexible - what do you think?

  • Can't wait for this!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Relief map on the way ///


    Never got released? D: Such an awesome shader Gigatron!

    Would you still have it somewhere to share with me? <img src="{SMILIES_PATH}/icon_e_biggrin.gif" alt=":D" title="Very Happy">

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