[1.7.10] Рендер модели брони

Тут есть фишка. Если используешь рендер апи,то не надо делать getArmorModel в броне
 
Если бы не работал,то и проект мой не видел апи.А он его видет.Устанавливал так:
Скачал мод,распаковал папку RenderPlayerAPI (не джарник) , в ней  api ->player и 3 папки ,все три закинул в src/main/java
 
Я же тебе указал на аддом таума, там без PlayerAPI-_-
 
С поворотом разобрался.Но теперь возникла другая проблема,не каждая модель рендерится.Например вот эта-отображается:
Код:
public class PartyHat extends ModelBiped
{
//fields
ModelRenderer head;
ModelRenderer body;
ModelRenderer rightarm;
ModelRenderer leftarm;
ModelRenderer rightleg;
ModelRenderer leftleg;
ModelRenderer Shape1;
ModelRenderer Shape2;
ModelRenderer Shape3;
ModelRenderer Shape4;
ModelRenderer Shape5;

public PartyHat(float f)
{
super(f);
textureWidth = 64;
textureHeight = 64;

     head = new ModelRenderer(this, 0, 0);
     head.addBox(-4F, -8F, -4F, 8, 8, 8);
     head.setRotationPoint(0F, 0F, 0F);
     head.setTextureSize(64, 64);
     head.mirror = true;
     setRotation(head, 0F, 0F, 0F);
     body = new ModelRenderer(this, 16, 16);
     body.addBox(-4F, 0F, -2F, 8, 12, 4);
     body.setRotationPoint(0F, 0F, 0F);
     body.setTextureSize(64, 64);
     body.mirror = true;
     setRotation(body, 0F, 0F, 0F);
     rightarm = new ModelRenderer(this, 40, 16);
     rightarm.addBox(-3F, -2F, -2F, 4, 12, 4);
     rightarm.setRotationPoint(-5F, 2F, 0F);
     rightarm.setTextureSize(64, 64);
     rightarm.mirror = true;
     setRotation(rightarm, 0F, 0F, 0F);
     leftarm = new ModelRenderer(this, 40, 16);
     leftarm.addBox(-1F, -2F, -2F, 4, 12, 4);
     leftarm.setRotationPoint(5F, 2F, 0F);
     leftarm.setTextureSize(64, 64);
     leftarm.mirror = true;
     setRotation(leftarm, 0F, 0F, 0F);
     rightleg = new ModelRenderer(this, 0, 16);
     rightleg.addBox(-2F, 0F, -2F, 4, 12, 4);
     rightleg.setRotationPoint(-2F, 12F, 0F);
     rightleg.setTextureSize(64, 64);
     rightleg.mirror = true;
     setRotation(rightleg, 0F, 0F, 0F);
     leftleg = new ModelRenderer(this, 0, 16);
     leftleg.addBox(-2F, 0F, -2F, 4, 12, 4);
     leftleg.setRotationPoint(2F, 12F, 0F);
     leftleg.setTextureSize(64, 64);
     leftleg.mirror = true;
     setRotation(leftleg, 0F, 0F, 0F);
     Shape1 = new ModelRenderer(this, 0, 32);
     Shape1.addBox(-4F, -10F, -4F, 8, 2, 8);
     Shape1.setRotationPoint(0F, 0F, 0F);
     Shape1.setTextureSize(64, 64);
     Shape1.mirror = true;
     setRotation(Shape1, 0F, 0F, 0F);
     Shape2 = new ModelRenderer(this, 32, 32);
     Shape2.addBox(-3F, -12F, -3F, 6, 2, 6);
     Shape2.setRotationPoint(0F, 0F, 0F);
     Shape2.setTextureSize(64, 64);
     Shape2.mirror = true;
     setRotation(Shape2, 0F, 0F, 0F);
     Shape3 = new ModelRenderer(this, 12, 42);
     Shape3.addBox(-2F, -13F, -2F, 4, 1, 4);
     Shape3.setRotationPoint(0F, 0F, 0F);
     Shape3.setTextureSize(64, 64);
     Shape3.mirror = true;
     setRotation(Shape3, 0F, 0F, 0F);
     Shape4 = new ModelRenderer(this, 4, 42);
     Shape4.addBox(-1F, -16F, -1F, 2, 3, 2);
     Shape4.setRotationPoint(0F, 0F, 0F);
     Shape4.setTextureSize(64, 64);
     Shape4.mirror = true;
     setRotation(Shape4, 0F, 0F, 0F);
     Shape5 = new ModelRenderer(this, 0, 42);
     Shape5.addBox(-1F, -17F, 0F, 1, 1, 1);
     Shape5.setRotationPoint(0F, 0F, 0F);
     Shape5.setTextureSize(64, 64);
     Shape5.mirror = true;
     setRotation(Shape5, 0F, 0F, 0F);

     this.bipedHead.addChild(Shape1);
     this.bipedHead.addChild(Shape2);
     this.bipedHead.addChild(Shape3);
     this.bipedHead.addChild(Shape4);
     this.bipedHead.addChild(Shape5);
     this.bipedBody.addChild(body);
     this.bipedHead.addChild(head);
     this.bipedLeftArm.addChild(leftarm);
     this.bipedRightArm.addChild(rightarm);
     this.bipedRightLeg.addChild(rightleg);
     this.bipedLeftLeg.addChild(leftleg);
}

public void render(Entity entity, float f, float f1, float f2, float f3, float f4, float f5)
{
super.render(entity, f, f1, f2, f3, f4, f5);
setRotationAngles(f, f1, f2, f3, f4, f5, entity);
Shape1.render(f5);
Shape2.render(f5);
Shape3.render(f5);
Shape4.render(f5);
Shape5.render(f5);
}

private void setRotation(ModelRenderer model, float x, float y, float z)
{
model.rotateAngleX = x;
model.rotateAngleY = y;
model.rotateAngleZ = z;
}
}

