mojira.dev
MCPE-189266

Double-sided cross-shaped blocks render incorrectly in ray tracing graphics mode

Blocks that use the double sided cross shaped model render incorrectly in ray tracing graphics mode.
This issue is indirectly related to MCPE-188463 and MCPE-40646
The new double-sided model is being used for more and more cross-shaped plane blocks in vanilla game to address the issue with textures appearing mirrored in the vanilla game
Which in turn is causing more and more blocks in ray-traced graphics mode to render incorrectly
To further clarify, this new model appears to include a flipped version of the texture on the backside of the plane, in vanilla and deferred lighting graphics modes, the backface of the plane is culled
But in ray tracing graphics mode, both sides are rendered at the same time, leading to z-fighting and incorrect visuals as demonstrated in the images.

Steps to re-produce:

  • Enable ray tracing, you can use the empty ray tracing pack from the attachments which uses only vanilla games' files and allows you to turn ray tracing on.

  • Place down cross-shaped blocks that use the new double-sided model, some examples include: grass, tallgrass, saplings, all flowers, and likely more

  • Observe, the flipped version of the texture is rendered on the backside of the plane instead of being culled like in vanilla game

[media]

[media]

Additional Notes:
This issue is less about which blocks this bug applies to, and more about the double-sided crossed-shaped block shape rendering incorrectly with ray tracing.
If this particular block shape is used with any other block or texture or in even in custom add-ons, the same issue will be present, so instead of compiling a list of blocks with this bug, the report focuses on the root cause of the issue.

This issue is even more critical because in the recent previews this new double-sided render method is being enabled for more and more cross-shaped plane blocks
which means every cross-shaped block will be rendered incorrectly in ray tracing graphics mode.

Attachments

Comments 1

For resource pack authors:
A workaround is to revert to the non-double sided (regular) variant of the blockshape.
This can be done for some blocks.
But some others such as Berry Bushes, Cave Vines, Dripstone, and more, a single-sided variant of the geometry was never implemented, ** this issue will permanently affect ray tracing unless addressed by Mojang. 

If you have any information about more alternative block geometries that could be used to temporarily work around this issue, please feel free to add.

P.S. This isn't a real fix, as you're only reverting back to something that was never broken to begin with at the cost of missing out on non-mirrored cross-shaped textures.
Worst part is I speculate this will apply to many more blocks with future previews and makes looking at a good chunk of blocks.. unpleasant! 
Some block shapes (such as torch) already have single-sided rendering with ray tracing! which shows it is a possibility.

Cubeir

(Unassigned)

1380591

Confirmed

Windows

Windows 11

1.21.110.20 Preview, 1.21.100.24 Preview, 1.21.60.24 Preview, 1.21.51 Hotfix, 1.21.94 Hotfix

Retrieved