The_Lightmapper icon indicating copy to clipboard operation
The_Lightmapper copied to clipboard

Unable to bake on Blender 3.0

Open phoondos opened this issue 2 years ago • 14 comments

I get this error when trying to bake on Blender 3.0:

Error: Python: Traceback (most recent call last):
  File "C:\Users\phoon\AppData\Roaming\Blender Foundation\Blender\3.0\scripts\addons\thelightmapper\addon\operators\tlm.py", line 52, in invoke
    build.prepare_build(self, False)
  File "C:\Users\phoon\AppData\Roaming\Blender Foundation\Blender\3.0\scripts\addons\thelightmapper\addon\utility\build.py", line 91, in prepare_build
    naming_check()
  File "C:\Users\phoon\AppData\Roaming\Blender Foundation\Blender\3.0\scripts\addons\thelightmapper\addon\utility\cycles\prepare.py", line 18, in init
    set_settings()
  File "C:\Users\phoon\AppData\Roaming\Blender Foundation\Blender\3.0\scripts\addons\thelightmapper\addon\utility\cycles\prepare.py", line 590, in set_settings

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

location: <unknown location>:-1

I also get errors when trying to bake on Blender 2.92, but they're different from these errors, the errors on 2.92 are looking for a png that doesn't exist or something along those lines.

phoondos avatar Dec 04 '21 06:12 phoondos

I also get the same error in blender 3.0

image

kitaedesigns avatar Dec 06 '21 22:12 kitaedesigns

It should be fixed in https://github.com/Naxela/The_Lightmapper/commit/e1e27ee6719473e5ad82f401563830970660c23f (latest master), but I haven't made a new release yet. I'll put a new release in the releases page tomorrow

Naxela avatar Dec 06 '21 22:12 Naxela

ok thanks Naxela!

kitaedesigns avatar Dec 06 '21 22:12 kitaedesigns

WIP Release: https://github.com/Naxela/The_Lightmapper/releases/tag/0.6

Naxela avatar Dec 07 '21 13:12 Naxela

I can't seem to install OpenCV with that wip 0.6 version, the install button seems to work, system log prints 'Sucessfully installed OpenCV!' but on restart, opencv isn't enabled in Blender 3.0

ROBYER1 avatar Dec 31 '21 13:12 ROBYER1

I can't seem to install OpenCV with that wip 0.6 version, the install button seems to work, system log prints 'Sucessfully installed OpenCV!' but on restart, opencv isn't enabled in Blender 3.0

Same here. Manually installed opencv but still no luck.

paperli avatar Jan 26 '22 16:01 paperli

In Blender 3.0.1, I still get the same error msg with WIP 0.6 version.

Python: Traceback (most recent call last):
  File "C:\Users\ME\AppData\Roaming\Blender Foundation\Blender\3.0\scripts\addons\thelightmapper\addon\operators\tlm.py", line 52, in invoke
    build.prepare_build(self, False)
  File "C:\Users\ME\AppData\Roaming\Blender Foundation\Blender\3.0\scripts\addons\thelightmapper\addon\utility\build.py", line 95, in prepare_build
    prepare.init(self, previous_settings)
  File "C:\Users\ME\AppData\Roaming\Blender Foundation\Blender\3.0\scripts\addons\thelightmapper\addon\utility\cycles\prepare.py", line 18, in init
    set_settings()
  File "C:\Users\ME\AppData\Roaming\Blender Foundation\Blender\3.0\scripts\addons\thelightmapper\addon\utility\cycles\prepare.py", line 793, in set_settings
    scene.render.tile_x = 32
AttributeError: 'RenderSettings' object has no attribute 'tile_x'

location: <unknown location>:-1

paperli avatar Feb 10 '22 20:02 paperli

@paperli Hi, the error with RenderSettings tiles should be fixed in the latest commit: https://github.com/Naxela/The_Lightmapper/commit/1f451121f12c54d4a67ed506a9fd635c8c375fa6

I'll add a new WIP build later today

Naxela avatar Feb 11 '22 08:02 Naxela

Still getting that error with that release, using Blender 3.1.0

ROBYER1 avatar Mar 21 '22 12:03 ROBYER1

@ROBYER1 Thanks for reporting this!

Is this occuring with the WIP release (https://github.com/Naxela/The_Lightmapper/releases/tag/0.6.12) or the latest git commit/green-frontpage-button (https://github.com/Naxela/The_Lightmapper/archive/refs/heads/master.zip)

Naxela avatar Mar 21 '22 12:03 Naxela

WIP Release that you linked there (latest as of today) tested with the current Blender 3.1.0 version as of today also

ROBYER1 avatar Mar 21 '22 12:03 ROBYER1

@ROBYER1 Thanks for reporting this!

Is this occuring with the WIP release (https://github.com/Naxela/The_Lightmapper/releases/tag/0.6.12) or the latest git commit/green-frontpage-button (https://github.com/Naxela/The_Lightmapper/archive/refs/heads/master.zip)

Can confirm it works with the latest git zip you linked, could be worth updating the release labelled with 3.1.0 support. I hope Blender stop changing so much that breaks your plugin and thanks for the ongoing support <3

ROBYER1 avatar Mar 21 '22 15:03 ROBYER1

@ROBYER1 Hi, thanks for testing it and reporting back. I've added the latest git as a release: https://github.com/Naxela/The_Lightmapper/releases/tag/0.6.3

Unfortunately, I think it's one of the downsides of supporting the latest Blender version. I know that a lot of addons are beginning to only support the LTS versions, but it's a shame since a lot of nice new features and performance improvements gets implemented with each new release.

Naxela avatar Mar 22 '22 11:03 Naxela

bpy.context.render.tile_x = 256 AttributeError: 'Context' object has no attribute 'render'

lucasjinreal avatar May 05 '23 07:05 lucasjinreal