Search code examples
javafxvertex

Vertex Skinning/Triangle Animation in JavaFX


I'm currently working on an Importer for the glTF into JavaFX.

Currently I'm working on the animations and hit the "Vertex Skinning". Because JavaFX already has a animation Framework I'd expect there to be a way to use Vertex skinning / a skin / a way to animate triangle meshes or similar but no matter how I search I can't find anything about that.

So is there a way to animate triangle meshes / skins in JavaFX ?


Solution

  • JavaFX has no built-in concept to animate a triangle mesh. But nothing keeps you from manipulating the geometry of the mesh at runtime yourself. If you can compute the necessary changes of the geometry you can use an AnimationTimer to drive that process.