I am trying to visualize a mesh (exported using trimesh.exchange.obj.export_obj()) adding it to pyrender.scene and it is missing color coordinates.
This is the code:
mesh = trimesh.load('/path/to/exported/file.obj')pyrender_mesh = pyrender.Mesh.from_trimesh(mesh, smooth=False)scene = pyrender.Scene()scene.add(pyrender_mesh)pyrender.Viewer(scene_, use_raymond_lighting=True)
The original object model looks like this:
After I add it to the pyrender.scene() I get this in the pyrender.Viewer()
This is not as expected. Could you please help me understand why this is the case? Am I missing something?
Hi,
I am trying to visualize a mesh (exported using
trimesh.exchange.obj.export_obj()
) adding it to pyrender.scene and it is missing color coordinates.This is the code:
mesh = trimesh.load('/path/to/exported/file.obj')
pyrender_mesh = pyrender.Mesh.from_trimesh(mesh, smooth=False)
scene = pyrender.Scene()
scene.add(pyrender_mesh)
pyrender.Viewer(scene_, use_raymond_lighting=True)
The original object model looks like this:
After I add it to the pyrender.scene() I get this in the pyrender.Viewer()
This is not as expected. Could you please help me understand why this is the case? Am I missing something?
pyrender version: 0.1.36 trimesh version: 3.6.38
Thank you.