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

Blender 3.0 support? #35

Closed jch-q closed 2 years ago

jch-q commented 2 years ago

Hi,

I get the following errors if I try the example script with Blender 3.0:

Eevee:

AttributeError: 'RenderSettings' object has no attribute 'tile_x'

Cycles:

    scene.view_layers["View Layer"].cycles, "use_denoising", False
KeyError: 'bpy_prop_collection[key]: key "View Layer" not found'

Are there solutions for this? Will Blender 3.0 get support?

Lotemn102 commented 2 years ago

I also need this. How can i contribute?

DIYer22 commented 2 years ago

@Lotemn102 I haven't started to fix it yet, you can get started directly and then send a pull request. If you have any questions or progress, you can reply under this issue, and I will keep an eye on it. And thank you for your kindness.

lucasew commented 2 years ago

I got it working on blender 3.1 for segmentation generation by removing those two lines

We use Nix to setup bpycv and blender to run everywhere we need so we solved this by applying a patch to the nixpkgs version

https://github.com/DIYer22/bpycv/blob/c5bcd56682f9b91dad777609c2d917b9a9d89b0f/bpycv/render_utils.py#L60