Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help  Can I get a water bulge effect on Rope
#1
Hi I'm using Obi Rope for a hose, how can i get a water bulge effects for the rope, like in this video: https://www.youtube.com/watch?v=3T8cKTQrMxk
Reply
#2
(15-10-2020, 01:18 PM)harut Wrote: Hi I'm using Obi Rope for a hose, how can i get a water bulge effects for the rope, like in this video: https://www.youtube.com/watch?v=3T8cKTQrMxk

Simply change particle radius at runtime. See:
http://obi.virtualmethodstudio.com/tutor...icles.html

Changing both color and radius is how this was made using ObiRope:
[Image: intestines.gif]
Reply
#3
I've managed to create the bulges, but I can't change the particle color like in your Gif

I'm setting the color from here
Code:
_rope.solver.colors[solverIndex] = color;

but it dose not have any effect on rope color.

What material do you use, I'm using RedRope + ObiRopeExtrudedRenderer.
Reply
#4
(15-10-2020, 09:36 PM)harut Wrote: I've managed to create the bulges, but I can't change the particle color like in your Gif

I'm setting the color from here
Code:
_rope.solver.colors[solverIndex] = color;

but it dose not have any effect on rope color.

What material do you use, I'm using RedRope + ObiRopeExtrudedRenderer.

You must use a shader that uses vertex colors when rendering, of course. Unity's Standard shader does not. You can find lots of per-vertex colored shaders online, and there's also one included at Obi/Resources/ObiMaterials/StandardVertexColors.shader which mimics the Standard shader.
Reply