Skip to content
This repository was archived by the owner on Nov 12, 2025. It is now read-only.
This repository was archived by the owner on Nov 12, 2025. It is now read-only.

DRACOLOADER.js how to extend the troidjs Loader #187

Description

@bluelemonade

I have a GltfModel Tag

<GltfModel src="./export-bibel-3/Bibel30kPBR_2048.glb" @load="onReady" @beforeLoad="initDraco()" @progress="onProgress" @error="onError" :rotation="{ x: 0, z: 0 }"/>

inside the tag I load the draco js.

    const initDraco = () => {  // loader
      const dracoLoader = new DRACOLoader(); 
      console.log(dracoLoader)
      console.log(GltfLoader);
      dracoLoader.setDecoderPath('/examples/js/libs/draco');
     ???????
    }

but how can put the dracoLoader to the loader like in three.js
loader.setDRACOLoader( dracoLoader );

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions