node package manager


Grunt tasks for Three OBJ

Grunt Three OBJ

Grunt tasks for bulk conversion of OBJ files to Three.js JSON, using three-obj

Install grunt-three-obj next to your project's gruntfile with:

npm install grunt-three-obj

This plugin requires Grunt ~0.4.0

Simply add this line to your project's Gruntfile.js gruntfile:


Then specify your config:

        three_obj: {
            options: {
                /** @optional  - if true the files are converted to binary JSON */
                minify: false
            dist: {
                /** @required  - string (or array of) including grunt glob variables */
                src: ['./static/*/*.obj', './media/*/*.obj', './raw/*/*.obj'],
                /** @optional  - if provided the converted files will be saved in this folder instead */
                dest: './assets/'

Created by Makis Tracend ( @tracend )

Distributed through

Released under the MIT license