07-04-2020, 06:12 PM
(07-04-2020, 08:30 AM)josemendez Wrote: The solver has a "colors" array containing the color of each individual particle. You could set your own colors here. See:
http://obi.virtualmethodstudio.com/tutor...icles.html
However, there's an undocumented emitter shape (ObiEmitterShapeImage) that lets you specify a texture as the emission surface, and sets each particle color according to the texture. Note that your source texture must be readable (have Read/Write enabled) and use a format compatible with GetPixels, for instance RGBA32.
Thank you very much, this helps! Ive got one more question, is there a way to make the colors more vibrant? Just experimenting with a rainbow pride flag, Ive noticed that the fluid colors are pretty muted compared to the original image.