Open mohamad-hasan-sohan-ajini opened 2 years ago
I don't know why, but It avoids the error by enabling the post processing:
mesh = o3d.io.read_triangle_mesh('sample.obj', True)
I don't know why, but It avoids the error by enabling the post processing:
mesh = o3d.io.read_triangle_mesh('sample.obj', True)
when you enable post processing, open3d map textures automatically, so "mesh.textures = [o3d.geometry.Image(image)]" is not necessary.
and if you want to render texture by yourself, you have to set material map id.
Checklist
master
branch).Describe the issue
I tried to add texture to a mesh that has been loaded from a
.obj
file, but I get aMemoryError: std::bad_alloc
error. Repeatingo3d.visualization.draw_geometries([mesh])
eventually cause toSegmentation fault (core dumped)
error.Steps to reproduce the bug
Error message
MemoryError Traceback (most recent call last) Input In [7], in <cell line: 1>() ----> 1 o3d.visualization.draw_geometries([mesh])
MemoryError: std::bad_alloc
Expected behavior
Visualize the mesh without any error
Open3D, Python and System information
Additional information
No response