Skip to content

dividab/three-x3d-loader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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