POV-Ray : Newsgroups : povray.newusers : Make a grid : Re: Make a grid Server Time
29 Jul 2024 12:26:02 EDT (-0400)
  Re: Make a grid  
From: Chris B
Date: 14 Dec 2005 09:36:30
Message: <43a02dee@news.povray.org>
"djschorn" <nomail@nomail> wrote in message 
news:web.43a01facccf3f7a0666c08b10@news.povray.org...
> Hi,
>
> I try to make a wire fence like those that are around a field in a farm. 
> I
> try this solution :
>
> texture{
>    pigment{ brick
>             color Gray
>             color rgbt<1,1,1,1>
>             brick_size <0.1, 0.1, 0.10>
>             mortar 0.01
>   }
> }
> On a very thin box.
> Texture is brick with a mortar Gray and the transparent brick color, but 
> the
> result is not very acceptable and realistic...
>
> Is there a solution or a library available to do that kind of things?
>
> Thx a lot
>
>

If you want something crude and simple, but quick to render you might want 
to try the following texture.
It's just a set of stripes overlayed diagonaly with a little bit of 
turbulence to stop it looking too regular.
Regards,
Chris B


light_source { < -150, 10  ,-80> color rgb 1}
camera {location <0.5,0.5,-2> look_at <0,0.5,0>}
#include "Colors.inc"

#declare FenceTexture =
texture{
  pigment{ gradient y turbulence 0.1
    color_map {
      [0.0 color rgbt<1,1,1,1>]
      [0.92 color rgbt<1,1,1,1>]
      [0.92 color Gray]
      [1.0  color Gray]
    }
  scale 0.05
  }
}

plane {z,0.4 texture {FenceTexture rotate z*45} texture {FenceTexture 
rotate -z*45}}


Post a reply to this message

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