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
Bug: 3MF crash when read file #4568
Comments
The texture coordinates are not stored correctly. The meshes are having more than 30000 vertices, but we are only assigning 16000 texture coordinates. SO it crashes. This is an Assimp bug. |
Source code of 3MF is too old. i think you need update it @kimkulling |
Which source-code do you mean? The source you can find in the library is the assimp-code. There is no newer code. But I have a better understanding what is going wrong: the texture-coordinates are injected via resource groups. In the face-definition the referenced textures are descriped via their index in the resource group. And this is currently wrong. The current implementation of the 3mf-parser just copies the texture coordinates into the mesh which holds the faces. |
Thanks for answering some properties like colorgroup... have not been updated yet. |
Hm, seems to be an issue with the embedded texture support in 3MF. I will need to take another look onto that! |
Hello @kimkulling and @tungpv90, Bug is still here on current master branch.
Would it be possible to use integer as texture reference, like for other formats? For instance: |
Hello, Would it be possible to skip loading the textures? I wanted to post the same bug before I found this one. But to be honest, in some applications the stored textures are not relevant. Thank you in advance. |
Describe the bug
Error in File ..3MF/XmlSerializer.cpp line 430:
mesh->mTextureCoords[0] = new aiVector3D[group->mTex2dCoords.size()];
Replace:
mesh->mTextureCoords[0] = new aiVector3D[mesh->mNumVertices];
3d.zip
The text was updated successfully, but these errors were encountered: