Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Coloring each particle separately
#3
(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.


Attached Files Thumbnail(s)
   

.jpg   download (10).jpg (Size: 4.95 KB / Downloads: 17)
Reply


Messages In This Thread
Coloring each particle separately - by tr5414 - 06-04-2020, 11:57 PM
RE: Coloring each particle separately - by tr5414 - 07-04-2020, 06:12 PM