А вот моя и вместо нее просто куб на голове:

Код:
package armorModel;

import net.minecraft.client.model.ModelBase;
import net.minecraft.client.model.ModelBiped;
import net.minecraft.client.model.ModelRenderer;
import net.minecraft.entity.Entity;


public class ModelHelmet extends ModelBiped
{
//fields
 ModelRenderer Shape1;
 ModelRenderer Shape2;

public ModelHelmet(float f)
{
    super(f);
 textureWidth = 64;
 textureHeight = 64;
 
   Shape1 = new ModelRenderer(this, 0, 0);
   Shape1.addBox(0F, 0F, 0F, 4, 3, 3);
   Shape1.setRotationPoint(-1F, -6F, 0F);
   Shape1.setTextureSize(64, 64);
   Shape1.mirror = true;
   setRotation(Shape1, 1.821752F, 2.453788F, -0.669215F);
   Shape1 = new ModelRenderer(this, 0, 0);
   Shape1.addBox(0F, 0F, 0F, 4, 3, 3);
   Shape1.setRotationPoint(0F, 0F, 0F);
   Shape1.setTextureSize(64, 64);
   Shape1.mirror = true;
   setRotation(Shape1, 2.602503F, 2.453788F, -0.669215F);
}



public void render(Entity entity, float f, float f1, float f2, float f3, float f4, float f5)
{
super.render(entity, f, f1, f2, f3, f4, f5);
setRotationAngles(f, f1, f2, f3, f4, f5, entity);
}

private void setRotation(ModelRenderer model, float x, float y, float z)
{
 model.rotateAngleX = x;
 model.rotateAngleY = y;
 model.rotateAngleZ = z;
}



}
Поможете найти ошибки?
 
Код:
  Shape1 = new ModelRenderer(this, 0, 0);
   Shape1.addBox(0F, 0F, 0F, 4, 3, 3);
   Shape1.setRotationPoint(-1F, -6F, 0F);
   Shape1.setTextureSize(64, 64);
   Shape1.mirror = true;
   setRotation(Shape1, 1.821752F, 2.453788F, -0.669215F);
   Shape1 = new ModelRenderer(this, 0, 0);
   Shape1.addBox(0F, 0F, 0F, 4, 3, 3);
   Shape1.setRotationPoint(0F, 0F, 0F);
   Shape1.setTextureSize(64, 64);
   Shape1.mirror = true;
   setRotation(Shape1, 2.602503F, 2.453788F, -0.669215F);
Тут как бы одно и тоже.Возможно должен быть 1 и 2?
 
Модель у меня выглядит так http://joxi.ru/Dr8oxZOFWMEpA6
Верхний кубик должен торчать из головы а нижний в голове.
Заменял на 1 и 2 но все равно так же
 
Ты не понял
Код:
 Shape1 = new ModelRenderer(this, 0, 0);
   Shape1.addBox(0F, 0F, 0F, 4, 3, 3);
   Shape1.setRotationPoint(-1F, -6F, 0F);
   Shape1.setTextureSize(64, 64);
   Shape1.mirror = true;
   setRotation(Shape1, 1.821752F, 2.453788F, -0.669215F);
   Shape2 = new ModelRenderer(this, 0, 0);
   Shape2.addBox(0F, 0F, 0F, 4, 3, 3);
   Shape2.setRotationPoint(0F, 0F, 0F);
   Shape2.setTextureSize(64, 64);
   Shape2.mirror = true;
   setRotation(Shape2, 2.602503F, 2.453788F, -0.669215F);
 
может есть какие то правила для создания модели частей брони?Какую бы модель не взял идет отлично а моя не хочет
 
почти во всем разобрался,осталась только 1 проблема
ddd
7l5fTEg35qg.jpg


И в майне 
9NAoGJqZJmY.jpg
 
Назад
Сверху