pyrender
pyrender copied to clipboard
problem with texture
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?
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.
Same issue here.
same issue here
Same issue. Has anyone found a solution?
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.