Posted April 20, 201411 yr I have a custom rendered tile entity and I have a lighting bug. The tile entity flickers from light to dark as a walk around it. I have tried to make the tile entity not opaque and I have tried to disable lighting after the push matix and enable it after the pop matix, in the rendering code, but the bug still refuses to be debugged! Does anyone have any suggestions? 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 20, 201411 yr Have you overriden the following method and set the light opacity to 0? @Override public boolean renderAsNormalBlock() { return false; } PM's regarding modding questions should belong in the Modder Support sub-forum and won't be answered.
April 20, 201411 yr Author I have overridden the method, but won't setting the light opacity to 0, let light pass through it and act like glass, except it is not transparent? 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 21, 201411 yr Hi Rendering lighting is made up of several components and I suspect you haven't disabled them all. Perhaps try GL11.glPushAttrib(GL11.GL_ENABLE_BIT); disableStandardItemLighting(); GL11.glColor4f(1.0, 1.0, 1.0, 1.0); { do your render here} GL11.glPopAttrib(); That worked for me... -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.