You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was thinking about importing and using models with animation in Java. And what i thought would be a neat idea, is to write a little API for importing models from actual Tabula files (you save animations already, right?) and rendering them like this:
TabulaModelmodel = TabulaLoader.load("modid:models/test.tbl");
model.render();
//ormodel.renderAnimation(someKindOfTick, etc);
//or using methods from existing Forge frameworkmodel.renderParts("Head", "Neck", "etc");
Also, if this loader gets really popular and stuff, it might be included in forge by default(like Techne model importer, which is broken in Forge from 1.6).
And, you are rendering animations in Tabula now, so you can reuse some of that code in this API.
P.S. Just realised, that all this time i was using Russian rules to place commas all around, lol.
The text was updated successfully, but these errors were encountered:
So far i wrote supercool independent(no Tabula or iChunUtil required) API thingy to load and render models from tbl file and right now i'm working on animations.
So, a little example below:
privatefinalIAnimatedModelmodel;
publicTestRenderer(){
model = TabulaLoader.load("testt:models/ModelPig.tbl");
}
@OverridepublicvoidrenderTileEntityAt(TileEntitytile, doublex, doubley, doublez, floatpartialTicks){
GL11.glPushMatrix();
GL11.glTranslated(x, y, z);
/* Animations example double position = model.getPrevTicks() + (mode.getTicks() - model.getPrevTicks()) * particalTicks; model.renderAnimation("testAnim1", position); */model.renderAll();
GL11.glPopMatrix();
}
I was thinking about importing and using models with animation in Java. And what i thought would be a neat idea, is to write a little API for importing models from actual Tabula files (you save animations already, right?) and rendering them like this:
Also, if this loader gets really popular and stuff, it might be included in forge by default(like Techne model importer, which is broken in Forge from 1.6).
And, you are rendering animations in Tabula now, so you can reuse some of that code in this API.
P.S. Just realised, that all this time i was using Russian rules to place commas all around, lol.
The text was updated successfully, but these errors were encountered: