melvinw / tracer

ISC License
0 stars 1 forks source link

[Feature Request] Support Wavefront OBJ as Input #2

Open melvinw opened 2 years ago

melvinw commented 2 years ago

GLTF isn't the only 3D model format, and it is somewhat complex. Support for another popular format like Wavefront .obj files would be nice to have.

Whoever picks up this feature could probably use tinyobjloader to do the heavy lifting.

It should expose a similar interface as the current GLTF loader. https://github.com/melvinw/tracer/blob/d64640d8be8f81149ece84851a432def38007c3b/include/gltf_loader.h#L9-L11

This feature would be a good way to familiarize yourself with the build system, as it will require adding a new submodule for and building a new dependency. Similar to how tinygltf is included. https://github.com/melvinw/tracer/blob/d64640d8be8f81149ece84851a432def38007c3b/meson.build#L25-L30
https://github.com/melvinw/tracer/blob/d64640d8be8f81149ece84851a432def38007c3b/meson.build#L36