POV-Ray : Newsgroups : povray.binaries.images : My Chessboard : Re: My Chessboard Server Time
3 May 2024 12:25:39 EDT (-0400)
  Re: My Chessboard  
From: alphaQuad
Date: 20 Aug 2008 11:30:00
Message: <web.48ac37bc73b1f45989ae70600@news.povray.org>
Nice glass lesson.
1st rule, make sure you have lots of time or power. 2 hrs for 3 pieces.

pong to the script:
(no board maps)

#include "woods.inc"

#declare darkwood = texture
     {
     T_Wood8
     pigment { turbulence 0.1 }
     finish { ambient .2 diffuse .6 phong .85 phong_size 50 reflection 0.025 }
     scale 2
     }
#declare lightwood = texture
     {
     T_Wood3
     pigment {turbulence 0.1}
     finish { ambient .2 diffuse .6 phong .85 phong_size 50 reflection 0.025 }
     scale .5
     }
#macro board_sq(i,p)
  #if (i)
     object { Round_Box_Union(<-1,-0.01,-1>, < 0,-.25,0>, .01)
      texture { lightwood } translate p}
  #else
     object { Round_Box_Union(<-1,-0.01,-1>, < 0,-.25,0>, .01)
      texture { darkwood } translate p}
  #end
#end
#macro board()
   #local i=0;#local j=0;
   #while (i<8)
      #local j=0;
      #while (j<8)
         board_sq(mod(i+j,2),<-3+j,0,-3+i>)
         #local j=j+1;
      #end
   #local i=i+1;
   #end
#end
board()


Post a reply to this message


Attachments:
Download 'chess2.jpg' (101 KB)

Preview of image 'chess2.jpg'
chess2.jpg


 

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