Page MenuHome

Baking to Vertex Colors bakes without result to look at (if sculpt vertex color layer is present but experimental option is disabled)
Closed, ResolvedPublic

Description

System Information
Operating system: Linux-5.8.0-7630-generic-x86_64-with-glibc2.32 64 Bits
Graphics card: Quadro RTX 6000/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 460.32.03

Blender Version
Broken: version: 2.93.0 Alpha, branch: master, commit date: 2021-03-10 11:41, hash: rB4fece16d458e
(also in 2.92.0 release)
Worked: never (?)
Short description of error
I have no idea what is causing this. An object in the attached example file refuses to bake to vertex colors.

As you can see baking the cube works perfectly fine, when there is no vertex color layer I get an error message.
With the handkerchief object nothing besides the progress bar seems to happen. Not even the error message appears when there is no vertex color layer on the object.

Exact steps for others to reproduce the error
See video and file:

Event Timeline

Philipp Oeser (lichtwerk) changed the task status from Needs Triage to Needs Information from User.Mar 10 2021, 1:20 PM

Enable Sculpt Vertex Colors in Experimental [there is one layer present - if there is, it will try to bake to that]
Remove it, then you get the usual error

Does this work for you?

Ah, yea that's it. Thanks @Philipp Oeser (lichtwerk) !

... It probably shouldn't work like that though, right?

Well, as far as I can tell this is baking to sculpt vertex colors correctly, no?
The fact that these are in a constant fight against each other is a bit of a pain (if enabled, sculpt vertex colors take preference - they display in the viewport when Vertex is chosen for Color in the Shading popup etc even though you might be painting "regular" vertex colors)

Some of this was fixed, see T78225, some of it is mentioned in T72866, this adds up to it

Vertex color drawing in the workbench should perhaps be mode specific. By default use Sculpt Vertex Colors, and when in attribute vertex color mode use the Vertex Colors

Philipp Oeser (lichtwerk) changed the task status from Needs Information from User to Needs Information from Developers.Mar 10 2021, 2:01 PM

Left a note in T72866 about this.

On a technical level, we could check U.experimental.use_sculpt_vertex_colors in baking code an discard that an existing vertex color layer if this is present.
@Brecht Van Lommel (brecht): that would make sense, right? (will happily provide a patch if so)

Checking the experimental option makes sense to me.

Philipp Oeser (lichtwerk) renamed this task from Baking to Vertex Colors does not execute without any error message to Baking to Vertex Colors bakes without result to look at (if sculpt vertex color layer is present but experimental option is disabled).Mar 10 2021, 2:08 PM
Philipp Oeser (lichtwerk) changed the task status from Needs Information from Developers to Confirmed.
Philipp Oeser (lichtwerk) claimed this task.

Yea, I know that the clash between regular and sculpt vertex colors is a separate issue. It's just that in this case, as a user I was not aware that there even was a sculpt vertex color layer and it was baking to that. Having to know that you have to enable an experimental feature (which also isn't exposed in 2.92.0 afaik) seems backwards.

But yea, just checking for the setting sounds good, thank you! :)