Assembler is being rendered insideout in your hand #2549

Closed
GuntherDW opened this Issue Nov 1, 2016 · 2 comments

Projects

None yet

3 participants

@GuntherDW

The Molecular Assembler seems to have an issue being rendered in the players' hands. This is without mods like OptiFine installed.

http://i.imgur.com/yheqYvY.png

In-world assemblers are being rendered fine, but when holding it inside your hands it kind of looks like the quads are being drawn in the reverse order, or some other OpenGL screw-up.

  • Minecraft Version: 1.10.2
  • AE2 Version: c7eb696
  • Forge Version: 12.18.2.2117
@yueh yueh added the type-bug label Nov 1, 2016
@yueh yueh added this to the rv4 beta - 1.10 milestone Nov 1, 2016
@yueh
Member
yueh commented Nov 1, 2016

The assembler uses a normal json model. No idea how there could screw up on our side.

@shartte The fix to lighting does not seem to affect it.

@shartte shartte added a commit that closed this issue Nov 4, 2016
@shartte shartte Fixes #2549: A block being rendered in the translucent layer will cau…
…se the item renderer to completely disable depth-writing causing silly looking models when held in hand.
c1483d8
@shartte shartte closed this in c1483d8 Nov 4, 2016
@shartte
Contributor
shartte commented Nov 4, 2016

The problematic part is this in code snippet in ItemRenderer (vanilla):

boolean flag = this.itemRenderer.shouldRenderItemIn3D(heldStack) && this.isBlockTranslucent(block);

        if (flag)
        {
            GlStateManager.depthMask(false);
        }

        this.itemRenderer.renderItem(heldStack, entitylivingbaseIn, transform, leftHanded);

        if (flag)
        {
            GlStateManager.depthMask(true);
        }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment