Shadow Cast bug on big objects and objects off screen

Bugs will be moved here once resolved.

Post » Sat Jun 25, 2016 1:55 am

Problem Description
Big objects, have a problem with infinite shadow casting (when the height is same on both the light plugin and the shadow casting object).
objects that are off screen do not cast shadow.

Attach a Capx
https://www.dropbox.com/s/u86ly2znwgjt0 ... stBug.capx

Description of Capx
Just open the capx file and run it, you will see the problem.

Steps to Reproduce Bug
Just open the capx file and run it, you will see the problem.
(If the light is close to the big object, the shadow is not infinite. only when the light is close to the object)

Observed Result
The off screen object doesnt cast shadow.
The big object shadow is not infinite.

Expected Result
The off screen object should cast shadow.
The big object shadow should be infinite.

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

Operating System and Service Pack
Win 10 64bit

Construct 2 Version ID
r227
Last edited by HessamoddinS on Wed Jul 06, 2016 7:58 pm, edited 2 times in total.
B
45
S
19
G
3
Posts: 102
Reputation: 4,598

Post » Wed Jun 29, 2016 7:34 pm

The light plugin has a lot of limitations.
The AA is not good at all.
The infinite shadow doesn't work properly.
The game I'm working on is highly dependents on the light plugin and the problem with infinite shadow is really annoying and I'm just wasting my time everyday trying to fix this issue. I have spent 3 months on this game and now I have to redo a lot of works because there is a bug in light plugin which can't be fixed.
B
45
S
19
G
3
Posts: 102
Reputation: 4,598

Post » Sun Jul 03, 2016 8:50 pm

Tinyupload is a terrible upload site - it wants to install unwanted [email protected] on my browser before making the capx available. Can you use dropbox for file sharing?
I only occasionally visit - I'm learning C# for Unity, but c2 is still a respectable game engine imo....
B
73
S
19
G
66
Posts: 2,198
Reputation: 42,193

Post » Mon Jul 04, 2016 10:18 pm

Colludium wrote:Tinyupload is a terrible upload site - it wants to install unwanted [email protected] on my browser before making the capx available. Can you use dropbox for file sharing?

https://www.dropbox.com/s/u86ly2znwgjt0 ... stBug.capx
B
45
S
19
G
3
Posts: 102
Reputation: 4,598

Post » Sat Jul 09, 2016 1:04 am

Isn't there any solution? Has the shadow a limit? Because I cant cast an infinite shadow. In my top-down shooter it stops at certain point (all shadows disappear at all) when I walk away from the caster.
B
21
S
8
G
4
Posts: 66
Reputation: 3,650

Post » Mon Jul 11, 2016 12:41 pm

Closing as won't fix. I'm not sure what we can do about this: look at how shallow the angle is from the shadow casting off the top of the wall. For the shadow shape to really fill in the whole area, it would need to extrude that shadow up to infinity. Sadly computers work with the finite, so it extrudes it a very long way, but then stops. This means it fills the shadow in to a finite area with a right edge (instead of an infinite area), and sometimes that edge is visible on-screen.

The manual entry does say you should avoid moving lights too close to casters to avoid these extreme cases. The algorithm could probably be updated, but I think it would need to be fundamentally rewritten. Realistically I don't think that will happen before C3.
Scirra Founder
B
387
S
230
G
88
Posts: 24,251
Reputation: 192,464

Post » Tue Aug 09, 2016 5:11 pm

Maybe an option to manually adjust the limit? I cant design large maps due to this issue. The problem is that when I go far away (not so much) from the shadowcaster or viceversa because it's moving, the shadow just desapear, no matter what the height of the objects are

edit: http://i.giphy.com/3o6ZsSoHcvrLS4zg4w.gif
B
21
S
8
G
4
Posts: 66
Reputation: 3,650


Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 0 guests