mmatl / pyrender

Easy-to-use glTF 2.0-compliant OpenGL renderer for visualization of 3D scenes.
http://pyrender.readthedocs.io/
MIT License
1.29k stars 224 forks source link

problem with texture #42

Open shaharg1231 opened 5 years ago

shaharg1231 commented 5 years ago

when I try to render 3d file using the same code as in the example:

import trimesh import pyrender fuze_trimesh = trimesh.load('examples/models/fuze.obj') mesh = pyrender.Mesh.from_trimesh(fuze_trimesh) scene = pyrender.Scene() scene.add(mesh) pyrender.Viewer(scene, use_raymond_lighting=True) The 3d object is shown without the texture. But when I try it on the model 'fuze.obj' it works just fine. What could be the problem?

LittleYuer commented 5 years ago

Same issue here.

I suppose it is because there are more than one texture images for the object.

@mmatl, Could you please have a look?

Thanks.

atabakd commented 4 years ago

Same issue here.

zeal-up commented 4 years ago

same issue here

lcit commented 4 years ago

Same issue. Has anyone found a solution?

lcit commented 4 years ago

I found the problem in my case. I do not know if this is the same issue the other had but worth mentioning it.
In my case I could render the model but it was all black. The problem was the intensity of the light which was to low. The light in the example is pyrender.SpotLight (intensity=3) and it is placed where the camera is. Since the model in my .obj file is much bigger, the distance to the camera is larger therefore the intensity has to be higher as well.

Jiangshuyi0V0 commented 1 month ago

same issue here