S
S
sortfact3332021-04-13 07:19:41
JavaScript
sortfact333, 2021-04-13 07:19:41

Problem with DracoEncoderModule. How to decide?

When using
new DRACOExporter();
I get an error

'THREE.DRACOExporter: required the draco_decoder to work.'

I checked the whole file and still don't understand how it should get DracoEncoderModule.
in DRACOExporter.
After all, there is no loading of this
export code
module in the entire file. But it still works in the three.js examples on the site.
Why then does it not work for me?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
RAX7, 2021-04-13
@sortfact333

DracoEncoderModuleconnected globally by script

<script src="js/libs/draco/draco_encoder.js"></script>

or WASM decoder version
<script src="js/libs/draco/draco_wasm_wrapper.js"></script>

https://github.com/mrdoob/three.js/tree/master/exa...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question