API Docs for: 1.0.2
Show:

GIScene.ModelLoader Class

Module: GIScene

Loader class to load different formats

Constructor

GIScene.ModelLoader

()

Item Index

Methods

Methods

abort

()

abort function to abort a running request fires an abort event

load

(
  • url
  • format
)

load function to load Models from different formats.

Parameters:

  • url String
  • format Integer

    use constants defined in GIScene.Format

    To get the resulting THREE.Scene() Object add an event listener on 'load':

Example:

 modelLoader.addEventListener('load', onload);
 modelLoader.load(url, format);

Events

abort

beforeLoad

load

The returned event object has a content property with a THREE.Scene() Object containing the model as child.