Jump to content

[1.7.10] Slightly "Glitchy" Mob Animation?


Eternaldoom

Recommended Posts

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!

Link to comment
Share on other sites

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

 

ლ(́◉◞౪◟◉‵ლ

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.