Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Blender to json export file size #6455

Closed
anothercoder2 opened this issue Apr 25, 2015 · 2 comments
Closed

Blender to json export file size #6455

anothercoder2 opened this issue Apr 25, 2015 · 2 comments

Comments

@anothercoder2
Copy link

I exported a 1mb blender model of a prescription bottle as a three.js json model and the file size became 29mb.
So theoretically although we could convert a blender model to json the resulting file size is impractical to use for a online application.

@repsac
Copy link
Contributor

repsac commented Apr 26, 2015

Instincts tells me there has to be some missing details. Using the asset Arizona from Project London I can not recreate the same problem. This is the asset in Blender:
screen shot 2015-04-26 at 2 18 50 am

I converted it with the follow parameters (from the export log)

2015-04-26 02:15:50,229 - Three.Export - DEBUG: Scene().__init__(/Users/ed/Downloads/ProjectLondonBlenderRigs/Arizona/Arizona.json, {'faces': True, 'bones': False, 'hierarchy': False, 'vertices': True, 'copyTextures': False, 'textureFolder': '', 'geometryType': 'geometry', 'compression': 'None', 'scene': True, 'frameStep': 1, 'mixColors': False, 'colors': False, 'lights': False, 'animations': 'off', 'normals': True, 'faceMaterials': False, 'logging': 'debug', 'influencesPerVertex': 2, 'indent': True, 'scale': 1.0, 'frameIndexAsTime': False, 'enablePrecision': True, 'precision': 3, 'materials': True, 'addon_version': (1, 4, 1), 'uvs': True, 'cameras': False, 'maps': False, 'morphTargets': False, 'embedAnimation': True, 'skinning': False})

Resulting in a .json file less than half the size of the original .blend file.
screen shot 2015-04-26 at 2 19 10 am

The exported asset can be downloaded from here.

And loaded into the editor just fine
screen shot 2015-04-26 at 2 20 22 am

Not really sure where to go from here without any other details.

@donmccurdy
Copy link
Collaborator

I think this can be closed since it's not reproducible — if the issue is still occurring please provide a .blend file and we can investigate. You can also export to glTF using glTF-Blender-Exporter, and probably reduce the filesize further.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants