xeokit / xeokit-sdk

Open source JavaScript SDK for viewing high-detail, full-precision 3D BIM and AEC models in the Web browser.
https://xeokit.io
Other
714 stars 286 forks source link

Geometry Distortion in Model after IFC to XKT Conversion #1415

Closed rafaeldemiranda95 closed 5 months ago

rafaeldemiranda95 commented 6 months ago

Hello, Xeokit team,

I'm encountering an issue where the geometry of a model appears distorted in the xeokit viewer. This issue emerges after converting an IFC file to XKT through a multi-step process - specifically, converting from IFC to DAE, then DAE to glTF, and finally glTF to XKT using version 1.4.0 of the bimspot/xeokit-converter.

Conversion Process:

The IFC file is first converted to DAE. The DAE file is then converted to glTF. Finally, the glTF file is converted to XKT. Upon loading the XKT file into the xeokit viewer, the geometry of the model displays incorrectly.

Expected Result: The expectation is for the model to display with its geometry intact, accurately representing the original IFC file's structure.

Actual Result: Instead, the model's geometry in the viewer is broken or distorted, which compromises the visual integrity of the model. screencast-newtab-2024 03 14-10_34_28-_online-video-cutter com_

This distortion seems specific to this model and conversion process. Other models converted in a similar manner did not show this issue, which suggests a possible issue with the conversion process or this particular model.

I would greatly appreciate your guidance on resolving this geometry distortion or any insights into potential conversion errors that might be contributing to this problem.

Best regards, Rafael de Miranda

paireks commented 6 months ago

Hello Rafael

This jittering looks like precision issue to me at first glance. Is it possible for you to share the problematic XKT file?

Also if you are one of the enterprise users: please log this issue with our Jira.

rafaeldemiranda95 commented 6 months ago

Hello, Wojciech.

Thank you for the suggestion. I'm attaching the problematic XKT file here for your review.

Best regards, Rafael de Miranda

REC.zip

paireks commented 6 months ago

Ok, thank you :)

Just for internal conversation - I could recreate it (using FastNavPlugin_HolterTower example). Model is far from origin: image

rafaeldemiranda95 commented 6 months ago

I'm using the command: IfcConvert --site-local-placement -v -y --use-element-guids REC.ifc REC.dae.

What command should I use to address the issue of the model being far from the origin?

xeolabs commented 6 months ago

@rafaeldemiranda95 try these conversion pipelines:

Note that we never use the COLLADA2GLTF tool anymore in the open source connversion pipeline, because:

xeolabs commented 6 months ago

If you use the proprietary ifc2gltf pipeline, this page is also useful for understanding its options: https://xeokit.github.io/xeokit-model-conversion-tests/ifc-tests.html

Basically, we're always able to avoid jittering in models these days, so it should be a matter of getting the right conversion pipeline working.

rafaeldemiranda95 commented 6 months ago

Thanks, @xeolabs and @paireks. I’ll explore the recommended conversion methods and review additional settings. Appreciate both of your help.