Select to view content in your preferred language

Support for Draco compression for 3D Models

1240
1
04-26-2020 01:09 PM
AdamMichaleski
Emerging Contributor

I was curious if we can expect support for draco compression anytime soon within ArcGIS JS API 4.x. I noticed that it started being supported in ArcGIS Online & ArcGIS Pro, but as of 4.15 still seems to be unsupported. I get this console warning when trying to render a draco compressed GLTF:

[esri.views.3d.layers.graphics.Graphics3DSymbolLayer] gltf loader was not able to load unsupported feature. Required extensions: KHR_draco_mesh_compression

This would substantially reduce the browser memory we are using, and load times.

Thanks

1 Reply
JonathanStahl
Esri Contributor

Support for Draco-compressed glTF models was added in the recently released version 4.34 of the ArcGIS Maps SDK for JavaScript. It is now possible to load glTFs that require the KHR_draco_mesh_compression extension in both ObjectSymbol3DLayer.resource and Mesh.createFromGLTF().

Note that this does not reduce browser memory usage. Draco compression reduces file size, improving the storage and transmission of 3D data. After the compressed glTF is fetched, however, the geometry is decompressed on the client for rendering.