I am working on a custom node that transfert info mesh onto particle. And i am stick to a problem. I am trying to transfert vertexcolor of the given mesh onto particle emitted from surface. I am trying to do it because i would like to use "dynamic/animated" vertexColor. I know that it's possible to bake vertexColor and use bake sequence image, but i would like to avoid this step :)
Currentlyi have a custom node where i inject the birth particle position and a source mesh(for getting vertexColor) and the i reinject the new Color into the particleShape node. I get the different array, this is not a problem, but how i can do to transfert the vertex color onto particle?
I was thinking to do it by finding the closestPoint by testing the vertex mesh position and birth Position of the particle but i am not sure if it's the right way do this and i think this can be very expensive in memory if i have a lot of particle.
Perhaps i can also use the uv coord of the particle at emission and use the uv coord of the mesh?
Anybody have an idea or way to go?