POV-Ray : Newsgroups : povray.binaries.images : My Chessboard : Re: My Chessboard Server Time
3 May 2024 17:31:57 EDT (-0400)
  Re: My Chessboard  
From: alphaQuad
Date: 21 Aug 2008 15:05:00
Message: <web.48adbb1c73b1f4598ddaeb500@news.povray.org>
Mike Williams <nos### [at] econymdemoncouk> wrote:
> Wasn't it alphaQuad who wrote:
> >what is
> >
> >*** ASZTALLAP ***

>
> ASZTALLAP is the table on which the chess board is standing. I thought
> you had that figured out since you've given it a sensible wood texture.
>

> reflections of it inside some of the pieces, particularly the white
> pawns.
>
> --
> Mike Williams
> Gentleman of Leisure

cool thanx, just a simple 1.5 language puter user here.

I did notice first board I posted was repeating texture, fixed it like this:



#macro board_sq(p)
     object { Round_Box_Union(<-1.01,-0.01,-1.01>, < 0.01,-.25,0.01>, .01)
      translate p }
#end
#macro boardwhite()
   #local i=0;#local j=0;
   #while (i<8)
      #local j=0;
      #while (j<8)
         #if (mod(i+j,2)) board_sq(<-3+j,0,-3+i>) #end
         #local j=j+1;
      #end
   #local i=i+1;
   #end
#end

#macro boardblack()
   #local i=0;#local j=0;
   #while (i<8)
      #local j=0;
      #while (j<8)
         #if (!mod(i+j,2)) board_sq(<-3+j,0,-3+i>) #end
         #local j=j+1;
      #end
   #local i=i+1;
   #end
#end
union {
  boardwhite()
  texture { lightwood }
}
union {
  boardblack()
  texture { darkwood }
}

no pic, waiting for a better one @ adaptive 0 but looks like adaptive 50


Post a reply to this message

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