I’m playing with this command line tool. So far it works. What I’m missing a bit is the possibility to convert all gltf files in a given directory. Ofc I could write a script. Another question is this also available as a lib so I could directly call it from gradle? I mean getting it via jcenter and use it in a own java class which I then can execute in gradle sort of a thing. But ye the all gltf files in a given directory would be neat. Or is it possible and I just don’t see how?
Thanks for the tool!
The problem with “all files in a current directory” is if they have different roots, targets, and scripts, etc… otherwise, I’m pretty sure that path/*
works and so command line tools like xargs would work, too.
JMEC is in maven central: https://mvnrepository.com/artifact/com.simsilica/jmec
…and usable as a library. As I recall, it’s fairly trivial to setup in gradle and others have definitely done it. It’s written like a bean so should be able to be setup in a natural groovy way.
Thank you very much for the quick answer. I can work with that
Maybe one more question, why does the resulting file still have gltf in the name? Why not just transform Model.gltf to Model.j3o?
The default just tacks .j3o onto the end. I think there is a way to override the target file name.
…in my own asset pipelines, I kind of like knowing where the file came from so I didn’t really think about it, I guess.
yeah, not that important, I just rename them in a second loop atm.