mojira.dev
MCPE-137976

custom block render_method bugs

blend:

When using the blend render method, you can't see the texture behind the transparent pixels. 

Steps to Reproduce:

  1. Prepare an image with transparent pixels and a custom block JSON using the "blend" render method;

  2. Apply this image to the custom block;

  3. Enter the game, hold the custom block and look at your skin through its transparent pixels, or place the block on the ground and look at its texture through its transparent pixels.

Observed Results:
The texture on the back cannot be seen through the transparent pixels.

 

alpha_test:

When using the "alpha_test" render method, the texture flickers when one of the dimensions of the geometry cube size is 0 and there are textures on both sides.

Steps to Reproduce:

  1. Prepare an image and a custom block JSON using the "alpha_test" render method;

  2. Give the block a custom geometry that contains any cube of size with a value of 0 on one axis, and then use textures for all the faces;

  3. Enter the game, place the block on the ground, and move the perspective.

The geometry JSON example:

"cubes": [
  {
    "origin": [-5, 0, -6],
    "size": [12, 8, 0], //The third value is 0, which is a slice.
    "uv": {
      "north": {"uv": [2, 8], "uv_size": [12, 8]},
      "south": {"uv": [2, 8], "uv_size": [12, 8]}
    } //Texture on both sides.
  }
]

Observed Results:
As you move the view, you will notice that the texture of the custom cube is constantly flashing, as if the surfaces of two cubes are overlapping.

Attachments

Comments 1

Thank you for your report!
However, this issue is Invalid.

Please put only one bug report in each ticket. It is very difficult to keep track of bugs when they are not in their own tickets.

In particular, it looks like you are describing 2 or 3 different bugs:

  • The issue with holding a partially transparent block rendered with the "blend" method: this sounds identical to the bug with vanilla glass tracked at MCPE-55631.

  • The issue with a placed partially transparent custom block rendered with the "blend" method. If I understand correctly that you meand placed blocks and not dropped items, this is similar to vanilla issues with dirt path, farmland, and powder snow blocks tracked at MCPE-33575 and MCPE-127565.

  • The issue with north/south faces on a custom block rendered with the "alpha_test" method: I think this is not a bug at all. The example code literally says to render two images in the exact same place, so of course they z-fight. I would expect the same result using any render method. If you want something to render differently on opposite sides, then you need to put some space between the sides.

You are welcome to make separate reports for these issues.

Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki

LPaicen

(Unassigned)

Unconfirmed

Android

Addons, custom-blocks, rendering-bug

1.17.30.20 Beta, 1.17.10

Retrieved