Obi Official Forum

Full Version: Rope dynamic color change
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello,

Can some please help me how I would dynamically change the color of a rope like this video?

https://drive.google.com/drive/folders/1...sp=sharing

Thanks in advance
(04-04-2022, 08:35 AM)bubbbles Wrote: [ -> ]Hello,

Can some please help me how I would dynamically change the color of a rope like this video?

https://drive.google.com/drive/folders/1...sp=sharing

Thanks in advance

Hi!

Simply write your desired color values into the solver.colors array. See:
http://obi.virtualmethodstudio.com/manua...icles.html

Also make sure that whatever material you're using to render the rope has a shader that makes use of vertex colors. Otherwise no colors will be shown.
(04-04-2022, 08:41 AM)josemendez Wrote: [ -> ]Hi!

Simply write your desired color values into the solver.colors array. See:
http://obi.virtualmethodstudio.com/manua...icles.html

Also make sure that whatever material you're using to render the rope has a shader that makes use of vertex colors. Otherwise no colors will be shown.

Cool thanks for the quick reply Sonrisa