Tank Liquids incorrect rendering from different Angles
kaerns opened this issue ยท 5 comments
Please test in empty world, it looks like OpenGL state leak caused by other TileEntity.
Also, rendering is also bugged on first image, due to MinecraftForge/MinecraftForge#3900
seems to work fine in an "empty" world (superflat with just 1 layer bedrock)
did a quick test and found the problem: its the forcefield from malisis doors. when its in the view-range it looks like the second picture, otherwhise it looks like the first.
Though I have no idea what leaks. Normally I would guess it's blend func, but that seems to be set before rendering of tank quads (TileEntityRendererDispatcher.drawBatch
):
GlStateManager.blendFunc(org.lwjgl.opengl.GL11.GL_SRC_ALPHA, org.lwjgl.opengl.GL11.GL_ONE_MINUS_SRC_ALPHA);
GlStateManager.enableBlend();
GlStateManager.disableCull();
I don't have way to fix it on my side, since I'm using FastTESR, so I'm closing this issue.
Ok, found it, they don't use GlStateManager
. Pretty serious bug, IMO: https://github.com/Ordinastie/MalisisDoors/blob/1.11/src/main/java/net/malisis/doors/renderer/ForcefieldRenderer.java#L136