mojira.dev
MC-9553

Wrong rendering order of particles, hitboxes, clouds, transparent blocks, breaking animations and various other transparent textures

Mod Notice

Please do not attach any more images to this ticket.

For any new instances of this issue occurring (or similar), please perform a search on the bug tracker for reports, else create a new ticket for the specific issue being observed. To better address issues moving forward, individual problems will be tracked separately, instead of a "global" report such as this.

Affected cases

  1. Some particles render behind transparent blocks, hitboxes, breaking animations and transparent clouds, often making them barely visible. Particles known to have this issue: End rod, potion, fireowork, ink, rain and snow particles. In older versions, this was a general issue with all types of particles, some have been fixed since then.

  2. As of 13w41a, hitboxes render in front of transparent blocks - it simply looks weird when you can see the hitbox of blocks through the water surface (see

[media]
  1. ) or the rear (normally less visible) parts of the hitbox through a transparent block like ice or stained glass. As of 1.7, the behavior changed: Hitboxes now render behind transparent blocks!

  2. Transparent clouds 1 always render in front of transparent blocks and hitboxes (looks pretty weird, see

[media]
  1. ).

  2. The energy field around invisible charged creepers renders behind water and transparent clouds, but in front of hitboxes. Particles and other transparent blocks show no rendering order problems in this case. You can spawn invisible charged creepers with the following command:

    /summon creeper ~ ~1 ~ {powered:1b,ActiveEffects:[{Id:14,Duration:2000000}]}
  1. The firework explosion light flash causes water and transparent clouds to always be rendered behind it, making them disappear.

  2. The outer, transparent part of the beacon beam, the transparent text overlay of named map markers (close to a map's edge) as well as the outer transparent part of Phantom wings render behind water, transparent clouds and transparent blocks, making them disappear.

  3. Ice blocks render incorrectly in third person

Notes

1 "Transparent clouds" means: Clouds turn transparent when you move above y=128 (MC-997). Before Jeb reverted the fix of MC-997, clouds were always transparent at all heights, which can be seen here

[media]

)

Code analysis

See this comment.


Mod edit: Added comment by @unknown

Some updates from snapshot 18w22a (and possibly earlier)

Issues resolved in snapshot 18w22a:

  • Hitboxes now render underwater and through water.

  • Non-transparent particles render correctly in front of transparent blocks (ex breaking stone in front of water).

Issues new to 18w22a:

  • Hitboxes render completely behind transparent blocks (ice, colored glass) making them hard to see.

Issues still present in 18w22a:

  • Beacon beam outer aura renders behind transparent blocks at any height.

  • Transparent particles render in place of transparent blocks. (Ex: break stained glass in front of ocean, squid ink looking upward in water, etc.)

  • Charged creeper aura renders in place of transparency (water, ice, etc.)

  • Phantom wings render in place of transparency.

  • Ice still renders strangely at far distances.

  • Clouds still render in front of transparent blocks/water when placed above the cloud height.

  • Firework particles still render in behind transparent blocks.

I'm sure I forgot many of them, but these are the ones that are easily noticed to me.

Linked issues

MC-3477 Chickens glitching through half slabs Resolved MC-10353 Block breaking particles are drawn behind the selection box Resolved MC-10358 transparent digging particles Resolved MC-10392 Torch Flame Visuals Resolved MC-10448 Particles effects are faded by clouds Resolved
MC-36228 The outline of the block I point at is not visible under/behind water. Resolved MC-161885 Many transparent things do not render behind slimes Open MC-200056 Some particles render behind the outline of the targeted block Reopened MC-35920 Some translucent parts of entities make translucent blocks, block entities and some entities invisible (depending on loading order) Resolved MC-38022 Order of rendering translucent block faces fails to update with camera position Resolved

Attachments

Comments 276

Confirmed.

Same with particles and clouds.

Particles fade when see from below clouds. I added 2 screenshots to it. Really easy to reproduce. Seems happening through water too.

They also go "behind" ice. Boring bug, I hope this will be fixed soon.

Confirmed. Same problem with ice too.

266 more comments

It appears that there's still a rendering issue with particles and glass/water.  Now particles don't render at all when behind them.

 

[Mod] violine1101

Please create new specific tickets for any issues (that were previously tracked in this ticket) that you find in or after 19w39a.

I looked at all the screenshots attached here and checked all cases (which I could actually understand from the screenshot) in the latest snapshot. Most of them look like expected now. For the ones that aren't fixed I created new reports: MC-161879, MC-161885, MC-161894, MC-161896, MC-161899, MC-161901

Some statistics of this incredibl report: 888 votes (second most votes of all reports), 182 watchers (third most), 660 duplicates, so far 19 related reports (not including mine, 6 open), 252 comments (including this one), 312 affected versions marked, 101 attached images (by far the most of all reports I know), 2419 days open. Downloading all attachments results in a 74.9 MB file, saving the website a 18.1 MB one. And this was actually the first time it was ever marked as fixed, which is somewhat rare for such an old report.

Still an issue in 1.16.2

@@unknown, please see the note at the beginning of the report:

For any new instances of this issue occurring (or similar), please perform a search on the bug tracker for reports, else create a new ticket for the specific issue being observed.

Also note that some of these issues have only been fixed for "Fabulous!" mode since their fix might be rather resource intensive and people might not even notice these issues in the first place.

_zombiehunter

(Unassigned)

Confirmed

Normal

Rendering

cloud, fire, flame, heart, ice, ink, particle, rendering, texture, torch, water

Snapshot 13w06a, Snapshot 13w07a, Snapshot 13w09a, Snapshot 13w09b, Snapshot 13w09c, ..., 19w35a, 19w36a, 19w37a, 19w38b, 19w38a

19w39a

Retrieved