3
$\begingroup$

'Vertex' painting is actually face-corner painting. So per-face colors are possible, can be picked up by an Attribute input node in shader-trees.

Here are 2 color-attribute layers on a cube, both registered as Face Corner > Color in its 'Data' tab > 'Color Attributes' panel.

pcol has been painted, per face. That's successfully interpreted by the shader:

enter image description here

col has been generated and captured, per face, in a GN tree:

enter image description here

The spreadsheet shows that face-corners have independent colors, per-face..

And yet this time, the colors are interpolated across vertices by the shader.

enter image description here

.. in the latest 3.2b, at posting time.

Have I just made a silly slip, or are we waiting for further development?

$\endgroup$
2
  • 1
    $\begingroup$ The silly slip is that the Viewer doesn't show the output of the group, remove the viewer and now you can look at the output - with the pcol being only on the point domain. :) $\endgroup$ Jun 4 at 20:42
  • 1
    $\begingroup$ @MarkusvonBroady That's 2 silly slips! Every now and then, it's good to be taken back to when I started using Blender, and tore what little remained of my hair out with frustration :) $\endgroup$ Jun 4 at 20:51

1 Answer 1

5
$\begingroup$

You just need to change attribute domain to face corner:

enter image description here

Attribute saved in this domain, if you capture attribute from faces and put it into vertex - they will be converted from face to vertices, leading to unexpected result.

Face corner domain:

enter image description here

Face domain:

enter image description here

$\endgroup$
3
  • $\begingroup$ Hi Crantisz! Thanks! .. but I would expect per-face colors, as shown in the spreadsheet, just the same as you get with 'vertex' painting? The reason for capturing on the Face domain is to get the same random color in all corners of a face. $\endgroup$ May 27 at 9:53
  • $\begingroup$ Yep, If you set faces as a domain $\endgroup$
    – Crantisz
    May 27 at 9:54
  • $\begingroup$ No, it's not here! It is in properties panel inside Geometry Nodes editor Group tab $\endgroup$
    – Crantisz
    May 27 at 9:59

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.