0

Is there any possible way to implement Draco 3D compression in Angular 7? or suggest me with some examples.

Thanks.

aryaa
  • 67
  • 1
  • 2
  • 10

1 Answers1

1

Following files to be installed in your Angular Project.

> npm install three-full
> npm install three-orbit-control

three-full have the draco decoder and encoder file.

have to give the draco encoder path in the following line Example: THREE.DRACOLoader.setDecoderPath('./assets/draco/'); THREE.DRACOLoader.setDecoderConfig({ type: 'JS' });

followed by render coding

It will call draco_wasm_wrapper.js

so it will load your .drc (stl draco encode) file in your app.

Padma Rubhan
  • 293
  • 3
  • 16