Skip to content

mesh distortion during rendering #1809

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

Open
Iron-john opened this issue Feb 21, 2025 · 3 comments
Open

mesh distortion during rendering #1809

Iron-john opened this issue Feb 21, 2025 · 3 comments
Labels
question Further information is requested

Comments

@Iron-john
Copy link

Hi there! Thank you for sharing this excellent SDK with us. I have a question. When I convert my model from IFC to GLB and render it, smaller components or meshes in the model appear deformed, as shown in the picture. I rendered the GLB model using another renderer and found that the smaller components were rendered normally without any deformation. I wonder if there are any optimization settings or parameters that could cause this issue, and how I can ensure that smaller model components render correctly. Thanks for your reply!

Image

@Iron-john Iron-john added the question Further information is requested label Feb 21, 2025
@Iron-john
Copy link
Author

Iron-john commented Feb 26, 2025

This is how the model would look on another renderer, and there is no triangulation simplification in the same place. Please help me analyze the cause of this problem. If you need this model, I can email it to you. Looking forward to your reply.

Image

@Iron-john
Copy link
Author

After exploring this, it seems to me that this is xeokit's active rendering optimization strategy. Triangulation simplification is done when the number of triangulation nets reaches a certain number. Below is the raw triangulation mesh count:

Image

The number of triangulation mesh after the model is loaded and consoled by gltfLoader is as follows:

Image

A significant reduction in the number of triangular meshes can be clearly seen, which seems to have been simplified for rendering rates.

When I rendered the smaller sized member with significant deformation in xeokit alone, I found that it did not deform, so it proved that it was not deformation due to the smaller size of the member. The rendering is as follows:

Image

The simplification of the model's triangular mesh was reduced when I took the raw glb data and performed a 3x zoom in and a 3x zoom out when rendering:

Image

If this is xeokit's active render optimization strategy, can I turn it off to get higher render quality (no triangle mesh simplification). Looking forward to your reply.

@paireks
Copy link
Member

paireks commented Apr 10, 2025

Hello @Iron-john,

if you are one of our enterprise users: please log this issue in our Jira with the model attached, so we can check it there :)

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

No branches or pull requests

2 participants