Skip to content

import lwo 3d file ( LightWave3D format object) to Three.js

License

Notifications You must be signed in to change notification settings

adrs2002/threeLwoLoader

Repository files navigation

THREE.lwoFileLoader

====

Overview

LWO file(LightWave 3D file) loader for three.js.

Demo

please look this demo

Requirement

THREE.js ##how to use 使い方的な。

  1. read 2 .js file , 'three.js(three.min.js)', and 'lwoLoader.js' your HTML file.

  2. Declaration THREE.JS Load Manager, and TextureLoader.
    like this

    manager = 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();
    
  3. Declaration lwoLoader

     var loader = new THREE.lwoLoader(manager, Texloader);
    
  4. 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);
    

LICENCE

MIT.

About

import lwo 3d file ( LightWave3D format object) to Three.js

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published