mwg API
    Preparing search index...

    Function loadModel3D

    • Loads glTF/GLB from an asset path, data/blob/http(s) URI, File, or in-memory byte view. An asset path is resolved through mwg/assets first, the same way every other loader in the framework becomes file://-safe once assets are compiled to data: URIs; a URI that is already resolved is passed through unchanged.

      For a single copy of a model this is the whole job; for several copies of the same model, loadModelContainer3D fetches and parses once and instantiates independent copies from it - calling this a second time for the same source imports and parses it again.

      Parameters

      • source: ModelSource3D
      • scene: Scene
      • Optionaloptions: ImportMeshOptions

      Returns Promise<ISceneLoaderAsyncResult>