As I delved into various webGL examples, particularly those based on Three.js, I came across a fascinating method of loading large models using a combination of ASCII and binary JSON. This technique caught my attention due to the significant reduction in file size. The structure of the ASCII JSON is similar to the following (taken from a Three.js example, webgl_geometry_large_mesh.html):
{
"metadata" :
{
"formatVersion" : 3,
"sourceFile" : "lucy100k.obj",
"generatedBy" : "OBJConverter",
"vertices" : 50002,
"faces" : 100000,
"normals" : 0,
"uvs" : 0,
"materials" : 0
},
"materials": [ {
"DbgColor" : 15658734,
"DbgIndex" : 0,
"DbgName" : "default"
}],
"buffers": "Lucy100k_bin.bin"
}
The snippet reveals that instead of inundating the main file with an excessive amount of vertices, normals, UVs, etc., all the data is packed into a separate binary file. Are you aware of how to create this binary file? Can it be done through Blender? If not, are there any scripts available for this purpose?
Thank you