JSON and GLTF

Discuss about anything related to the Irrlicht Engine, or read announcements about any significant features or usage changes.
Post Reply
Mel
Competition winner
Posts: 2292
Joined: Wed May 07, 2008 11:40 am
Location: Granada, Spain

JSON and GLTF

Post 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
"There is nothing truly useless, it always serves as a bad example". Arthur A. Schmitt
CuteAlien
Admin
Posts: 9734
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: JSON and GLTF

Post 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.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
chronologicaldot
Competition winner
Posts: 688
Joined: Mon Sep 10, 2012 8:51 am

Re: JSON and GLTF

Post 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).
CuteAlien
Admin
Posts: 9734
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: JSON and GLTF

Post by CuteAlien »

Thanks, but I guess we will add JSON once we support some format which needs it.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Mel
Competition winner
Posts: 2292
Joined: Wed May 07, 2008 11:40 am
Location: Granada, Spain

Re: JSON and GLTF

Post 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.
"There is nothing truly useless, it always serves as a bad example". Arthur A. Schmitt
CuteAlien
Admin
Posts: 9734
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: JSON and GLTF

Post by CuteAlien »

Just noticed when going over my todo that GLTF is even on there already (but for post 1.9 release).
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Mel
Competition winner
Posts: 2292
Joined: Wed May 07, 2008 11:40 am
Location: Granada, Spain

Re: JSON and GLTF

Post by Mel »

nice to hear :D
"There is nothing truly useless, it always serves as a bad example". Arthur A. Schmitt
Post Reply