Obi Official Forum

Full Version: Draw custom spiral
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
How I can draw a spiral on the rope? 
Like this:

https://encrypted-tbn0.gstatic.com/image...Q&usqp=CAU

How to use custom shaders with the rope? Is there any sample?
(02-10-2022, 09:58 AM)lacasrac Wrote: [ -> ]How I can draw a spiral on the rope? 
Like this:

https://encrypted-tbn0.gstatic.com/image...Q&usqp=CAU

How to use custom shaders with the rope? Is there any sample?

Hi!

Ropes are just meshes, rendered using a MeshFilter/MeshRenderer. So you write shaders for them like you do for any other object in Unity, there’s no difference whatsoever. Nothing specific you need to do in order to write a shader “for ropes”.

Just write a shader that draws a spiral. If you’re new to shaders I’d suggest checking a few tutorials on the subject.

Kind regards,