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
JSON and GLTF
JSON and GLTF
"There is nothing truly useless, it always serves as a bad example". Arthur A. Schmitt
Re: JSON and GLTF
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
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
-
- Competition winner
- Posts: 688
- Joined: Mon Sep 10, 2012 8:51 am
Re: JSON and GLTF
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
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
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Re: JSON and GLTF
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
Re: JSON and GLTF
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
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Re: JSON and GLTF
nice to hear
"There is nothing truly useless, it always serves as a bad example". Arthur A. Schmitt