Testing this and it works awesomely! Great work.Now if only sketchfab's downloadable section wasn't 90% nsfw junk and models too high poly to be useful
you can import the models to blender and to optimize it, after this you can re-export to glTF the models from blender
But well then you could also use something like xbuf.The SDK now also supports GLTF and it's binary formats on latest master, but it could use some testing (I discovered a probably engine bug by trying to open duck.bin)
What problem ? Could you elaborate
An Exception has occured when trying to load asset Duck0
java.lang.ClassCastException: java.io.FileInputStream cannot be cast to com.jme3.asset.CloneableSmartAsset
Are you trying to load directly the bin file ?You are suppose to load the gltf file the bin file can't work on its own. I guess I can output a more explicit error.
Hm, the loader works perfect in my cases, I can load scenes without additional actions from me:
but in some scenes from sketchfab I see very strange rotations...
Well I thought of this like with FBX where you can have ASCII and Binary Models.So can you embed mesh data either directly in the GLTF or you can reference an external .bin?
No. Load the gltf file. The bin file is where the data is stored.
I made a change that should return a proper error when ever you try to load a bin file directly.I'll implement the .glb support.
Added support for glTF binary files (.glb)