[r197] Using object transp. makes Shaders use screen coords

Report Construct 2 bugs here.

Post » Tue Feb 17, 2015 11:28 am

Problem Description
As title says - if an object has transparency applied or another Shader in the stack before a Shader that works with coordinates, the coordinates in use become screen-space and not object-space.

I tried to discuss this here: discussion-shader-coordinate-changes-with-transparency_t124665 but there was no reaction so here's a bug report using the built-in fx.

Attach a Capx
OpacityBug.capx

Description of Capx
We have the same sprite with the same effect applied, but the one on the right has a different opacity.

Steps to Reproduce Bug
Change the opacity of anything that has a coordinate-dependant Shader.

Observed Result
The sprite with transparency applied uses screen-space coordinates.

Expected Result
The sprite with transparency should still use local coordinates.

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

Operating System and Service Pack
Windows 7, Windows 8.1 64-bit

Construct 2 Version ID
r197
You do not have the required permissions to view the files attached to this post.
B
19
S
6
G
6
Posts: 1,101
Reputation: 5,646

Post » Mon Feb 23, 2015 12:32 pm

I added some more details to the thread you linked to.

Because this depends on the way the rendering pipeline works, it is probably pretty difficult to fix. However I'll leave the issue here open to indicate a known issue.
Scirra Founder
B
373
S
218
G
83
Posts: 23,434
Reputation: 185,828


Return to Bugs

Who is online

Users browsing this forum: No registered users and 0 guests