Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Path3D type error when loading trimesh scene #272

Open
ojauch opened this issue Dec 7, 2023 · 0 comments
Open

Path3D type error when loading trimesh scene #272

ojauch opened this issue Dec 7, 2023 · 0 comments

Comments

@ojauch
Copy link

ojauch commented Dec 7, 2023

I am trying to render this model from the Objaverse dataset using pyrender. I loaded the model using trimesh and got a trimesh.scene.scene.Scene that I was trying to load in pyrender with:

pyrender.Scene.from_trimesh_scene(trimesh_scene)

This raised the following exception:

  File "[redacted]/object_renderer.py", line 19, in render_object
    render_scene = pyrender.Scene.from_trimesh_scene(trimesh_scene)
  File "[redacted]/venv/lib/python3.10/site-packages/pyrender/scene.py", line 574, in from_trimesh_scene
    geometries = {name: Mesh.from_trimesh(geom)
  File "[redacted]/venv/lib/python3.10/site-packages/pyrender/scene.py", line 574, in <dictcomp>
    geometries = {name: Mesh.from_trimesh(geom)
  File "[redacted]/venv/lib/python3.10/site-packages/pyrender/mesh.py", line 190, in from_trimesh
    raise TypeError('Expected a Trimesh or a list, got a {}'
TypeError: Expected a Trimesh or a list, got a <class 'trimesh.path.path.Path3D'>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant