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

Report Construct 2 bugs here.

Post » Sun Oct 12, 2014 5:30 am

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
You do not have the required permissions to view the files attached to this post.
B
92
S
31
G
24
Posts: 3,191
Reputation: 32,699

Post » Wed Oct 15, 2014 5:59 pm

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.
B
103
S
38
G
19
Posts: 962
Reputation: 17,996

Post » Wed Oct 15, 2014 9:04 pm

@C-7 Wouldn't that be more performance intensive though?
B
92
S
31
G
24
Posts: 3,191
Reputation: 32,699

Post » Wed Oct 15, 2014 9:57 pm

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 :(
ImageImageImageImage
B
158
S
66
G
43
Posts: 2,603
Reputation: 35,868

Post » Wed Oct 15, 2014 10:19 pm

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.
B
103
S
38
G
19
Posts: 962
Reputation: 17,996


Return to Bugs

Who is online

Users browsing this forum: No registered users and 0 guests