Capítulo 211 de 859

Chapter 211: VOXLoader

Core Idea

A loader for the VOX format.

Code Examples

const loader = new VOXLoader();
const result = await loader.loadAsync( 'models/vox/monu10.vox' );
scene.add( result.scene.children[ 0 ] );
  • What it demonstrates: Typical usage of VOXLoader.

Reference Tables

Constructor

Signature
new VOXLoader()

Methods

MethodDescription
.load( url : string, onLoad : function, onProgress : onProgressCallback, onError : onErrorCallback )Starts loading from the given URL and passes the loaded VOX asset to the onLoad() callback.
.parse( buffer : ArrayBuffer ) : ObjectParses the given VOX data and returns the result object.

Key Takeaways

  1. VOXLoader extends: Loader
  2. Key methods: load, parse.

Connects To