r207 front to back renderer v physics v normal/debug preview

Bugs will be moved here once resolved.

Post » Tue Jun 09, 2015 10:25 pm

Problem Description
This is a problem with the front to back renderer set off, with a physics object and a sprite spawning a "shade" sprite in a layer with XOR blend (and the "shade" sprite has Destination Out blend). Delete any of these objects and the problem is not evident (even the physics object). When the layout is run normally, with front to back renderer off, the blend for sprite "shade" is incorrect. However, if you run the layout in debug mode then "shade" is rendered correctly. If you turn front to back renderer on then "shade" is also rendered correctly.

Additional problem: I noticed that, when reducing my project to demonstrate this problem, the "shade" and "sprite" objects are each in a container of just themselves....

Additional problem 2: the position of the physics sprite appears to be eccentric / different relative to the viewport, depending on whether or not normal or debug is selected.

Attach a Capx
capx link

Description of Capx
2 layouts - ignore "dump" layout. Layout L_01 contains 3 layers, layer "shader" is blend XOR, layer "FG" and "BG" have normal blends. Layer FG has 2 sprites, one named "sprite" and the second object is in a family with physics behavior. On creation of "sprite" a "shade" sprite (Destination Out) is created on the "shade" layer.

Steps to Reproduce Bug
  • Preview L_01 normally, observe the blend become extreme until it appears like a disk;
  • Preview L_02 in debug, observe that the object "shade" is rendered correctly;
  • Turn Front-To-Back-Renderer On - preview normally/debug and the "shade" object is rendered correctly

Observed Result
See above.

Expected Result
All rendering should be consistent and correct in preview / normal / front to back renderer on/off.

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

Operating System and Service Pack
W8.1 x64

Construct 2 Version ID
r207 64 bit
A big fan of JavaScript.
B
76
S
20
G
74
Posts: 2,255
Reputation: 46,484

Post » Tue Jun 09, 2015 11:02 pm

Plus: Resizing the browser's window size seems to "fix"/affect the problem.
B
35
S
11
G
3
Posts: 97
Reputation: 3,478

Post » Thu Jun 18, 2015 3:47 pm

Note the XOR blend mode is not supported in WebGL mode - it will look the same as "normal" blend mode. Still, the rendering bug should be fixed in the next beta.
Scirra Founder
B
400
S
236
G
89
Posts: 24,546
Reputation: 195,471


Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 0 guests