A grunt task that converts autodesk DAE and FBX scenes to JSON scenes for threejs.
npm install grunt-convertautodesktothree> A grunt plugin that converts autodesk DAE and FBX models to JSON models for threejs.
To simplify the FBX/DAE to Threejs JSON format conversion.
This is a relatively complex installer, which pulls together the following:
Autodesk FBX SDK 2013.3
Python 2.6
pip
virtualenv
Three.js
It checks your system for these components, and downloads and installs them as necessary.
Currently this is written on and tested on OSX. See platform support notes below for further disclaimers.
~0.4.5If you haven't used Grunt before, be sure to check out the Getting Started guide, as it explains how to create a Gruntfile as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:
``shell`
npm install bunnybones1/grunt-convertautodesktothreejs --save-dev
Once the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:
`js`
grunt.loadNpmTasks('grunt-convertautodesktothreejs');
to the data object passed into grunt.initConfig().$3
`js
grunt.initConfig({
convertautodesktothree: {
options: {
// Task-specific options go here.
},
exampleScene: {
options: {
// Target-specific options go here.
models: [
'test/fixtures/parse.autodesk.dae'
]
}
}
},
});
``This is currently written to work on OSX with python 2.6.
Though it should be relatively simple to implement modifications for windows users, it's not something I need right now, so I'm leaving it out. I welcome modifications to support more platforms.