× Post your Help request here

[1.8] My gun and gun not rendering

  • Posts: 3
  • Thank you received: 0

0Azuki0 created the topic: [1.8] My gun and gun not rendering

Hello, i'm create a gun and helmet but in-game they not good rendering :

#80293
The topic has been locked.
  • Posts: 3
  • Thank you received: 0

0Azuki0 replied the topic: [1.8] My gun and gun not rendering

Hello, i'm create a gun and helmet but in-game they not good rendering :

image.noelshack.com/fichiers/2018/10/3/1...8-03-07-17-32-59.png image.noelshack.com/fichiers/2018/10/3/1...8-03-07-17-33-13.png image.noelshack.com/fichiers/2018/10/3/1...8-03-07-17-33-37.png image.noelshack.com/fichiers/2018/10/3/1...8-03-07-17-33-49.png [/url][/url][/url]

The Class :
package com.flansmod.client.model.ww1; //Path where the model is located

import com.flansmod.client.model.EnumAnimationType;
import com.flansmod.client.model.ModelGun;
import com.flansmod.common.vector.Vector3f;
import com.flansmod.client.tmt.ModelRendererTurbo;
import com.flansmod.client.tmt.Coord2D;
import com.flansmod.client.tmt.Shape2D;

public class ModelAvtomat extends ModelGun //Same as Filename
{
int textureX = 512;
int textureY = 512;

public ModelAvtomat() //Same as Filename
{
gunModel = new ModelRendererTurbo[17];
gunModel[0] = new ModelRendererTurbo(this, 89, 1, textureX, textureY); // Box 0
gunModel[1] = new ModelRendererTurbo(this, 1, 17, textureX, textureY); // Box 1
gunModel[2] = new ModelRendererTurbo(this, 57, 17, textureX, textureY); // Box 2

gunModel[0].addBox(0F, 0F, 0F, 19, 2, 2, 0F); // Box 0
gunModel[0].setRotationPoint(1F, -4F, -1F);

gunModel[1].addShapeBox(0F, 0F, 0F, 5, 4, 2, 0F, 0F, -0.5F, 0F, 0F, 0F, 0F, 0F, 0F, 0F, 0F, -0.5F, 0F, 0F, -0.5F, 0F, 0F, -0.5F, 0F, 0F, -0.5F, 0F, 0F, 0F, 0F); // Box 1
gunModel[1].setRotationPoint(-2F, -4F, -1F);

gunModel[2].addBox(0F, 0F, 0F, 5, 2, 2, 0F); // Box 2
gunModel[2].setRotationPoint(-5F, -2F, -1F);


animationType = EnumAnimationType.BOTTOM_CLIP;

translateAll(0F, -6.2F, 0.3F);
thirdPersonOffset = new Vector3f(-0.2F, -0.1F, 0.02F);
flipAll();
}
}

Helmet

package com.flansmod.client.model.ww1; //Path where the model is located

import com.flansmod.client.model.ModelCustomArmour;
import com.flansmod.client.tmt.ModelRendererTurbo;
import com.flansmod.client.tmt.Coord2D;
import com.flansmod.client.tmt.Shape2D;

public class ModelFrenchHelmet extends ModelCustomArmour //Same as Filename
{
int textureX = 512;
int textureY = 512;

public ModelFrenchHelmet() //Same as Filename
{
headModel = new ModelRendererTurbo[8];
headModel[0] = new ModelRendererTurbo(this, 0, 0, textureX, textureY); // Box 0
headModel[1] = new ModelRendererTurbo(this, 0, 0, textureX, textureY); // Box 1
headModel[2] = new ModelRendererTurbo(this, 0, 0, textureX, textureY); // Box 2
headModel[3] = new ModelRendererTurbo(this, 0, 0, textureX, textureY); // Box 3
headModel[4] = new ModelRendererTurbo(this, 0, 0, textureX, textureY); // Box 4
headModel[5] = new ModelRendererTurbo(this, 0, 0, textureX, textureY); // Box 5
headModel[6] = new ModelRendererTurbo(this, 0, 0, textureX, textureY); // Box 6
headModel[7] = new ModelRendererTurbo(this, 0, 0, textureX, textureY); // Box 7

headModel[0].addBox(0F, 0F, 0F, 8, 1, 8, 0F); // Box 0
headModel[0].setRotationPoint(-4F, -9F, -4F);

headModel[1].addBox(0F, 0F, 0F, 1, 1, 8, 0F); // Box 1
headModel[1].setRotationPoint(4F, -8F, -4F);

headModel[2].addBox(0F, 0F, 0F, 1, 1, 8, 0F); // Box 2
headModel[2].setRotationPoint(-5F, -8F, -4F);

headModel[3].addBox(0F, 0F, 0F, 8, 1, 2, 0F); // Box 3
headModel[3].setRotationPoint(-4F, -8F, -6F);

headModel[4].addBox(0F, 0F, 0F, 8, 1, 1, 0F); // Box 4
headModel[4].setRotationPoint(-4F, -8F, 4F);

headModel[5].addBox(0F, 0F, 0F, 6, 1, 6, 0F); // Box 5
headModel[5].setRotationPoint(-3F, -10F, -3F);

headModel[6].addBox(0F, 0F, 0F, 2, 2, 2, 0F); // Box 6
headModel[6].setRotationPoint(-1F, -10F, -5F);

headModel[7].addBox(0F, 0F, 0F, 2, 1, 6, 0F); // Box 7
headModel[7].setRotationPoint(-1F, -11F, -3F);


}
}

#80295
The topic has been locked.
  • Posts: 55
  • Thank you received: 0

BeauRecon replied the topic: [1.8] My gun and gun not rendering

have you set auto texture posistioning and after that reset the texture file?, and in the config, you have to put in the name of your gun model try this first.

#80296
The topic has been locked.
 
Latest Forum Posts
 
Latest Blog Posts
 
User Online
 
User Menu