POV-Ray : Newsgroups : povray.binaries.images : Constant width grid : Re: Constant width grid Server Time
7 Aug 2024 07:10:45 EDT (-0400)
  Re: Constant width grid  
From: Mike Sobers
Date: 10 Jul 2006 13:05:00
Message: <web.44b28792e4538ab61009749b0@news.povray.org>
"Slime" <fak### [at] emailaddress> wrote:
> See "Re: TRON Game Grid..." in povray.newusers. The grid lines get bigger as
> they get farther away from the camera.
>
>  - Slime
>  [ http://www.slimeland.com/ ]

How's this look? All constant size, but using 3D "gridlines" seems to mimic
the effect better than any 2D pattern on the floor plane, since the pattern
becomes infinitely thin as it approaches the horizon.

-Mike

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

camera {
  location  <-15.0, 2, -15.0>
  direction 1.5*z
  right     x*image_width/image_height
  look_at   <-5.0, -4.0,  10.0>

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

#declare gridtex = texture {
 pigment { color White }
 finish { ambient 1 diffuse 0 }
}
#declare R = 0.025;
#declare i = 0;
#while (i<101)

        cylinder { <-50, 0, -50+i>, <50, 0, -50+i>, R texture {gridtex }
no_shadow}
        cylinder { <-50+i, 0, 50>, <-50+i, 0, -50>, R texture {gridtex }
no_shadow}

        #declare i = i+1;
#end

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


Post a reply to this message


Attachments:
Download 'gridtest.png' (40 KB)

Preview of image 'gridtest.png'
gridtest.png


 

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