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

Bug: M3D model import failures due to texture problems #5836

Open
tellypresence opened this issue Oct 22, 2024 · 0 comments · May be fixed by #5848
Open

Bug: M3D model import failures due to texture problems #5836

tellypresence opened this issue Oct 22, 2024 · 0 comments · May be fixed by #5848
Labels
Bug Global flag to mark a deviation from expected behaviour

Comments

@tellypresence
Copy link
Contributor

tellypresence commented Oct 22, 2024

(Note: .m3d format has been deprecated, but the importer still works for some models so reporting problems for future reference)

Error reports and screenshots reflect assimp 20 Oct 2024 commit e4ef891

Bug details

(Updated) This problem was caused by M3D code attempting to access private implementation details in stb_image, which were not available due to the manner in which assimp has set up stb_image implementation to be created in a dedicated central location, which means assimp will "play well" with other projects, but restricts individual projects from accessing private implementation details.

Models which fail to load due to textures

CategoryModelError message
GeometrySG AtlantisValidation failed: aiTexture::pcData is nullptr
Fantasy CastleValidation failed: aiTexture::pcData is nullptr
VehicleATAT WalkerValidation failed: aiTexture::pcData is nullptr
SpaceshipBSG ViperValidation failed: aiTexture::pcData is nullptr
X-WingValidation failed: aiTexture::pcData is nullptr

Models which load OK

Models without textures, bones or animations, tend to have more success...

CategoryModelScreenshot
GeometryMedieval Castlem3d_medieval_castle
VehicleMad Max's V8m3d_madmax

#5834 discusses model which fails to load due to zero meshes
#5837 discusses rigged and animated models which fail to load due to node/bone problems

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Global flag to mark a deviation from expected behaviour
Projects
None yet
1 participant