Jump to content

Is it possible to render techne model with ISimpleBlockRenderingHandler?


Recommended Posts

Posted

Any time i try to render, i get «already tessellating» on modelMy.render((Entity)null, 0.0F, 0.0F, -0.1F, 0.0F, 0.0F, 0.0625F); even if the whole render method is just

public boolean renderWorldBlock(IBlockAccess world, int i, int j, int k, Block block, int modelId, RenderBlocks renderer){
   if(modelId == this.renderStuffId){
   modelMy.render((Entity)null, 0.0F, 0.0F, -0.1F, 0.0F, 0.0F, 0.0625F);
   return true;
}

Any ideas?


I do NOT want TE, because it consumes more resources, if my memory doesn't fail me.

If i helped you, don't forget pressing "Thank You" button. Thanks for your time.

Posted

I've seen that error before, not sure what the problem was.  Check your tessellator.startDrawing() and tessellator.draw() calls, they should match up like GL11.glPushMatrix() and GL11.glPopMatrix().

Posted

I've seen that error before, not sure what the problem was.  Check your tessellator.startDrawing() and tessellator.draw() calls, they should match up like GL11.glPushMatrix() and GL11.glPopMatrix().

public boolean renderWorldBlock(IBlockAccess world, int i, int j, int k, Block block, int modelId, RenderBlocks renderer){
   if(modelId == this.renderStuffId){
   modelMy.render((Entity)null, 0.0F, 0.0F, -0.1F, 0.0F, 0.0F, 0.0625F);
   return true;
}

There are none of those calls in my code, and if i comment modelMy.render() game works fine...

If i helped you, don't forget pressing "Thank You" button. Thanks for your time.

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.