Three.js Loader for the X3D format.
Switch branches/tags
Clone or download
Latest commit 8acb47c Jul 25, 2017

README.md

three-x3d-loader

npm version MIT license

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 */);