POV-Ray : Newsgroups : povray.general : 7x9 Checker board instead of a Infinite plane : Re: 7x9 Checker board instead of a Infinite plane Server Time
29 Jul 2024 22:26:30 EDT (-0400)
  Re: 7x9 Checker board instead of a Infinite plane  
From: kurtz le pirate
Date: 27 Jun 2010 10:47:44
Message: <kurtzlepirate-935A8F.16474427062010@news.povray.org>
In article <web.4c244575fe1b7109ac37d8490@news.povray.org>,
 "samu" <sam### [at] yahoocom> wrote:

> Dear all,
> 
> I'm trying to create a planar scene (with image texture) for an animation and
> part of this plane should be a rectangular checker grid (ex: 7x9).
> 
> I know individually to create planar scenes with checker, but this gives me an
> infinite plane (not 7x9). I need to have the checker grid with dimensions - so
> think i can not apply an image of a checker board (7x9) as a texture to a
> polygon.
> 
> So how to achieve this. Any help appreciated.
> 
> Regards,
> samu


use this macro :

#macro finitePlane (xDim, zDim)
  box {
    <0, 0, 0>, <+xDim, 0, zDim>
    pigment { checker White, Black }
    finish { ambient 0.40 diffuse 0.60 }
    translate <-xDim, 0, -zDim>*0.50
    }
#end

use it in your scene as :

  finitePlane(7,9)


  there's more than one way to do it...
-- 
klp


Post a reply to this message

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