Projecting vertical noise around a tube like object

   64   1   0
User Avatar
Member
2 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
1644 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