OBJ importer plugin.
Loads Wavefront OBJ (
*.obj) files, with the following supported features:
- multiple objects
- vertex positions, normals and 2D texture coordinates
- triangles, lines and points
Additionally, if you're using Magnum as a CMake subproject, do the following:
set(WITH_OBJIMPORTER ON CACHE BOOL "" FORCE) add_subdirectory(magnum EXCLUDE_FROM_ALL) # So the dynamically loaded plugin gets built implicitly add_dependencies(your-app Magnum::ObjImporter)
To use as a static plugin or as a dependency of another plugin with CMake, you need to request the
ObjImporter component of the
Magnum package and link to the
find_package(Magnum REQUIRED ObjImporter) # ... target_link_libraries(your-app PRIVATE Magnum::ObjImporter)
Meshes are imported as MeshPrimitive::
Polygons (quads etc.) and material properties are currently not supported.
- class AbstractImporter
- Base for importer plugins.