pyrender icon indicating copy to clipboard operation
pyrender copied to clipboard

cannot import .gltf model

Open DOEHOONLEE opened this issue 3 years ago • 0 comments

I tested loading an .obj model with the following code and it worked fine.

import trimesh
import pyrender

fuze_trimesh = trimesh.load('some_obj_file')
mesh = pyrender.Mesh.from_trimesh(fuze_trimesh)
scene = pyrender.Scene()
scene.add(mesh)
pyrender.Viewer(scene, use_raymond_lighting=True)

However, I could not load a .gltf file like this. Is there some other codes that I need to add?

Thanks! Happy Coding!

DOEHOONLEE avatar Nov 18 '22 08:11 DOEHOONLEE