Vertex colors from weight, becomes black and white?

Hi there, trying to convert a weightmap, selected points n edit mode first to allow for rectangular selections or use fractal textures.
But in this case, just a standard selection, assigned weight map,

Switch to vertex paint and use convert from weight map, those values turns to white and black, and I need it to convert to fully red value, and the other values at zero.

Preferably on top of a vertex color map applied first that is completely black, so it should be a red to black difference.

So how do you convert it to get it to be fully red?

This would be easier too if you could edit the vertex paint with selections, or drag a box selection in vertex paint

Ah…got the selection of a simple box selection working, how did I miss that?
and then go to draw to get the color panel up, and set vertex color while still have that selected.

Now…I still need to convert the weight map to be red in the area painted and not white.

You can use Geometry Nodes to convert the Weight Attribute to a Color Attribute like so:


You can use it as a modifier or a tool - whatever you prefer.

If you apply the modifier you should now have a new color attribute going form black to red according to the weight values:

1 Like

Thank´s but I don´t think that will work, it´s not about getting the weight to show up in material color display, for that you only have to change shading display modes set to attribute.

This have to be baked in the mesh for export to embergen, and the crucial part is to get the weight map converted to the right rgb values within the vertex bake and not by “faking” it with the material shaders.

And…the weight to vertex map is generating black and white values, that will not work for vertex maps in embergen, the main mesh have to have a full black color for unpainted parts, and red, or green, or blue rgb full values for what kind of masking you would want.

Generally full 1 or 255 R values for the first mask in embergen.

Need the converted weight to vertex map to be red and black,not white and black as it is converted.

One way is to paint over the white part but…that is tedious and tricky.

Any material convert weight to color, isn´t going to survive the obj or fbx export to embergen.

First of all …it´s shader materials will not be exported, and it will only retreive some values and convert within the material, the vertex map is still having the wrong colors, so it won´t work.

  • I have no problems of painting red values in there on a map created with black color first.

  • I have solved to show it in display since it´s a matter of choosing shading mode to use attribute, it will then display the vertex colors properly in OpenGL shade.

  • I have solved how to select apply vertex colors, and also with rectangular selection, which icon button doesn´t show up until I switch from face to point mode in vertex paint.

The unsolved problem is to convert the weightmap to vertex maps, and have correct colors truly adjusted, meaning not white and black as it happens, but red and black, or green and black, or blue and black should I need multiply vertex maps for exporting to embergen.

Embergen only sees the vertex pain maps, not the weight maps.
I tried adjusting values of the converted map, but it just changes the whole mesh at once, so I need a way to select those white vertex values and edit that.

:face_with_raised_eyebrow: Did you even try it?

The material setup was just for demonstration purposes. As you can see in the screenshot, circled in red on the right side, there’s the new Color Attribute displaying the weight in black (0.0) and red (1.0)…

1 Like

Can you switch to vertex paint and showcase the display of the colors there, and remove all modifiers and geometry nodes first.

No