Posted July 31, 201510 yr Is there a way I can get the xyz of the point of rendering? Im asking because for some custom rendering Im replacing the fields from doRender() with ones Im making using the player position(I have to, the paramater provided breaks in this case), these however only update once every tick so it makes for choppy rendering. "you seem to be THE best modder I've seen imo." ~spynathan ლ(́◉◞౪◟◉‵ლ
July 31, 201510 yr Hi Looks like this is how it's calculated (from EntityRenderer.renderWorldPass() Entity entity = this.mc.getRenderViewEntity(); double d0 = entity.lastTickPosX + (entity.posX - entity.lastTickPosX) * (double)partialTicks; double d1 = entity.lastTickPosY + (entity.posY - entity.lastTickPosY) * (double)partialTicks; double d2 = entity.lastTickPosZ + (entity.posZ - entity.lastTickPosZ) * (double)partialTicks; frustum.setPosition(d0, d1, d2); -TGG
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.