Capítulo 212 de 859

Chapter 212: VRMLLoader

Core Idea

A loader for the VRML format.

Code Examples

const loader = new VRMLLoader();
const object = await loader.loadAsync( 'models/vrml/house.wrl' );
scene.add( object );
  • What it demonstrates: Typical usage of VRMLLoader.

Reference Tables

Constructor

Signature
new VRMLLoader( manager : LoadingManager )

Methods

MethodDescription
.load( url : string, onLoad : function, onProgress : onProgressCallback, onError : onErrorCallback )Starts loading from the given URL and passes the loaded VRML asset to the onLoad() callback.
.parse( data : string, path : string ) : SceneParses the given VRML data and returns the resulting scene.

Key Takeaways

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

Connects To