Jump to content

TileEntitySpecialRenderer Multiblock Clipping Culling Issues


xeed

Recommended Posts

Hello everyone,

i'm pretty new to minecraftmodding. I currently working on some MultiblockStructures. Since I would like to have multiple scaling of the same structure (2x1x2, 3x1x3, ...), i figured it would be best to use the TileEntitySpecialRenderer to render a .obj and scale it with a parameter of my TileEntity. I'd have a couple of Slave Blocks and one Baseblock. The Slaveblocks don't get rendered at all and the base model gets a offset to the center of the structure and the scale, as mentioned. So far so good.

Everything works fine, except for one litte flaw.

 

Since the base block is in the middle of the structure and the view does only include the edges of the upscaled model, it gets completly clipped out, because the base block can't be seen anymore.

 

Is there a way to extend the ?renderingbox? of the block somehow?

 

I don't know what it could be called and srsly I don't know why this is even happening. I did some OpenGL coding before and usually the program doesn't need to care to carve some not seen objects out of the scene, so every face gets rendered, if it is in the viewport.

 

I hope you get what my problem is. I'd appreciate your help.

 

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.