πŸ”ƒ
Compress
Learn how to compress assets with a query.
The Compress API is only available in the Enterprise plan.
post
https://api.echo3D.co
/compress
​Compress a 3D asset

Action Descriptions and Priority

1. Resizing

If a Compress API call is sent with resize=true,the model will be resized based on the ratio value given.

2. Polygon Reduction

If a Compress API call is sent with no resize parameter or with resize=false, the model will be decimated (poly reduced) based on the ratio value given.

3. Draco Compression

If a Compress API call is sent with no resize parameter or with resize=false and compressGlb=true, the model will be go through lossless Draco compression which dramatically reduces file size. Only supports a .glb output and works with selected 3D players.

4. gltfpack

If a Compress API call is sent with no resize parameter or with resize=false, no compressGlb parameter orcompressGlb=false, and gltfpack=true, the model will be optimized using the glftpack tool. You should send the file (in .gltf or .glb format) using the fileToCompress parameter, or the entry ID or the Poly model ID using the modelId parameter. You can also add command-line parameters for gltfpack:
    cc to produce a compressed output.
    tc to compress textures.

​

Last modified 2d ago