-
Notifications
You must be signed in to change notification settings - Fork 5
Animate glTF files #18
Comments
How will we handle armatures/skeletons? Will we have to calculate the mesh deformations ourselves? Most non-trivial animations aren't done with just simple transformations. We will have to put in the work to implement this kind of stuff even though it is much harder. (maybe as part of another issue?) |
Yeah this will only handle simple animations, seems like we will have to handle this stuff ourselves. The material rendering isn't finished either, but one step at a time! |
Some instructions for the person who ends up working on this: Mentoring Instructions
Lines 43 to 64 in 9df6e0b
spritec/samples/bigboi/spritec.toml Lines 1 to 20 in 9df6e0b
Right now the generated spritesheet just has the same pose 8 times: When this is complete, it should look more like the other spritesheets generated from the .obj files:
spritec/samples/bigboi/spritec.toml Lines 125 to 132 in 9df6e0b
The actual details of how to accomplish all of this are up to you. This is just a high level overview of some possible steps. There may be more things you need to do that I haven't thought of. Feel free to ask me any questions about this! 😄 |
from #57 , next step is to walk the node hierarchy tree from a scene and get the global transform of each node instead of local |
goal we are aiming towards:
|
The renderer will need to be changed to accept a scene (probably the scene root node + lights). We will then traverse the scene hierarchy and accumulate the transforms before performing the drawing process. Once @daose has the code for getting a scene root from a glTF file, I will work on refactoring our renderer to do the above steps. While I am doing that, Bill and @JLSJamesShi can work on the second bullet point and figure out how to output a scene with all of the animations applied. As mentioned, we're going to use By the end of this work we should only load from the glTF file once during construction and no longer need any handles to the glTF file in our scene graph. |
Next steps:
|
Currently glTF only loads the 3d model with no animations. Need to put animations in so we can generate a more interesting sprite sheet.
Likely steps are:
Resources:
https://raw.githubusercontent.com/KhronosGroup/glTF/master/specification/2.0/figures/gltfOverview-2.0.0b.png
https://github.com/KhronosGroup/glTF-Tutorials/blob/master/gltfTutorial/gltfTutorial_006_SimpleAnimation.md
The text was updated successfully, but these errors were encountered: