Uploaded image for project: 'Minecraft (Bedrock codebase)'
  1. Minecraft (Bedrock codebase)
  2. MCPE-123305

Blocks With Custom Geometry Render Incorrectly in Inventory

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 1.18.0.23 Beta, 1.18.0.22 Beta, 1.18.0.21 Beta, 1.17.30.20 Beta, 1.17.20.23 Beta, 1.17.20.22 Beta, 1.17.10, 1.17.0.58 Beta, 1.17.0.56 Beta, 1.16.230.56 Beta, 1.16.230.54 Beta, 1.16.230.52 Beta, 1.16.220, 1.16.210, 1.16.221 Hotfix, 1.17.34, 1.17.40, 1.18.0.25 Beta, 1.17.41 Hotfix, 1.20.32 Hotfix, 1.20.50.21 Preview
    • None
    • Confirmed
    • Multiple
    • 583288

      Blocks with custom geometry do not render correctly in inventory. Instead of rendering as they would appear elsewhere with the same geometry, the appearance of cubes seems to be essentially based on render order, causing the inventory model to appear garbled, with random faces that one would expect to be visible not visible, and vise versa.

      Custom blocks use the material ui_item to render in inventory, which is the same as all items and blocks excluding those with glint, which have a separate material. Whatever depth testing this material and its associated shader are doing seems to be simply insufficient to render anything with complex geometry.

      Reproduction:
      1. Download and install the attached addon.
      2. Create a world with the attached addon (being sure to enable both the associated resource and behavior packs), enabling Holiday Creator Features.
      3. Give the block contained within the addon to the player via:

      give @p geysercmd:gmdl_1
      

      4. Observe that the inventory model for this block renders improperly when compared with the in hand attachable using the same geometry.

        1. CustomItemModels_attachable.mcaddon
          36 kB
        2. IMG_4199.PNG
          IMG_4199.PNG
          2.10 MB
        3. IMG_4200.PNG
          IMG_4200.PNG
          21 kB
        4. IMG_4201.PNG
          IMG_4201.PNG
          20 kB
        5. IMG_6811.PNG
          IMG_6811.PNG
          1.26 MB
        6. IMG_6812.jpg
          IMG_6812.jpg
          6 kB
        7. IMG_6813.PNG
          IMG_6813.PNG
          309 kB

            _Kastle Joshua Kastle
            Votes:
            35 Vote for this issue
            Watchers:
            10 Start watching this issue

              Created:
              Updated:
              CHK: