POV-Ray : Newsgroups : povray.newusers : Checker board of Checkers : Re: Checker board of Checkers Server Time
29 Jul 2024 14:16:03 EDT (-0400)
  Re: Checker board of Checkers  
From: Mike Williams
Date: 13 Sep 2005 06:00:50
Message: <F9lyAAANEqJDFwcE@econym.demon.co.uk>
Wasn't it Bob Armstrong who wrote:
> I want to make a plane of one unit checkers each of which is made up of
> 1 / 12 scale checkers .
>
>How do I do that ?
>
>Got lots to learn . Amazing program .

With plain coloured pigments:

#include "functions.inc"
  pigment {
    function {0.5*f_checker(x,y,z)+0.25*f_checker(x*12,y*12,z*12)}
    colour_map {
      [0    rgb 0]
      [0.25 rgb x]
      [0.5  rgb y]
      [0.75 rgb z]
    }
  }

With complete textures

#include "functions.inc"
  texture {
    function {0.5*f_checker(x,y,z)+0.25*f_checker(x*12,y*12,z*12)}
    texture_map {
      [0    T_Stone1]
      [0.25 T_Stone10]
      [0.5  T_Stone2]
      [0.75 T_Stone6]
    }
  }

-- 
Mike Williams
Gentleman of Leisure


Post a reply to this message

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