====
LWO file(LightWave 3D file) loader for three.js.
please look this demo
THREE.js ##how to use 使い方的な。
-
read 2 .js file , 'three.js(three.min.js)', and 'lwoLoader.js' your HTML file.
-
Declaration THREE.JS Load Manager, and TextureLoader.
like thismanager = new THREE.LoadingManager(); var onProgress = function (xhr) { if (xhr.lengthComputable) { var percentComplete = xhr.loaded / xhr.total * 100; console.log(Math.round(percentComplete, 2) + '% downloaded'); } }; var onError = function (xhr) { }; Texloader = new THREE.TextureLoader();
-
Declaration lwoLoader
var loader = new THREE.lwoLoader(manager, Texloader);
-
load from URL
loader.load(['lwo Data URL', true, true], function (object) { for (var i = 0; i < object.objects.length; i++) { Models.push(object.objects[i]); scene.add(Models[i]); } object = null; }, onProgress, onError);
MIT.