aardvarkxr / aardvark

A platform for AR in VR
BSD 3-Clause "New" or "Revised" License
182 stars 19 forks source link

morph target animation not working #74

Open zite opened 4 years ago

zite commented 4 years ago

Here's a link to the model: https://github.com/zite/slimeslime/blob/master/src/models/slime.glb That project should have an auto-start example of using it.

JoeLudwig commented 4 years ago

Looks like animated weights weren't supported in the original sample, so they aren't supported in Aardvark yet.

You could probably do a similar animation with scale and translation...

if (source.target_path == "weights") {
    std::cout << "weights not yet supported, skipping channel" << std::endl;
    continue;
}
JoeLudwig commented 4 years ago

"weights" is how GLTF animates a mesh using morph targets.

JoeLudwig commented 4 years ago

This may need to wait for #11. Adding morph targets to the existing "engine" would be a bunch of work.