Obi Official Forum
Help Per Particle Coloration - 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 (/thread-1058.html)



Per Particle Coloration - romainD - 08-04-2019

Hi guy's,

I'm a AR/VR developer for industrial applications.
We bought ObiRope 4.0.

i would like to highlight a touched particle with a Controller.
I see in patchNote 3.3, exactly what I want in thread :  Per Particle Color & Thickness.
http://blog.virtualmethodstudio.com/2018/02/obi-3-3-whats-new/

Is there an example of per particle scripting coloration ? 

Thanks.

BTW : Really nice package !


RE: Per Particle Coloration - josemendez - 09-04-2019

(08-04-2019, 03:25 PM)romainD Wrote: Hi guy's,

I'm a AR/VR developer for industrial applications.
We bought ObiRope 4.0.

i would like to highlight a touched particle with a Controller.
I see in patchNote 3.3, exactly what I want in thread :  Per Particle Color & Thickness.
http://blog.virtualmethodstudio.com/2018/02/obi-3-3-whats-new/

Is there an example of per particle scripting coloration ? 

Thanks.

BTW : Really nice package !

Hi there!

You can work with color just as you do with any other particle property (position, velocity, etc). See:
http://obi.virtualmethodstudio.com/tutorials/scriptingparticles.html

For instance:
Code:
for (int i = 0; i < actor.colors.Length; ++i){
            actor.colors[i] = Color.blue;
}



RE: Per Particle Coloration - romainD - 09-04-2019

OK, 
it's working great now ! 

Thanks a lot's ! 

I wasn't using ObiParticleRenderer Gran sonrisa