Posted April 12, 201411 yr Hello, I have a custom rendered furnace in my mod and I have everything working fine, but there seems to be a lighting bug. The texture keeps flickering from bright to dark. I am not that good at Open_GL so i don't know whats wrong. I tried to disable lighting after the pushMatrix and enabling it before the popMatix, but I am still getting the bug. Rendering Code GL11.glPushMatrix(); GL11.glDisable(GL11.GL_LIGHTING); GL11.glTranslatef((float)x + 0.5F, (float)y + 1.5F, (float)z + 0.5F); GL11.glRotatef(180F, 0F, 0F, 1F); this.bindTexture(texture); GL11.glPushMatrix(); this.model.renderModel(0.0625F); GL11.glPopMatrix(); GL11.glEnable(GL11.GL_LIGHTING); GL11.glPopMatrix(); Don't be afraid to ask question when modding, there are no stupid question! Unless you don't know java then all your questions are stupid!
April 13, 201411 yr Hi This link might be of interest http://greyminecraftcoder.blogspot.com.au/2013/08/lighting.html For blocks you need to set the tessellator brightness (the sky light / block light multitexturing coordinate) and the colour tessellator.setBrightness(...); tessellator.setColorOpaque_F(...); -TGG
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.