How to export FBX three.js format file?
I found references on the internet showing how an FBX file is converted to three.js, but I can't find how a JSON three.js file is converted to FBX files?
At the moment, there are no exporters for the .FBX file format from a three.js json scene format. You can export to stl or obj. To see some examples of exporters, take a look at the examples in the dev branch. There you can find a folder for exporters: https://github.com/mrdoob/three.js/tree/dev/examples/js/exporters
At the moment, there is a pull request to add FBX loading, but no exporting.
Edit: For completion, a few more links:
FBX SDK Python - Might be helpful in case you want to learn about what is possible with the python bindings for fbx
Three.js Converters - Discusses a python conversion tool to the Three.js format. Might be able to reverse engineer this tool to convert Three.js to FBX.
Related
I an trying to use .dwg file in web app. I have recently find this (https://github.com/aalavandhaann/blueprint-js) works base on three.js file. while dwg is not compatible with three.js is there anyway to convert dwg file to json nad use it in threejs?
I guess not much people need to import three.js json file to Blender, but I lost my original Blender file and want to recreate it from json that I exported earlier.
Latest three.js git only has exporter and no importer.
I tried using old json importer (from this link https://github.com/Bangybug/three.js/tree/master/utils/exporters/blender/2.71/scripts/addons/io_mesh_threejs) but it does not load back UV maps, only model and textures, so I wonder if there is some importer that could do this?
Unfortunately, there currently is no working importer to get three.js models into blender. You could try to load the object in three.js and then export it using the THREE.OBJExporter(). You might have a good chance to import that resulting obj-file into blender.
I have a json file. I guess it exported with Three js exporter addon. I don't have source of this file, but i want to open it in blender again and convert to another format. Is this possible ?
I installed a lot of exporters(this one for example), but didn't find import from JSON. Three.js exporter after install says:
I would like to import JSON(made by three.js) data into Maya.
I found exporter of Maya, but couldn't find importer of Maya.
Is there good way to do it?
There are currently no Three.js JSON importer.
The Three.js JSON is meant to be a runtime format, used by Three.js for rendering in WebGL. Usually, you would export to the JSON format when you want to use it for the web. It is not meant to be a storage format.
There are other more common "interchange" formats like FBX, Collada, or OBJ, that are meant to be for storage and for passing around between different people and software packages.
I want to render 3D graphics files of autodesk (.dwg and .dwf) using three.js but three.js requires 3D data to be in json format. So, I need to convert these files to three.js readable json format. I tried searching on the internet but couldn't find any solution. Can anyone tell me a good converter for these files?
Thanks in advance.
In fact Autodesk already have a converter & wegbl viewer. Go to http://developer.autodesk.com and get a key for View & Data API. There is a server side REST API that allow you to upload a CAD file and convert to a JSON stream. You can hook to it and get the output. Or, even easier, just use the JavaScript client side API to embed the viewer on your website/app
Update
The API was renamed to Model Derivative + Viewer, the first translates the source file (e.g. DWG, RVT and many others) to a web-friendly format that can be viewed on the second, which is based on Three.js (and can be customized).