Stecya
Stecya

Reputation: 23266

Export object from three.js to anything

Is there any way to export object from three.js? Any one will do : Collada,Blender,3ds Max,Maya

There is import plugin for blender (in master branch) but it's not working (can't even import exported cube), I tried to look in dev branch for updated version, but there is no importer, only exporter

Consider this workflow : User generates some objects/models in browser(three.js) and than I want to import these objects into 3d modeling software for further editing/post modeling

Upvotes: 3

Views: 2637

Answers (2)

Justin Meskan
Justin Meskan

Reputation: 683

There is a tool I used to use from MrDoob to export my meshes into a format that three.js can easily incorporate. Github to Mr.Doobs export tool https://github.com/mrdoob/three.js/tree/r92

Upvotes: 2

Kevin Kuyl
Kevin Kuyl

Reputation: 1265

Its quite a question. As far as i know 3ds max or maya have no option to import JSON files. You'll have to export as something that 3ds max and maya can import. An OBJ file would be one option.

The first thing you need to do is to create the obj file as a string. The explanation of how an obj file is made can be found here.

Now its just a matter of a few simple loops to get the data from scene.children and generate the obj.

Once you generated the obj, you can send it to a server which saves it.

Upvotes: 1

Related Questions