Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Posted

Hi,

 

I've had this issue for a while and am not quite sure what the problem is. My mobs' animations seem a bit choppy, as seen here.

 

The mob is just a scaled up ModelBiped.

 

The Renderer class:

public class RenderSizeable extends RenderLivingCreature {

protected float scale;

public RenderSizeable(ModelBase var1, float shadowsize, float scale, ResourceLocation texture) {
	super(var1, shadowsize * scale, texture);
	this.scale = scale;
}

public void preRenderScale(EntityMob var1, float var2) {
	GL11.glScalef(this.scale, this.scale, this.scale);
}

@Override
protected void preRenderCallback(EntityLivingBase var1, float var2) {
	this.preRenderScale((EntityMob)var1, var2);
}
}

 

Any idea what the issue might be?

Check out my mod, Realms of Chaos, here.

 

If I helped you, be sure to press the "Thank You" button!

  • Author

The video looks like the partialTicks are messed up, which probably happens because you just scaled the whole thing up.

 

How is this different from how the Giant is scaled up in Vanilla?

Check out my mod, Realms of Chaos, here.

 

If I helped you, be sure to press the "Thank You" button!

Why dont you just use the normal doRender method in an entity renderer and do something like

GLStateManager.pushMatrix();

GL11.scalef();

RenderMob.doRender(x,y,z,var8,partialTicks);

GLStateManager.popMatrix();

 

It seems like you're overcomplicating thi.

"you seem to be THE best modder I've seen imo."

~spynathan

 

ლ(́◉◞౪◟◉‵ლ

  • Author

Happens with all my mobs, not just the scaled-up ones.

Check out my mod, Realms of Chaos, here.

 

If I helped you, be sure to press the "Thank You" button!

Happens with all my mobs, not just the scaled-up ones.

How about vanilla mobs, are they choppy as well? If not, perhaps you are doing some weird things in the mobs' models or perhaps your entity registration is using odd values for the update frequency?

  • Author

Yep, it was the update frequency. No idea how that happened...

 

Thanks!

Check out my mod, Realms of Chaos, here.

 

If I helped you, be sure to press the "Thank You" button!

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...

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.