Obi Official Forum
Help Per Particle Coloration & thickness - Printable Version

+- Obi Official Forum (https://obi.virtualmethodstudio.com/forum)
+-- Forum: Obi Users Category (https://obi.virtualmethodstudio.com/forum/forum-1.html)
+--- Forum: Obi Rope (https://obi.virtualmethodstudio.com/forum/forum-4.html)
+--- Thread: Help Per Particle Coloration & thickness (/thread-1154.html)



Per Particle Coloration & thickness - akuei2 - 04-05-2019

Help, Someone can give me a sample script of Coloration & thickness for Obi Rope?
I'm coding idiot ... dunno how to achieve those cool effect as blood vessel ...



[Image: intestines.gif]


RE: Per Particle Coloration & thickness - akuei2 - 07-05-2019

(04-05-2019, 02:58 AM)akuei2 Wrote: Help, Someone can give me a sample script of Coloration & thickness for Obi Rope?
I'm coding idiot ... dunno how to achieve those cool effect as blood vessel ...



[Image: intestines.gif]

bump


RE: Per Particle Coloration & thickness - josemendez - 07-05-2019

Hi there,

Have you tried reading the particle scripting manual page? Guiño
http://obi.virtualmethodstudio.com/tutorials/scriptingparticles.html

The ObiRope component has arrays containing per-particle properties, that you can get/set directly. These blood vessels were done using Mathf.Sin() to modify the colors array and the principal radii according to a sine wave.