Page 1 of 1

JSON and GLTF

Posted: Fri Mar 09, 2018 2:28 am
by Mel
Anyone? JSON seems simpler to use than XML and more efficient (besides it is the new "fashion" out there XD)
https://www.json.org/

Looks very compact, and yet complete. And is one of the components that would allow the loading of GLTF assets, GLTF is a royalty free standard for data exchanging between graphics applications developed with the idea of using it on hardware accelerated devices, it is a sort of alternative to DirectX format or FBX which are either a bit obsolete, or proprietary, that would greatly increase Irrlitch utility. I leave these around :)
https://github.com/KhronosGroup/glTF

Re: JSON and GLTF

Posted: Fri Mar 09, 2018 12:39 pm
by CuteAlien
Yeah, GLTF is somewhat interesting. XML is used by some 3D formats (collada, irrEdit). I don't work much with Javascript, so I'm not really used much to JSON. Basically I worked sometimes with JSON snippets when they had to be send/received from other API's, beside that I'm not really familiar with it.

Re: JSON and GLTF

Posted: Tue Mar 13, 2018 5:08 am
by chronologicaldot
If you'd like, I can share my JSON parser. I have to look it over to be sure it's even usable for you first (sometimes components depend on other components, as you know).

Re: JSON and GLTF

Posted: Tue Mar 13, 2018 11:07 am
by CuteAlien
Thanks, but I guess we will add JSON once we support some format which needs it.

Re: JSON and GLTF

Posted: Tue Mar 13, 2018 5:10 pm
by Mel
JSON has to do with javascript that it uses the same object representation, but on its own is just another kind of structured file, I take it doesn't get beyond the name. The .gltf files uses a JSON file to store the structure of a scene on the file and the list of files that the GLTF includes. The GLTF is meant to be selfcontained, and aimed at storing whole scenes in a compressed format, ready to transmit over internet. Reminds me of the Open Documents format of the Open Office in that matter, they are compressed ZIP files which have a XML file inside and all the attached resources the file uses as PNG or JPG images. It is closer to COLLADA in the meaning that stores whole scenes, but its specifications seems to be much more consistent, and aimed in first instance at real time graphics but in a free, not proprietary, open and standarised fashion.

Re: JSON and GLTF

Posted: Sun Mar 18, 2018 2:22 pm
by CuteAlien
Just noticed when going over my todo that GLTF is even on there already (but for post 1.9 release).

Re: JSON and GLTF

Posted: Fri Mar 23, 2018 1:48 am
by Mel
nice to hear :D