[r184] Bumpmap shader clips when on a parallax rotated layer

0 favourites
  • 5 posts
From the Asset Store
Simple resize and rotate events for any sprite, quick and easy event sheet that you can use for your own projects.
  • Problem Description

    An object with the bumpmapping shader will clip when on a layer that's parallaxed and rotated.

    Description of Capx

    Move around in 8-directions and use the <> keys to rotate the layout. Note the clipping on the bumpmap.

    Affected Browsers

    • Chrome: (YES)
    • FireFox: (YES)
    • Internet Explorer: (YES)

    Operating System and Service Pack

    Windows 8.1

    Construct 2 Version ID

    r184

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • That is odd. And just for time-saving's sake, this error is not present when the bumpmapping shader is applied to a layer instead of to an object. Ie, putting the normal map on its own layer and applying the shader to the layer instead of the object. I suppose if it can't be fixed, this workaround could solve it.

  • C-7 Wouldn't that be more performance intensive though?

  • Bumpmapping shader on it's own have so many issues I would advise to use it only on static sprites (no scrolling, no parallaxing, no scaling, nothing) - then it works as you would expect it to work.

    It's a big shame because it is such a great effect but in most cases useless

  • Huh I forgot to hit Submit. sqiddster For such a large area, I don't think the performance would be any different doing it on a layer vs doing it on a big object. And the moment you have a second object on-screen with bumpmapping, you're now having multiple shader calls instead of one for the layer. It's almost always on a layer in my game since I have multiple objects with it applied.

    And also, I agree the shader could use an overhaul. Firstly, the Y axis is still inverted so light is shown from the wrong direction vertically. It works fine for scrolling and layout scaling. I haven't tried anything more advanced than that, so I haven't run into the other issues that shinkan mentioned.

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