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

Model Not Displaying in Cesium After Compressing #5

Closed
pedro-mar opened this issue Oct 23, 2024 · 8 comments
Closed

Model Not Displaying in Cesium After Compressing #5

pedro-mar opened this issue Oct 23, 2024 · 8 comments

Comments

@pedro-mar
Copy link

I encountered an issue when trying to run the Docker command:

$ docker run -v $(pwd):/tiles -it compressor5000

I initially faced errors due to Windows-style line endings (\r\n) in the compress.sh script. I resolved this by converting the line endings to Unix-style using the dos2unix tool while working in WSL.

After successfully running the script, the compressed model was generated without any errors. However, when trying to display the compressed model in Cesium, it did not appear. The model loads without throwing any errors, but remains invisible. In contrast, the original uncompressed model displays correctly.

Any suggestions for resolving this or understanding why the compressed model is not rendering would be greatly appreciated.

@bertt
Copy link
Member

bertt commented Oct 23, 2024

Hi,

Can you try using the existing image?

docker pull geodan/compressor5000
docker run geodan/compressor5000

shall take a look at the line endings

@bertt
Copy link
Member

bertt commented Oct 23, 2024

Fix line endings (when cloning on windows) globally: do

git config --global core.autocrlf false

Or per git clone:

git clone -c core.autocrlf false

@pedro-mar
Copy link
Author

Hi,

Thank you for your prompt response!

I ran the commands as you suggested.

This resolved the Windows line ending issue, and the compressed B3DM models were generated successfully. However, when I attempted to visualize the compressed models in Cesium, they remain invisible. The uncompressed model displays correctly, but the compressed version does not show up at all.

@bertt
Copy link
Member

bertt commented Oct 24, 2024

ok, can you attach one of the input b3dm's?

@pedro-mar
Copy link
Author

Since the dataset is large, I’m sharing a subset for reference. Here are the links:

Please let me know if any other details are needed.

Thank you!

@bertt
Copy link
Member

bertt commented Oct 29, 2024

took a look at a.b3dm in Estrela_recorte.zip\Estrela_recorte\Data - the glb file in the b3dm is already Draco compressed by 'Agisoft Metashape' (I've used https://github.com/bertt/b3dm.tooling to get from b3dm to glb).

@pedro-mar
Copy link
Author

Thank you for taking the time to investigate and for your support. I looked into it further, and you're right, Agisoft Metashape does indeed apply Draco compression by default. Thanks for clarifying that!

@bertt
Copy link
Member

bertt commented Oct 29, 2024

Btw there is an old issue about this #2 to improve the error handling when there is already Draco compression.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants