ebeaufay / threedtiles

3DTiles viewer for three.js
MIT License
270 stars 32 forks source link

no local draco decoder found in draco-decoders #29

Closed 3DGISKing closed 3 weeks ago

3DGISKing commented 3 weeks ago

image

3DGISKing commented 3 weeks ago

version 9.1.2

ebeaufay commented 3 weeks ago

That's a warning. The library looks for local draco and ktx .wasm but if they're not packaged, they're fetched online.

The warning about duplicate KTX seems to indicate you already have a ktx loader?

You can specify your own KTXLoader and DracoLoader though you might have to update the versuon, I'll update the readme but it's documented in the jsdocs: https://www.jdultra.com/threedtiles/docs/

3DGISKing commented 3 weeks ago

we do not want to use the local version. it looks like that https://www.gstatic.com/draco/versioned/decoders/1.4.3/ is not valid url.

ebeaufay commented 3 weeks ago

Indeed, alright I'll fix it and document how to specify your own KTXLoader and DracoLoader

ebeaufay commented 3 weeks ago

Hi, I updated the readme in section "Meshopt, Draco and Ktx2"

However you'll have to move to the latest version of the lib.