logoalt Hacker News

mort96today at 9:00 AM3 repliesview on HN

Uh. You want to store assets in JSON? Why? You generally want asset packs to be seekable so that you can extract just one asset, and why would you want to add the overhead of parsing potentially gigabytes of JSON and then, per asset, decoding potentially tens of megabytes of base64?


Replies

embedding-shapetoday at 9:16 AM

> You want to store assets in JSON? Why?

Why not have both options? .gltf and .glb being possible for assets been more than helpful to me more than once, having the option gives you the best of both worlds :)

show 3 replies
silvestrovtoday at 9:03 AM

Keep all the meta info in JSON and then the big binary files in a zip file. Much easier to parse.

show 1 reply
ape4today at 9:34 AM

Someday JSON will be out of fashion - like XML is now.