My final purpose is to either load the textured obj model into trimesh as a SINGLE TriangleMesh
object, or convert textures into colored point cloud, so that I could just use the colors stored in vertex_colors
property.
When I'm using trimesh.load
, it returns me a scene with multiple geometry. When I do trimesh.load(force='mesh')
call, all the textures get messed up. I also tried to load obj file with open3d and then convert it to trimesh:
tm.Trimesh(np.asarray(mesh.vertices), np.asarray(mesh.triangles), vertex_normals=np.asarray(mesh.vertex_normals)
Using this approach, I'm able to get the 3d model with triangles and vertices, but I don't know how to pass open3d textures to trimesh. I know that trimesh has visual
property that accounts for texturing, however I don't know how to build it from open3d textures.