Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Code doesn't work #8

Open
jfoxworth opened this issue Dec 4, 2014 · 1 comment
Open

Code doesn't work #8

jfoxworth opened this issue Dec 4, 2014 · 1 comment

Comments

@jfoxworth
Copy link

Tried to use the SceneExporter code to export a scene to a JSON object. Got this error.

Uncaught TypeError: Expecting a function in instanceof check, but got undefined

@ashleynguci
Copy link

I got the same problem. The newest solution is THREE has replaced SceneExporter && ObjectExporter with GLTFExporter.

var exporter = new THREE.GLTFExporter();

// Parse the input and generate the glTF output
exporter.parse( scene, function ( gltf ) {
console.log( gltf );
downloadJSON( gltf );
}, options );

Hope it help.

https://threejs.org/docs/#examples/en/exporters/GLTFExporter

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants