pyrender icon indicating copy to clipboard operation
pyrender copied to clipboard

Can't render my obj file

Open swallow00001 opened this issue 5 years ago • 3 comments

When I rendering the example obj fiel, everything is fine. But if I trying to render my obj file, it just showing nothing. No warring, no error message. Here is my obj, mtl,and png file.

mix01.zip

Could anyone tell me what happend?

swallow00001 avatar Dec 06 '20 16:12 swallow00001

I also encountered this problem and I have seen some answers like using the default camera pose. I can render my obj file well at default camera pose, but I'm curious about how to get some suitable camera pose parameters for rendering a new view color and depth map? hope you can help @mmatl, thanks~

visonpon avatar Dec 16 '20 05:12 visonpon

I make a stupid misstake,my obj is to huge and camera is too close,so I move my camera backward,it solve my problem. I'm not sure what you mean. Maybe you can try to setting "zfar" and "znear". This is my camera setting OrthographicCamera(xmag=200.0, ymag=200.0, zfar=1000.0,znear=0.1)

swallow00001 avatar Dec 16 '20 18:12 swallow00001

@swallow00001 scene.add() can not only add camera's intrinsic but also camera pose, what I want to know is how to add a proper camera pose so that I can use the mesh combined with the camera intrinsic and extrinsic parameters to offscreenRender the color and depth map.

visonpon avatar Dec 17 '20 01:12 visonpon