Maniphest T103859

Texture baking produces only empty textures in 3.4.1
Closed, Archived

Assigned To
None
Authored By
Erik Arndt (salchipapas)
Fri, Jan 13, 12:16 PM
Tags
  • BF Blender
  • Render & Cycles
  • User Interface
Subscribers
Erik Arndt (salchipapas)
Philipp Oeser (lichtwerk)
Pratik Borhade (PratikPB2123)
Thomas Dinges (dingto)

Description

System Information
Operating system: Ubuntu 20.04.4 LTS
Graphics card: NVIDIA GeForce RTX 3070

Blender Version
Broken: 3.4.1
Worked: 2 months ago?

Short description of error

Texture baking will finish immediately saying "Baking map saved to internal image, save it externally or pack it
" but only produce an empty texture.

Projects that are somewhat older, still seem to work.

Exact steps for others to reproduce the error
Based on the default startup or an attached .blend file (as simple as possible).
Go to shading, select image texture node, press bake.

Event Timeline

Erik Arndt (salchipapas) created this task.Fri, Jan 13, 12:16 PM
Erik Arndt (salchipapas) added a comment.Fri, Jan 13, 12:42 PM

Ok, I just did a regular rendering and got the error message "OpenImageDenoiser is not supported on this CPU".

I turned denoising off and now texture baking works again. I think it would be good if such an error message would be shown during texture baking too.

Philipp Oeser (lichtwerk) changed the task status from Needs Triage to Needs Information from User.Fri, Jan 13, 3:12 PM
Philipp Oeser (lichtwerk) added a subscriber: Philipp Oeser (lichtwerk).

Thx reporting!

This could be improved, yes.
I think you would be getting this message with logging? https://docs.blender.org/manual/en/3.5/advanced/command_line/arguments.html#logging-options

Just to be clear though, does regular rendering finish (just without denoising?) Or does that produce blank images as well?
(if rendering has this "workaround" / "feature drop" then baking should probably have it as well...)

Erik Arndt (salchipapas) added a comment.Mon, Jan 16, 12:00 PM

Yes that's the terminal output:

blender --log

Error: '--log' no args given.
Read prefs: /home/generic_user/.config/blender/3.4/config/userpref.blend
Reloading external rigs...
Reloading external metarigs...
Read blend: /home/generic_user/Downloads/NotBaking.blend
WARN (bpy.rna): source/blender/python/intern/bpy_rna.c:1335 pyrna_enum_to_py: current value '4' matches no enum in 'CyclesRenderSettings', '', 'denoiser'
WARN (bpy.rna): source/blender/python/intern/bpy_rna.c:1335 pyrna_enum_to_py: current value '4' matches no enum in 'CyclesRenderSettings', '', 'denoiser'
WARN (bpy.rna): source/blender/python/intern/bpy_rna.c:1335 pyrna_enum_to_py: current value '4' matches no enum in 'CyclesRenderSettings', '', 'denoiser'
WARN (bpy.rna): source/blender/python/intern/bpy_rna.c:1335 pyrna_enum_to_py: current value '4' matches no enum in 'CyclesRenderSettings', '', 'denoiser'
WARN (bpy.rna): source/blender/python/intern/bpy_rna.c:1335 pyrna_enum_to_py: current value '4' matches no enum in 'CyclesRenderSettings', '', 'denoiser'
WARN (bpy.rna): source/blender/python/intern/bpy_rna.c:1335 pyrna_enum_to_py: current value '4' matches no enum in 'CyclesRenderSettings', '', 'denoiser'
WARN (bpy.rna): source/blender/python/intern/bpy_rna.c:1335 pyrna_enum_to_py: current value '4' matches no enum in 'CyclesRenderSettings', '', 'denoiser'
WARN (bpy.rna): source/blender/python/intern/bpy_rna.c:1335 pyrna_enum_to_py: current value '4' matches no enum in 'CyclesRenderSettings', '', 'denoiser'
WARN (bpy.rna): source/blender/python/intern/bpy_rna.c:1335 pyrna_enum_to_py: current value '4' matches no enum in 'CyclesRenderSettings', '', 'denoiser'
WARN (bpy.rna): source/blender/python/intern/bpy_rna.c:1335 pyrna_enum_to_py: current value '4' matches no enum in 'CyclesRenderSettings', '', 'denoiser'
WARN (bpy.rna): source/blender/python/intern/bpy_rna.c:1335 pyrna_enum_to_py: current value '4' matches no enum in 'CyclesRenderSettings', '', 'denoiser'
WARN (bpy.rna): source/blender/python/intern/bpy_rna.c:1335 pyrna_enum_to_py: current value '4' matches no enum in 'CyclesRenderSettings', '', 'denoiser'
WARN (bpy.rna): source/blender/python/intern/bpy_rna.c:1335 pyrna_enum_to_py: current value '4' matches no enum in 'CyclesRenderSettings', '', 'denoiser'
WARN (bpy.rna): source/blender/python/intern/bpy_rna.c:1335 pyrna_enum_to_py: current value '4' matches no enum in 'CyclesRenderSettings', '', 'denoiser'
WARN (bpy.rna): source/blender/python/intern/bpy_rna.c:1335 pyrna_enum_to_py: current value '4' matches no enum in 'CyclesRenderSettings', '', 'denoiser'
WARN (bpy.rna): source/blender/python/intern/bpy_rna.c:1335 pyrna_enum_to_py: current value '4' matches no enum in 'CyclesRenderSettings', '', 'denoiser'
WARN (bpy.rna): source/blender/python/intern/bpy_rna.c:1335 pyrna_enum_to_py: current value '4' matches no enum in 'CyclesRenderSettings', '', 'denoiser'
WARN (bpy.rna): source/blender/python/intern/bpy_rna.c:1335 pyrna_enum_to_py: current value '4' matches no enum in 'CyclesRenderSettings', '', 'denoiser'
WARN (bpy.rna): source/blender/python/intern/bpy_rna.c:1335 pyrna_enum_to_py: current value '4' matches no enum in 'CyclesRenderSettings', '', 'denoiser'
WARN (bpy.rna): source/blender/python/intern/bpy_rna.c:1335 pyrna_enum_to_py: current value '4' matches no enum in 'CyclesRenderSettings', '', 'denoiser'
WARN (bpy.rna): source/blender/python/intern/bpy_rna.c:1335 pyrna_enum_to_py: current value '4' matches no enum in 'CyclesRenderSettings', '', 'denoiser'
WARN (bpy.rna): source/blender/python/intern/bpy_rna.c:1335 pyrna_enum_to_py: current value '4' matches no enum in 'CyclesRenderSettings', '', 'denoiser'
WARN (bpy.rna): source/blender/python/intern/bpy_rna.c:1335 pyrna_enum_to_py: current value '4' matches no enum in 'CyclesRenderSettings', '', 'denoiser'
WARN (bpy.rna): source/blender/python/intern/bpy_rna.c:1335 pyrna_enum_to_py: current value '4' matches no enum in 'CyclesRenderSettings', '', 'denoiser'
WARN (bpy.rna): source/blender/python/intern/bpy_rna.c:1335 pyrna_enum_to_py: current value '4' matches no enum in 'CyclesRenderSettings', '', 'denoiser'
WARN (bpy.rna): source/blender/python/intern/bpy_rna.c:1335 pyrna_enum_to_py: current value '4' matches no enum in 'CyclesRenderSettings', '', 'denoiser'
OpenImageDenoiser is not supported on this CPU: missing SSE 4.1 support

