Open nmielec opened 4 years ago
I second this request.
Each face of a mesh can index the buffers of vertices, texture coordinates and normals independently.
We could gather the face texture and face normal info in some additional face_texture_groups
and face_normals_groups
to complement face_groups
.
Should then these be stored in some additional CellBlock("triangle_texture", ...)
and CellBlock("triangle_normals", ...)
along with CellBlock("triangle", ...)
here?
Hi, thank you for your work on this library.
Concerning wavefront objects, it seems normals and textures are not fully implemented, and I could not find an issue relating to it. The reader and writer correctly handles the normals (vn) and texture (vt) lines, but does not handle the face groups part.
According to the wiki on face elements each polygon's vertice can have a texture and normal id.
The obj reader code is almost there.
item.split("/")
contains data for vertice, texture, and normal. I just don't know in which part of the Mesh object this data coulrd / should be stored.