omniobject3d / OmniObject3D

[ CVPR 2023 Award Candidate ] OmniObject3D: Large-Vocabulary 3D Object Dataset for Realistic Perception, Reconstruction and Generation
462 stars 12 forks source link

how to render depth with blender? #32

Closed miaowu99 closed 10 months ago

miaowu99 commented 10 months ago

I have tried tools/render_blender.py to render my own data, but no depthmap rendered, only rgb and normalmap. the version of my blender is 3.2.2, the command is "blender-3.2.2-linux-x64/blender -b -P OmniObject3D/tools/render_blender.py".

miaowu99 commented 10 months ago

Also, I noticed that there seems to be a bug in tools/render_blender.py, line121---123, scene.view_layers["View Layer"] should be scene.view_layers["ViewLayer"]. Or is this a version issue of blender?

miaowu99 commented 10 months ago

Actually, this is because of the blender version, 2.9 is recommended. If with 3.2, please refer to https://projects.blender.org/blender/blender/issues/100417