Jump to content

[SOLVED][1.15.2] Render Entity Even When Hitbox is Off-Screen?


Woodside

Recommended Posts

I have an entity whose render model extends decently far outside its hitbox. This creates a possibility for the player to look away from the hitbox and see the render model suddenly disappear. Is there a way to extend the render cone for specific entities? Or have them be always rendered even when not in the cone?

Edited by Woodside
solved
Link to comment
Share on other sites

3 hours ago, SuperRuper1209 said:

If your entity uses custom renderer class, override shouldRender(or something like that) and return true. Or do the thing diesieben07 advised. Depends if you need to render always or with a higher camera angle.

 

5 hours ago, diesieben07 said:

Override getRenderBoundingBox in your Entity.

 

I also found that I can set Entity.ignoreFrustumCheck to true, which is used in the default "shouldRender" method. Thank you both for the leads!

Link to comment
Share on other sites

  • Woodside changed the title to [SOLVED][1.15.2] Render Entity Even When Hitbox is Off-Screen?

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.