POV-Ray : Newsgroups : povray.newusers : Corrugated sheet metal : Re: Corrugated sheet metal Server Time
30 Jul 2024 00:30:19 EDT (-0400)
  Re: Corrugated sheet metal  
From: Tom Melly
Date: 1 Dec 2004 09:04:20
Message: <41adcf64@news.povray.org>
"hairball" <rwb### [at] spaminterchangeubcca> wrote in message
news:41acf362$1@news.povray.org...
> Hello Group
>
> I have built a scene including a house (prism) , and I would like to cover
> the prism with rusty corrugated sheet metal, or even painted sheet metal.
> Is there an easy way to do this, or do I hve to model the bumps on the
> corrugated sheet metal, which will be painfully slow?

I wasn't sure if by "model the bumps" you meant model the bumps caused by
the rust, or whether you just meant the shape of the corrugated iron.

If the former, you could add either a noise function or a pigment function
to the following code below.

If the latter, an isosurface can do this very easily (and quickly):

#version 3.6;

#include "colors.inc"

camera {
  location  <0.0, 25.0, -50.0>
  look_at   <0.0, 0.0,  0.0>
}

light_source {
  <0, 0, 0>            // light's position (translated below)
  color rgb <1, 1, 1>  // light's color
  translate <-30, 30, -30>
}

// ----------------------------------------

#declare Thickness = 0.1;
#declare Corr_Iron = function(x,y,z)
{
 abs(y-cos(x))-(Thickness/2)
}

isosurface {
  function { Corr_Iron(x, y, z) }
  contained_by { box {<-15,-2,-25>,<15,2,25>} }
  accuracy 0.001
  max_gradient 4
 pigment{Gray20}
}


Post a reply to this message

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