Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help  Rope dynamic color change
#1
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
Reply
#2
(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.
Reply
#3
(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
Reply