Skip to content

[Examples Viewer Tutorial] Can't find a supported format #375

@alanjfs

Description

@alanjfs

Hi @mosra,

I'm enjoying learning about Magnum through your very well made example library, however I'm having some issues with the Examples Viewer.

Namely, the files I'm handing it doesn't appear to load.

examples_viewer.exe ship.obj
# Importing mesh 0                                                                                                   
# Trade::ObjImporter::mesh3D(): polygons are not supported                                                           
# Cannot load the mesh, skipping

Fair enough, assuming "polygon" means "quad", converting the model to triangles.

examples_viewer.exe shipTri.obj
# Importing mesh 0                                                                                                   
# Trade::ObjImporter::mesh3D(): unknown keyword                                                                      
# Cannot load the mesh, skipping 

Hm, allright. Maybe ZBrush is doing something different to the format that the ObjImporter doesn't like.

examples_viewer.exe shipMaya.obj
# Importing mesh 0                                                                                                   
# Cannot load the mesh, skipping

Hm, no message about why it didn't load this time. Maybe if I adjust the export settings?

image

examples_viewer.exe shipMayaAfter.obj
# Importing mesh 0                                                                                                   

Success! I made note of the description in the docs about not supporting automatic generation of normals and materials and figured maybe this was it.

This little adventure took me "out of the zone" in experiencing your set of tutorials, I think the tutorial could be improved by providing an example model. (Or if there is one, increase its visibility). You're welcome to have my ship model if you'd like; alternatively I was looking to find the model of Suzanne, like in the screenshot at the beginning of the tutorial. I think that would have been great, and I think it's open source as well?

The one I found (here) was in gltf format, which I thought would have worked, however..

examples_viewer.exe scene.gltf
PluginManager::Manager::load(): plugin GltfImporter is not static and was not found in C:/examples_viewer/build/Debug/magnum-d/importers                                                                   
Trade::AnySceneImporter::openFile(): cannot load GltfImporter plugin

And sure enough, there wasn't a plug-in by that name in there. Despite having gotten Magnum off of vcpkg magnum[*] (see #373) Also unsure which is mispelled, the error message or the documentation, referring to TinyGltfImporter as opposed to GlftImporter.

In any case, hope it helps, and great work!

Metadata

Metadata

Assignees

Projects

Status
Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions