I've already searched for a solution to my problem and i'm unable to solve it on my own, probably because i don't have much knowlodege about openGL or rendering.
This is my render class:
public class HunterHatRender extends ModelBiped
{
private final IModelCustom hunterHat;
public HunterHatRender() {
hunterHat = AdvancedModelLoader.loadModel(new ResourceLocation(Main.MODID,
"models/hunterHat.obj"));
ModelRenderer objModelAttach = new ModelRenderer(this){
@Override
public void render(float f) {
GL11.glPushMatrix();
GL11.glTranslatef(0.0F, 1.0F, 0.0F);
FMLClientHandler.instance().getClient().renderEngine
.bindTexture(new ResourceLocation(Main.MODID, "textures/armor/texture.png"));
hunterHat.renderAll();
GL11.glPopMatrix();
}
};
bipedHead.addChild(objModelAttach);
}
}
An this is what i get:
I know the model (hat) isn't finished, is incorrectly placed and doesn't have a texture, but those are other problems i know how to fix.
Why does a biped without textures render on top of the normal player? I just wan't to render my hat
Thank you.