|
|
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'
|
|