Posted May 3, 20214 yr 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 May 3, 20214 yr by Woodside solved
May 3, 20214 yr 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.
May 3, 20214 yr Author 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!
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.