Jump to content

[1.8] Rendering TileEntity


MCRaichu

Recommended Posts

Hi,

i have a small problem with my TileEntitySpecialRenderer. Depending on how I look at the block, it switches between very bright and very dark. Any ideas?

b3Xw091.png

GL11.glPushMatrix();

GlStateManager.translate(relativeX + centreOffsetX, relativeY + centreOffsetY, relativeZ + centreOffsetZ);

GlStateManager.scale(SCALE_FACTOR, SCALE_FACTOR, SCALE_FACTOR);

Tessellator tessellator = Tessellator.getInstance();
WorldRenderer worldrenderer = tessellator.getWorldRenderer();
this.bindTexture(nodTurretBaseTexture);         // texture 

worldrenderer.startDrawingQuads();
addBaseVertices(worldrenderer);
tessellator.draw();

GL11.glPopMatrix();

 

EDIT: I found out it has something to do with the item rendering. the switch depends on the lighting of the item I'm holding and

RenderHelper.disableStandardItemLighting();

turns it dark all the time. Does anyone know why the item affects the block?

 

It doesn't work, I don't know why.

It works, I don't know why.

Link to comment
Share on other sites

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.