after12am / eisenscript

A programming language designed for generating awesome structures.
https://after12am.github.io/eisenscript-docs/
MIT License
47 stars 5 forks source link

Add export function to eisenscript-editor #99

Open after12am opened 4 years ago

after12am commented 4 years ago

Just saying - if you get some exporting feature into eisenscript like obj/mtl export or any other which allows groups of objects/materials I can retire BrowserSynth https://github.com/after12am/eisenscript/issues/89#issuecomment-671033333

kronpano commented 3 years ago

Any news on an export function?? I realized that my exporter has a size restriction - I basically put everything in one string and then write it to file. That means you can't export objects larger than ~500MB - which is easily done when you are using spheres.

after12am commented 3 years ago

Can you provide the code to reproduce?

And what kind of format do you want me to implement?

kronpano commented 3 years ago

The code is in my repository under OBJExporter.js I have used .obj and .mtl because it still seems to be a widely used format - if not supported natively pretty much every 3D program or renderer supports .obj and .mtl I have made minor changes to the original so each material is only defined once. There also might be browser limitations on how much data can be exported.

Cheers

after12am commented 3 years ago

@kronpano Implemented OJB exporter. How is it?

image

after12am commented 3 years ago

Added exporter with MTL format. I don't have any application supports MTL format. Could you please check if MTL file is correct?

image