You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This obj loader looks great. As far as I can tell though, there there is a subtle design oversight in the Python wrapper.
For each face, the Python wrapper returns an integer material ID. The Python wrapper also returns a dictionary of materials (i.e., a mapping from string material names to various material properties). But there is no mapping from integer material IDs to string material names.
Suppose some face has a material_id of 1. I have no way of knowing which material properties this material_id refers to, because Python dictionaries are unordered and cannot be indexed with the material ID.