Projecting vertical noise around a tube like object

   868   1   0
User Avatar
Member
4 posts
Joined: Aug. 2017
Offline
Hi, i was wondering how to for example project vertical line noise around a tube like object. The picture i added shows the problem i'm having.

Thanks!

Attachments:
Capture.JPG (131.9 KB)

User Avatar
Member
7737 posts
Joined: Sept. 2011
Offline
Use cylindrical coordinates.

pos = @P - center;
theta = atan2(pos.z,pos.x);
h = pos.y;
r = length(pos-dot(pos,{0,1,0})*{0,1,0});

uv = set(theta,h,r);

You might need to blend two noises with opposite seams to eliminate the seam where theta goes from -PI to PI.
  • Quick Links