Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-267926

Entity shadow visibility distance does not account for scale attribute

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Works As Intended
    • None
    • 24w03a
    • Confirmed
    • (Unassigned)

      The distance to which an entity's shadow begins to fade out is not affected by an entity's scale, leading to shadows appearing to fade out quicker than they should, due to how the player appears to (and technically is based off hitboxes) be closer to the entity.

      Steps to Reproduce:

      1. Summon a pig with no ai
        /summon pig ~ ~ ~ {NoAI:1b}
        
      2. Walk away from it, until you notice the shadow disappear
        (Denote your position, with a marker block beneath you, or any other way)
      3. Scale the pig's size
        /attribute @e[type=pig,limit=1,sort=nearest] minecraft:generic.scale base set 15
        
      4. Repeat step 2

      Observed & Expected Results:

      - The shadow will fade out at the same rate, despite visually being 'closer' to the entity.
      - The entity shadow should fade away at a slower rate, since the entity is easily more visible at a larger scale, and would be expected to still render it's shadow until further away.

      Screenshots/Videos:

      EntityHitboxScale.mp4

      Notes:

      1. This issue is at least partially blocked (or at least related) by the decision of MC-163468, since it's unclear currently if entity shadows should stop rendering in the first place.
      2. Relates to MC-21024 MC-223687
      3. This is likely due to the fact that shadows and when they should render is dependant on the distance from the player's position, to the entity's position, rather than the distance to the entity's hitbox.
      4. Primary reason to consider this an issue, is that the current behavior makes it near impossible for larger entities shadows to render past a scale of ~15 to 20. Generally, when the entity is bigger you can not get close enough to it's position because the entity's hitbox slowly pushes you away.

            Unassigned Unassigned
            Jingy [Helper] Jiingy
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: