pyrender icon indicating copy to clipboard operation
pyrender copied to clipboard

problem with texture

Open shaharg1231 opened this issue 5 years ago • 6 comments

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?

shaharg1231 avatar Jul 07 '19 08:07 shaharg1231

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.

LittleYuer avatar Jul 15 '19 17:07 LittleYuer

Same issue here.

atabakd avatar Jan 16 '20 21:01 atabakd

same issue here

zeal-up avatar Mar 04 '20 04:03 zeal-up

Same issue. Has anyone found a solution?

lcit avatar Aug 27 '20 13:08 lcit

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.

lcit avatar Aug 27 '20 15:08 lcit