Open NelloF opened 5 months ago
This could work (I did not know that Blender meshes can have vertex colors). But we need to clarify a few things:
vertex_colors
attribute in Blender, not sure how the new attribute system works. Does a vertex always have a single color only in the new system?From the implementation side, I think this should be a separate "Effect Type". Right now we have "Color Ramp", "Image" and "Function". In the output of this mode, neither the color ramp nor the image would take any part, and it would not involve a custom function either, so I think a new effect type named "Vertex Color" would be appropriate.
this is my opinion about 1: i think the color could be the average value for all the color data from that vertex
about 2: not sure but maybe the old "Face Corner + Byte Color" is more compatible if you import a colored mesh from an external software. In any case i think one data type is sufficient to handle this kind of effect even without too many options
about 3: maybe only the first mesh color attribute could be used only (at least for a first version of this feature)
about 4 and 5: i think black should be used to avoid any undesired light both if color info is missing or during transitions. If someone needs another color can add another light effect in the stack for that moment
We have been asking for this possibility for well over a year! And it opens up many new possibilities, two important aspects I would like to be sure can be integrated:
If I have a mesh with X vertices, this approach must be able to retrieve X individual colors
Vertex colors on the mesh can be animated, so color retrieval must be evaluated on each new frame
would be useful to have a light effect mode that inherit the color of the drones from the vertex colors attribute of the formation (if a mesh is used in the formation). So for example if you have a formation mesh with shape of a bird you could have the bird colors on the drones without need of keyframe them