xxxxxxxxxx
t=Tachyon(camera_center=(-5,-2,2),look_at=(1,0,0),
xres=500,yres=500,)
t.texture('mirror',ambient=.01,diffuse=.01,
specular=.9,opacity=.9,color=(.2,.2,.2))
t.texture('t1',color=(.7,0,0),texfunc=1)
t.texture('t2',color=(0,.2,.8),texfunc=5)
t.plane((0,0,0),(0,0,1),'t1')
t.plane((0,0,3),(0,0,4),'t2')
t.fcylinder((-1,1,1),(2,-2,1),.3,'mirror')
t.sphere((.5,-.5,1),.8,'mirror')
t.sphere((-1,1,1),.5,'mirror')
t.sphere((2,-2,1),.5,'mirror')
t.light((-6,-3,2),1,(2,2,1)); show(t)
No comments:
Post a Comment