vpenades / SharpGLTF

glTF reader and writer for .NET Standard
MIT License
454 stars 72 forks source link

Morph Target / Shape Keys Support? #163

Closed GlitcherOG closed 1 year ago

GlitcherOG commented 1 year ago

I was working on a model exporter/importer to convert some ps2 game models to GLTF and back and I was wondering whether or not if there is any morph target/shape key support in the works as some of my work hinges on that.

vpenades commented 1 year ago

The library does support morph targets, and there's other people already exporting morph target animation with SharpGLTF.

But I must say that morph target animation is, by far, the most complex feature of the library and handling morph targets with SharpGLTF is difficult to say the least.

The unit tests of the library serve the double purpose of testing the library and also test multiple features, including morph targets.

GlitcherOG commented 1 year ago

Must of missed it when looking the library does confuse me sometimes, Do you know of any examples on trying to add morph targets when making models with this libarary?

vpenades commented 1 year ago

As I said, in the unit tests you can find some examples.

Like here: https://github.com/vpenades/SharpGLTF/blob/master/tests/SharpGLTF.ThirdParty.Tests/AceCebovTests.cs

GlitcherOG commented 1 year ago

Lol I really am blind, thanks for the help