Shadows on mirrored sprites render incorrectly

Bugs will be moved here once resolved.

Post » Wed Sep 02, 2015 3:14 pm

Problem Description
Shadows on mirrored sprites render incorrectly.

Attach a Capx
https://dl.dropboxusercontent.com/u/14245368/C2/mirrored_sprite_shadow_bug.capx

Example:
https://dl.dropboxusercontent.com/u/142 ... index.html

Description of Capx
CapX illustrates incorrect shadow rendering, even when default settings are used.

Steps to Reproduce Bug
  • Add a Shadowcaster to a sprite
  • Add a Shadow Light to the scene
  • Mirror the sprite

Observed Result
The shape of the shadow is wrong, and C2 seems to be flipping the collision polygon used to calculate the shape of the shadow incorrectly.

This is how the collision polygon is set up:
Image

This is how it renders, showing both mirrored (left) and unmirrored (right) sprites.
Image

Expected Result
The shadow to render correctly, when a player or enemy sprite may be mirrored during normal gameplay.

Affected Browsers
  • Chrome: (YES)
  • FireFox: (YES)
  • Internet Explorer: (YES)
  • Edge: (YES)
  • NW.js: (YES)

Operating System and Service Pack
Windows 7 x64 updated, Windows 8.1 updated, Window 10 updated, OSX 10.9.5

Construct 2 Version ID
211-212.2
B
89
S
47
G
25
Posts: 535
Reputation: 21,827

Post » Tue Sep 08, 2015 3:05 pm

@Ashley, do you need more info on this or do you have enough?
B
89
S
47
G
25
Posts: 535
Reputation: 21,827

Post » Tue Sep 08, 2015 5:09 pm

Should be fixed in the next build.
Scirra Founder
B
403
S
238
G
89
Posts: 24,648
Reputation: 196,133

Post » Wed Sep 09, 2015 3:50 pm

Ashley wrote:Should be fixed in the next build.


Great to hear, and thanks for the reply.
B
89
S
47
G
25
Posts: 535
Reputation: 21,827


Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 1 guest