POV-Ray : Newsgroups : povray.newusers : Make a grid : Re: Make a grid Server Time
29 Jul 2024 12:29:45 EDT (-0400)
  Re: Make a grid  
From: Trevor G Quayle
Date: 14 Dec 2005 10:15:00
Message: <web.43a036de7bd1a1bd6c4803960@news.povray.org>
"djschorn" <nomail@nomail> wrote:
> Hi,
>
> 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...
>

If you just want it as atexture on boxes to simulate the look (from a
distance) try using layered gradient patterns:

//start
#declare WireThk=5;
#declare XSpac=200;
#declare YSpac=100;

box{<-5000,0,0> <5000,1500+WireThk,0.1>
  texture{
    pigment{
      gradient x
      pigment_map{
        [0.00 rgbt 0]
        [WireThk/XSpac rgbt 0]
        [WireThk/XSpac gradient y colour_map{[0.00 rgbt 0] [WireThk/YSpac
rgbt 0] [WireThk/YSpac rgbt 1] [1.00 rgbt 1]}]
        [1.00 gradient y colour_map{[0.00 rgbt 0] [WireThk/YSpac rgbt 0]
[WireThk/YSpac rgbt 1] [1.00 rgbt 1]}]
      }
      scale <XSpac,YSpac,1>
    }
  }
}

//end

If you need a slightly more realistic look, you need to play with textures
and even normals.  However for more realistic close-up, you're better to
use csg (ie, cylinders, tori, etc)

-tgq


Post a reply to this message

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