Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The model compressed with draco cannot be displayed in cesium without any error message #10516

Closed
lanvada opened this issue Jul 6, 2022 · 6 comments

Comments

@lanvada
Copy link
Contributor

lanvada commented Jul 6, 2022

I use gltf-pipeline to compress the model. however, the compressed model cannot be displayed in cesium.
this is the input parameter :
gltf-pipeline -i {input} -o {output} -d --draco.compressionLevel=7 --draco.quantizePositionBits=20
I also tested the model in gltf-viewer and it loads correctly in the gltf-viewer
image

I found the following four situations during testing:

  1. The model fails to load in cesium once any quantizeBits parameter is set.
  2. The model loads correctly if only the compressionLevel parameter is set.
  3. Set the unifiedQuantization parameter while setting the quantizeBits parameter. No matter if the unifiedQuantization parameter is set to true or false, the model can be loaded in cesium but cannot be loaded in gltf-viewer
  4. After the unifiedQuantization is set, the model can be loaded in cesium but cannot be displayed correctly (the model will suddenly disappear partially when the camera is close). I guessed that the bounding box of the model might be incorrect, but after I turned on the bounding box display of the tileset, I found that the bounding box of the tile looks fine, and the above display problem will not happen again.

Sandcastle example:
This is my model before compression:
stairs-raw.zip
This is my compressed model:
stairs-draco.zip

Browser:
Edge
Operating System:
Windows

@ggetz
Copy link
Contributor

ggetz commented Jul 6, 2022

@lilleyse Would you be able to take a look at this, or recommend someone else to look into what may be causing this?

If this is strictly an issue with gltf-pipeline or the draco module, we sure ensure the issue is in the right place.

@lilleyse
Copy link
Contributor

lilleyse commented Jul 6, 2022

@ptrgags or @j9liu could you check if this is fixed in ModelExperimental?

@j9liu
Copy link
Contributor

j9liu commented Jul 6, 2022

@lilleyse No, this isn't fixed in ModelExperimental. The raw model shows up, but not the draco-compressed one.

@lilleyse
Copy link
Contributor

lilleyse commented Jul 6, 2022

Ok, I think this is a duplicate of #7471 then

@lilleyse
Copy link
Contributor

lilleyse commented Jul 6, 2022

@lanvada as a workaround could you try --draco.quantizePositionBits=16? There's a bug related bit depths greater than 16.

@lilleyse
Copy link
Contributor

lilleyse commented Jul 6, 2022

I'm going to close since this is a duplicate of #7471.

@lilleyse lilleyse closed this as completed Jul 6, 2022
@ggetz ggetz moved this from Needs triage to Issue/PR closed in CesiumJS Issue/PR backlog Jul 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Status: Issue/PR closed
Development

No branches or pull requests

4 participants