4
$\begingroup$

this is a follow-up to this other question. I now have a mesh with vertex colors applied as attribute inside the Object Data Properties. I have tried to export this mesh into various formats, including .ply, .fbx and .gltf, which are supposedly saving vertex colors. However if I reimport the file the vertex colors are all lost, as well the original color attribute. So I tried to use the Geometry nodes, thinking that maybe the Vertex Color layer was not properly written into the geometry. I added a socket of type Color to the Group Output tree and I linked the Color Attribute to it, and then I applied the transform. The expectation is that the vertex color becomes a property of geometry itself rather than an external attribute, so removing the attribute would maintain the color of the mesh, however the information is lost. So I'm wondering if the geometry nodes are required at all, and which one is the format that keeps vertex color (some say .obj exporter will not keep it and to use .ply, others say to use .fbx, others collada). Thank you

$\endgroup$
2
  • $\begingroup$ What type of color attribute are you using (domain/datatype) and what version of Blender? Traditional vertex colors (Face Corner + Byte Color) will be best supported since the other kinds were only added in 3.2 and exporters haven't been updated. I believe exporting to glTF or OBJ (non-legacy) should work with all kinds if you're using 3.3/3.4 though. $\endgroup$
    – scurest
    Commented Aug 15, 2022 at 6:07
  • $\begingroup$ That did it! I was using Vertex domain and Color data type, switching to Face Corner and Byte Color correctly exports the vertex colors! @scurest You may want to post an answer and I'll mark it as correct. $\endgroup$
    – zbigniew
    Commented Aug 15, 2022 at 8:39

1 Answer 1

3
$\begingroup$

After hours of trying to solve this same issue, I think I have worked it out. In the Attributes popup, you need to convert the Color attribute to Byte Color, and the Domain attribute to Face Corner.

EDIT: to access the attributes popup, under the +/- icons next to the Attribute > Color, click on the down arrow to access the Convert Attribute menu.

enter image description here

$\endgroup$

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .