Skip to content

NPM version of GLTF exporter of threejs. This can be used inside the es6 projects

Notifications You must be signed in to change notification settings

aalavandhaann/three-gltf-exporter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

three.js glTF exporter

three.js version license GitHub issues

Installation

npm i --save three-gltf-exporter

Description

three.js's r98 GLTFExporter wrapped as a module for easy importing.

Usage

import * as THREE from 'three';
import GLTFExporter from 'three-gltf-exporter';

const loader = new GLTFExporter();

Usage es6

import GLTFExporter from 'three'
var gexporter = new GLTFExporter();

Notes for rollup

In your rollup.config.js and in the commonjs section ensure to include the below for using this library for es6 projects. This might be necessary for any three-based libraries

commonjs({
      include: [
        'node_modules/three-gltf-exporter/**',      
      ]
    }),

For further documentation, see the GLTFExporter docs.

Reporting Issues

Please note that this is just a wrapper for the glTF exporter provided by three.js. Therefore, any issues regarding the loader should be reported directly via the three.js issue tracker. For issues directly related to the wrapper or this package specifically, feel free to contact me.

About

NPM version of GLTF exporter of threejs. This can be used inside the es6 projects

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published