How can I compress my FBX file further?

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP



How can I compress my FBX file further?



I have an FBX file that takes 58.8MB



After converting it to a .glb using draco compression with this package:



https://github.com/facebookincubator/FBX2glTF/tree/master/npm



The file now takes 28.4MB



Ideally, I would need to get the file below 5MB.



How can I achieve that ?



I am using 3DS Max.



The character used to take the whole screen on load, now here is what I see after converting the FBX to gltf, reducing the size of the textures from 2048x2048 to 1024x1024 and converting them to .jpg :



enter image description here





I don't think a >90% compression ratio is realistic, even for the best compression algorithms, given 3D mesh input data. Your best bet may be to reduce the amount of incoming data, by removing fine-grained detail. Some packages call this "decimating" the mesh. It may also be possible to convert high-poly detail to baked normal maps on a low-poly mesh.
– emackey
Aug 7 at 20:47





@emackey Ultimately, I would like to load the model inside three.js to let my users play with it. 5MB is already a lot for most internet connections. I agree that >90% compression is most likely unrealistic, I should have written something to the tune of "the smallest size possible". Do you think it would be possible to gzip a gltf file and unzip it on the client ? What size gains could I get from that in your opinion ?
– TheProgrammer
Aug 8 at 11:42





It would be helpful to know what portion of your file size is geometry, and what portion is textures. Try exporting to .gltf instead of .glb to see those separately. Or if you can share the file, that's also helpful.
– Don McCurdy
Aug 8 at 20:45


.gltf


.glb





Sometimes a lot of the file size comes from textures. If you have PNG textures and can take a small quality reduction, convert them to JPG for smaller sizes.
– emackey
Aug 8 at 22:09





@DonMcCurdy The .gltf is 91KB. All the rest of the 28.4MB is textures...
– TheProgrammer
Aug 9 at 18:39




1 Answer
1



To reduce the filesize of a model you’ll first need to know why it is the size it is. Often this is textures, mesh geometry, or animation data. If you export to .gltf instead of the binary .glb you should see textures in separate files, and geometry and animations (if any) in a .bin file.


.gltf


.glb


.bin



To reduce the size of textures, you’ll want to use traditional image optimization tools and shouldn’t need to edit the glTF file at all.



To reduce mesh complexity, use a modeling tool (e.g. “Decimate” in Blender), or compress the glTF file using Draco (as you’ve done here). Reducing the size of animation is a more advanced topic.





I would welcome your input on this question if you have any: stackoverflow.com/questions/51773583/…
– TheProgrammer
Aug 11 at 16:51






By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Popular posts from this blog

Firebase Auth - with Email and Password - Check user already registered

Dynamically update html content plain JS

How to determine optimal route across keyboard