Skip to content

Load mesh via trimesh object does not work. #307

@Byson-source

Description

@Byson-source

Hi! Thanks for your great work!

I try to load mesh file via trimesh. When looking at mesh in trimesh viewer, it looks fine. But once I load same mesh for pyrender, this generates significant amount of artifacts.

Trimesh viewer
Image

pyrender viewer:

Image

My code is following:

from pathlib import Path

import pyrender
import trimesh
root_dir=Path(f"...")
tm=trimesh.load(str(root_dir/"scene_00009/colored_mesh.ply"))
tm.show()
mesh=pyrender.Mesh.from_trimesh(tm)

light_val=0.5
scene = pyrender.Scene(ambient_light=[light_val,light_val,light_val])
scene.add(mesh, "mesh")

pyrender.Viewer(scene, use_raymond_lighting=True)

You can find the mesh file from following GoogleDrive link:
https://drive.google.com/file/d/19n0CAq0AL4kz9hso1tibL2N-3nHISEuO/view?usp=sharing

Best

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions