three-x3d-loader
v0.4.0
Published
Three loader for the X3D format.
Downloads
370
Readme
three-x3d-loader
Three.js Loader for the X3D format.
Install
$ npm install --save three-x3d-loader
Usage
var THREE = require('three');
var X3DLoader = require('three-x3d-loader');
X3DLoader(THREE);
console.log(typeof THREE.X3DLoader);
//=> 'function'
or just use the parser alone
var THREE = require('three');
var X3DLoader = require('three-x3d-loader');
var parsedXml = {...};
var scene = new THREE.Scene();
X3DLoader.x3dParser(THREE, parsedXml, scene /* Optional. Created if missing */, useImageTexture/* Optional. Default true */);