Shadow Cast bug on big objects and objects off screen

  • 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

  • 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.

  • Tinyupload is a terrible upload site - it wants to install unwanted pscc@rc on my browser before making the capx available. Can you use dropbox for file sharing?

  • Tinyupload is a terrible upload site - it wants to install unwanted pgwy@rc on my browser before making the capx available. Can you use dropbox for file sharing?

    https://www.dropbox.com/s/u86ly2znwgjt0 ... stBug.capx

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • 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.

  • 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.

  • 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

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)