DIYer22 / bpycv

Computer vision utils for Blender (generate instance annoatation, depth and 6D pose by one line code)
MIT License
464 stars 58 forks source link

Render results are not consistent #13

Closed Salingo closed 3 years ago

Salingo commented 3 years ago

Hello,

Recently I met a weird bug when trying to build a virtual scanner.

If I directly run bpycv.render_data() after blender is initialized, the rendered color image looks like this: 0-color

However, the result becomes correct if I run bpycv.render_data() twice: 0-color

Same issue can be found on other models, so maybe it is something wrong inside the render function?

DIYer22 commented 3 years ago

I can't reproduce this bug. I tested on Blender2.83 and Blender2.90, everything look fine.

Could you provide the Blender version and the .blend file for me to reproduce bug?

Salingo commented 3 years ago

Hi, I have created a repository of my project, please refer to line 125 On windows, I have to run render_data twice to avoid the issue. Not sure how it behaves on Linux. Thanks!