POV-Ray : Newsgroups : povray.binaries.images : Corrugated Roofing : Re: Corrugated Roofing Server Time
9 Aug 2024 17:25:02 EDT (-0400)
  Re: Corrugated Roofing  
From: Bob Hughes
Date: 28 Dec 2004 21:12:22
Message: <41d21286$1@news.povray.org>
If only a normal is used you can only see it as light/shadow changes on an 
otherwise flat surface. Faster to render. Example:
normal {function {abs(x)} sine_wave scale 0.1}

Best way would be to use a sine wave function in an isosurface to get the 
actual shape. Here is a 3' by 16' panel.

#declare Freq=20;

isosurface {
    function {
         y-sin(x*Freq)/25
    }
    contained_by {
     box {<-1.5,-1,-8>,<1.5,1,8>} // could change x and z (W and L)
    }
    max_gradient 2 // adjust
    open // make surface only
    pigment {rgb 1}
    scale 1
}

I see Aaron Gillies has replied, too, about using HF. Which is certainly 
another possibilty, although not as easy and convenient.

Mike Williams has a isosurface tutorial (much suggested reading) showing a 
way to create a thickness, too, if that might matter. See last example at:
http://www.econym.demon.co.uk/isotut/substitute.htm

Bob H.


Post a reply to this message

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