So I've been working on a mod and, while I can get textures to bind to json driven blocks, I've got some entities that I've finally (after some work) gotten obj models to work with. The issue is that the textures refuse to show up. I don't get any errors on run, and it is calling the getEntityTexture in my renderer....if just won't bind that to the entity model
Here's my doRender for the entity:
bakeModel();
GlStateManager.pushMatrix();
GlStateManager.translate((float) x, (float) y, (float) z);
float scale = 0.1F;
GlStateManager.rotate(90.0F, 0.0F, -1.0F, 0.0F);
GlStateManager.scale(scale, scale, scale);
GlStateManager.enableRescaleNormal();
bindEntityTexture(entity);
//Actually render this bad boy now
Tessellator tessellator = Tessellator.getInstance();
VertexBuffer vertexBuffer = tessellator.getBuffer();
List<BakedQuad> listQuads = shipBakedModel.getQuads(null, null, 0);
int k = 0;
vertexBuffer.begin(7, DefaultVertexFormats.ITEM);
for (int j = listQuads.size(); k < j; ++k) {
BakedQuad bakedquad = listQuads.get(k);
vertexBuffer.addVertexData(bakedquad.getVertexData());
Vec3i vec3i = bakedquad.getFace().getDirectionVec();
vertexBuffer.putNormal((float) vec3i.getX(), (float) vec3i.getY(), (float) vec3i.getZ());
}
tessellator.draw();
GlStateManager.disableRescaleNormal();
GlStateManager.popMatrix();
super.doRender(entity, x, y, z, entityYaw, partialTicks);
What silly thing am I missing?
~@udio~