How to load a model with both KHR_draco_mesh_compression and CESIUM_primitive_outline extensions?


I’m trying to use Cesium to load a 3dTiles model with outlines, and the geometry of this model is compressed by draco.

I stored the compressed geometry as a bufferView, and the outlines data as a separate bufferView (outline indices are not compressed). The primitives extension part in the mesh includes both two fields: KHR_draco_mesh_compression and CESIUM_primitive_outline, like this:

The model generated by the above method does not load properly in Cesium.

Here is the 3dTiles model generate by my method. (3.3 KB)

The Cesium version is 1.96

What I want to know is

  1. how to properly generate the draco-compressed model with outlines?
  2. are there options or settings in CesiumJS I can use to properly control it?


@SunnyBily I opened a PR to fix this bug: Fix for uncompressed draco attributes by lilleyse · Pull Request #10686 · CesiumGS/cesium · GitHub