嗨,我想用GLTF和draco。我得到了物体,但是当把它添加到场景中时,它说:
components:gltf-model:warn THREE.GLTFLoader: No DRACOLoader instance provided.
我的dracoDecoderPath设置在我的场景中:
<a-scene sceneviewer gltf-model="dracoDecoderPath: https://www.gstatic.com/draco/v1/decoders/;" vr-mode-ui="enabled: false" embedded arjs='sourceType: webcam; sourceWidth:1280; sourceHeight:960; displayWidth: 1280; displayHeight: 960; debugUIEnabled: false;'>
发布于 2022-12-02 13:05:15
AFRAME.registerComponent('sceneviewer', { init: function () {