POV-Ray : Newsgroups : povray.newusers : function on cylindrical surface : Re: function on cylindrical surface Server Time
29 Jul 2024 04:30:52 EDT (-0400)
  Re: function on cylindrical surface  
From: Mike Williams
Date: 20 Sep 2006 00:48:52
Message: <eLaU9DAEfMEFFwts@econym.demon.co.uk>
Wasn't it marabou who wrote:
>hello,
>
>in a new image i want to render rust on a cylindrical surface. approach until 
>now: rust should be a function with a pattern, pattern should be an height_field 
>or a normal and this should be used with a cylinder.

If you want to use a normal, there's no reason to wrap the normal
function around the cylinder. Just apply the normal to the cylinder
unwrapped.

cylinder {p1,p2,r
  texture {Whatever}
  normal {bozo turbulence 0.65
    octaves 6  omega 0.7 lambda 2 
    rotate<10,20,0>
    scale <0.3, 0.4, 0.2> * 30
  }
}
-- 
Mike Williams
Gentleman of Leisure


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.