Hi! I was hoping to pitch an idea for how to implement data driven entity models & animations. The idea is this: 1. json files for model parts are stored in: 'models/entity/mob_name.json for instance mob_name.json: ' { "cubes": [ { "textureOffset": [], "box": [-4.0F, 4.5F, -3.0F, 4.0F, 0.0F, 4.0F], "deformation": 0.0 }, ... ], "children": [ ... ], offset: [0, 0, 0] } ' 2. json files for animations are stored in 'animations/entity/mob_name/animation_name.json for instance walk.json: ' "animations": [ { "left_leg": { "target": "rotation", "keyframes": [ { "time": 0, "interpolation": "linear", "degrees": [0, 0, 0] }, ... ] }, ... } ] ' With this approach, a resource-packer could create as complex model as they want, with as complex an animation as possible, and the only restriction would be that the animations must be named correctly based on when you want your animation to play! (example: if it is a walk animation: 'walk.json', or an attack animation: 'attack.json'). Thanks for your time, I appreciate it! :) Happy crafting!
0 Comments
Please sign in to leave a comment.
Post a new comment: