Jump to content

Large entity is not rendering under specific angle


Toma™

Recommended Posts

Hello, I created quite large entity which can be ridden by 32 players, however I found issue with it's rendering... When I'm looking around the entity it stops rendering under some angles. I have tried setting it's size to big number to cover whole entity so when you look at the entity you should be able to see it's bounding box. That didn't help. Is there some way to get around this? I could post some code, but I think this is built in somewhere in Minecraft by default.

Link to comment
Share on other sites

This is most likely caused by the Entity's Frustum culling.
Don't have access to a workspace right now, but there should be a boolean along the lines of ignoreFrustumCheck that you can set to true in your entity's class that has been inherited from the base Entity class.

Edited by Matryoshika

Also previously known as eAndPi.

"Pi, is there a station coming up where we can board your train of thought?" -Kronnn

Published Mods: Underworld

Handy links: Vic_'s Forge events Own WIP Tutorials.

Link to comment
Share on other sites

3 hours ago, Matryoshika said:

This is most likely caused by the Entity's Frustum culling.
Don't have access to a workspace right now, but there should be a boolean along the lines of ignoreFrustumCheck that you can set to true in your entity's class that has been inherited from the base Entity class.

 

Okay, I have tried that, but my entity is still disapearing under some angles for some reason. I added that boolean into constructor and that's all. I've been looking into it's usage and it appears only the Dragon entity from Minecraft is using that and I did exactly the same implementation. :/

Link to comment
Share on other sites

Entities are tied to the chunk. So if the chunk it's in is culled there is nothing you can do to make the entity render.

You need to split your entity into multiple parts.

I do Forge for free, however the servers to run it arn't free, so anything is appreciated.
Consider supporting the team on Patreon

Link to comment
Share on other sites

  • 2 weeks later...
On 3/18/2019 at 10:19 AM, LexManos said:

Entities are tied to the chunk. So if the chunk it's in is culled there is nothing you can do to make the entity render.

You need to split your entity into multiple parts.

I have a similar problem, but my entity is really tall rather than (I'm assuming) really wide. Whenever I look too high, it completely disappears. I tried setting ignoreFrustumCheck to true, and I also tried overriding methods like shouldRender to always return true. I'm pretty sure it's not a problem with chunks. However, nothing has worked. Is there any way to fix this that doesn't involve creating multiple entities?

 

Also, this might be related - the hitbox from F3 + B goes all the way to the top of the rocket, but only the bottom 4-ish blocks can actually be hit.

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.