Upload models via bin files in webgl?

I see an example where the data was in the text inside the array, I saw another where someone is loading the model via ajax using json.

Is there a way to upload files via a binary file? I don't feel like loading a 1 megabyte model through 4mb json

+3
source share
3 answers

Of course, you can download binary files.

http://blog.nihilogic.dk/2008/05/reading-exif-data-with-javascript.html

But that is the problem. What you need to know in what format it is. And extract everything from there.

+1
source

You can use jQuery Binary Ajax or for new ArrayBuffer browsers

+1

gzip, json , .

three.js, .

+1

Source: https://habr.com/ru/post/1772294/


All Articles