Devlog #3 - Light and Shadow in Godot

แชร์
ฝัง
  • เผยแพร่เมื่อ 14 ต.ค. 2024

ความคิดเห็น • 26

  • @kopako_art
    @kopako_art 4 ปีที่แล้ว +12

    I love your artstyle! The game looks really beautiful! If you add a walking animation it will already look super polished.

  • @ahs9674
    @ahs9674 4 ปีที่แล้ว +5

    This is what the Item cull mask on the shadow is for. If your player is set to light mask 1, you can simply set the shadow settings on the light to item cull mask 2. You have to experiment a bit with it.

  • @CodeNMore
    @CodeNMore 4 ปีที่แล้ว +5

    Haven't worked with Godot light occluders at all, but possibly keeping the sprite shadowed, but setting the Z-index of the light occluder lower than the sprite? Cool devlog btw!

  • @moss7803
    @moss7803 3 ปีที่แล้ว +2

    Hello. I understand that it is no longer relevant, but you literally saved me. I spent several days trying to decide how to smoothly remove the objects behind which the player is... THANK YOU

  • @illiusterka
    @illiusterka 3 ปีที่แล้ว +1

    Here's how I did it for my project
    ------------------
    In Sprite node:
    "Visibility" section of inspector -> switch the Light Mask Layer to a Bit that differs from the Occluder's
    In Light2D node:
    "Range" section of inspector -> check both the Occluder's and the Sprite's mask layers in Item Cull Mask property
    ------------------
    Good luck!

  • @ShakilAhmedPalatok
    @ShakilAhmedPalatok 4 ปีที่แล้ว +1

    Love your artworks & Thumbs up for Godot tutorial. Please make more Godot tutorial in future. Thanks a lot.

  • @JasonLothamer
    @JasonLothamer 3 ปีที่แล้ว +1

    Hopefully by now you have an answer, but for those of you that don't know, set the Cull Mode on the OccluderPolygon2D for the LightOccluder2D node. You'll need to set it to ClockWise or CounterClockWise depending on what direction you added the points. Just flip between those two options till it works. Then the inside of the occluder won't be shaded.

  • @easyU2B
    @easyU2B 4 ปีที่แล้ว +11

    You can fix it by setting the 'z index' or by setting 'show behind parent' to true under 'visibility'.

    • @NevoskiStudios
      @NevoskiStudios  4 ปีที่แล้ว +1

      I will try it out!

    • @holleey
      @holleey 4 ปีที่แล้ว +1

      that had no effect for me :(
      up.r00t.li/20200406_Godot_00F1.png

    • @guustavols
      @guustavols 4 ปีที่แล้ว

      in the light occluder?

    • @patientfirbolg3299
      @patientfirbolg3299 4 ปีที่แล้ว +2

      The z-index has no effect on the occluder in game. Occluders are real finicky

    • @soviet3918
      @soviet3918 2 ปีที่แล้ว

      doesn't work it has no effect at all

  • @SetimoRei
    @SetimoRei 4 ปีที่แล้ว +1

    Nice work man!

  • @iamkai101
    @iamkai101 3 ปีที่แล้ว

    inkscape and godot? u seem pretty cool, i think i'll stay

  • @aleks3449
    @aleks3449 4 ปีที่แล้ว +1

    Nice!!! Please continue!!! (Liked)

  • @BruceOnder
    @BruceOnder 4 ปีที่แล้ว +1

    Good stuff!

  • @AnkurPanchani
    @AnkurPanchani 4 ปีที่แล้ว

    Check Normal Maps for 3D like shadowing in 2D

  • @seemarajput779
    @seemarajput779 4 ปีที่แล้ว

    what's the name of software you used for making assets??

  • @LearnKuCode
    @LearnKuCode 4 ปีที่แล้ว

    how do you make the light from fire expand and decrease

    • @devinbelver7124
      @devinbelver7124 3 ปีที่แล้ว

      A few ways. You can animate its scale, increase and decrease. Or if it's a proper light, animate its power or radius. You can even just do it in scripting with a tween. Can't say what he did specifically. It looks like he's using a fake and real light at the same time

  • @cmds.learning7426
    @cmds.learning7426 4 ปีที่แล้ว

    hi how you finished the map? use tiledmap or sprite?

  • @Galomortalbr
    @Galomortalbr 4 ปีที่แล้ว

    there was s simple solution for that, don't remember what it was right now, but i can check it for you

    • @holleey
      @holleey 4 ปีที่แล้ว

      I am currently struggling with the same problem. here's an example:
      up.r00t.li/20200406_Godot_00F1.png
      I need the shadows to be drawn underneath the sprites, not on top them.
      do you have any ideas?

  • @Forcemaster2000
    @Forcemaster2000 4 ปีที่แล้ว

    It's very annoying when you grab the screen window and shake it when you're talking about something. It's distracting. We're paying attention already.