Refer to the Cycles GPU rendering documentation for possible solutions:
https://docs.blender.org/manual/en/latest/render/cycles/gpu_rendering.html

No device available to denoise on
WARN (bpy.rna): source/blender/python/intern/bpy_rna.c:1335 pyrna_enum_to_py: current value '4' matches no enum in 'CyclesRenderSettings', '', 'denoiser'
Info: Baking map saved to internal image, save it externally or pack it

WARN (bpy.rna): source/blender/python/intern/bpy_rna.c:1335 pyrna_enum_to_py: current value '4' matches no enum in 'CyclesRenderSettings', '', 'denoiser'

I also noticed, and it seems to match with "current value '4' matches no enum in 'CyclesRenderSettings', '', 'denoiser'" that the denoiser in the viewport settings has the "Automatic" option, while the render settings doesn't:

And no, rendering and baking won't even start, both produce an empty image.

Philipp Oeser (lichtwerk) changed the task status from Needs Information from User to Needs Triage.Mon, Jan 16, 12:10 PM
Pratik Borhade (PratikPB2123) closed this task as Archived.Thu, Jan 19, 12:33 PM
Pratik Borhade (PratikPB2123) added a subscriber: Pratik Borhade (PratikPB2123).

OpenImageDenoiser is not supported on this CPU: missing SSE 4.1 support

Hi, as said in the message, for OpenImageDenoiser to work, CPU with SSE 4.1 and up are required.
Rendering/baking is still possible on older CPUs without OpenImageDenoiser. see: T96651#1326281
Closing this ticket for now.
If there is any misunderstanding, feel free to comment or reopen the ticket.

Erik Arndt (salchipapas) added a comment.Tue, Jan 24, 1:20 PM

Could you please read my description again?

The problem was never that the denoiser doesn't work, but that you don't get any warning when baking. You press bake and nothing happens. It took me a week to notice by coincidence that it was because an unsupported feature is turned on by default.

Pratik Borhade (PratikPB2123) reopened this task as Needs Information from Developers.Wed, Jan 25, 3:41 AM
Pratik Borhade (PratikPB2123) added projects: Render & Cycles, User Interface.
Pratik Borhade (PratikPB2123) added a subscriber: Thomas Dinges (dingto).

@Thomas Dinges (dingto) hi, can we add a warning message which is more visible?

Thomas Dinges (dingto) changed the task status from Needs Information from Developers to Confirmed.EditedWed, Jan 25, 9:45 AM
Thomas Dinges (dingto) triaged this task as Low priority.

I checked and there is an error when rendering, but indeed for baking this is only reported to the console.

While this can be improved, in practise we will likely require SSE4 for all of Blender sometimes this year, so wouldn't spend time on this now.

@Erik Arndt (salchipapas) I am curious what CPU do you use?

Erik Arndt (salchipapas) added a comment.Wed, Jan 25, 2:23 PM

I ran this Blender instance in a VM.

Thomas Dinges (dingto) closed this task as Archived.Wed, Jan 25, 2:33 PM

I guess your host CPU is capable of SSE4 but in the vm it's emulated without it. Not a configuration we officially support. Therefore I am closing this.