Mojira Archive
MCM-1767

Particles attached to entities sample light levels relative to the world origin

Partner Rank:
3

Partner Team Reporting:
Everbloom Games

Verification builds:
1.20.80.24_rc0

Summary:
Particles using local space attached to entities sample their light levels relative to the world origin, rather than to the entity they're attached to.

Impact:

This results in unexpected behavior, and more times than not, particles that appear almost black. Most of the time there are usually solid blocks around 0,0,0, or the world origin isn't even within render distance. In the latter case of the origin not being in render distance, the behavior is inconsistent: sometimes using skylight, other times just rendering dark.

Repro Steps:

  1. Open the provided world.
    This world is set up with a tinted glass box around the world origin, and an entity emitting light-affected particles 10 blocks away.
  2. Toggle the levers at the world origin and under the particles. They toggle the lights beneath them.
  3. Observe the particles being emitted.

Observed Results:

The particles copy the lighting at 0,0,0, rather than using the light levels around the entity.
The particles turn dark even when the lamp beneath them is on; and remain lit even when the lamp under the entity is off.

Expected Results:

The particles use the light level around themselves

Regression Build:

To my knowledge, this never worked - or at least it's been an issue since as far back as 1.17 - we've been using workarounds since then.
Though, I believe there was a recent change in 1.20.80 that introduced inconsistent behavior when 0,0,0 is outside the render distance - in 1.20.70 and before, it would consistently use skylight - now, they render dark sometimes, even if the world origin is lit up.

Screenshots / Videos Attached:

Yes.

Notes

Unresolved

Energyxxer

2024-04-11, 09:07 PM

2024-04-18, 08:43 PM

0

0

-

-