// simcloth example: nappe.pov // Christophe Bouffartigue (tofbouf@free.fr) //Demo showing the use of simcloth as tablecloth //First render with the clock off. The starting cloth patch is written to the file nappe.cth //Then render the animation with about 40 frames #version unofficial MegaPov 1.0; #macro WriteClothFile(nomfile, n1, n2, nlng, ks, ht) #debug "\nWriting new .cth file\n" #fopen file nomfile write #write(file, n1, ",", n2, ",", nlng, ",", ks, ",\n") #local l1 = nlng*(n1-1); #local l2 = nlng*(n2-1); #local st = seed(1234); #local i=0; #while (i color rgb<1, 0.8 ,0.4> scale <1/10, 1/10, 1/10>} } } camera { perspective location <0.2, 1.2, -2> up y*image_height right x*image_width angle 60 look_at <0.0, 0.5, 0.0> } light_source { -0.2*x+0.5*y-2*z, color rgb 0.5 shadowless } light_source { <5, 10, -5>, color rgb 1.2 spotlight radius 20 falloff 30 tightness 0 point_at 0 area_light <5, 0, 0>, < 0, 5, 0 >, 8, 8 adaptive 1 orient circular } object { Nappe translate .001*y } object { Table scale <.98, 1, .98> pigment { rgb <.8, .5, .1> } } // floor box { <-4, -0.1, -5>, <4, 0, 5> texture { pigment { color rgb .8 }finish { ambient 0.3 diffuse 0.7 }}} // walls box { <-3.1, -0.1, -5>, <-3, 5, 5> texture { pigment { color rgb .8 }finish { ambient 0.3 diffuse 0.7 }}} box { <-4, -0.1, 3>, <4, 5, 3.1> texture { pigment { color rgb .8 }finish { ambient 0.3 diffuse 0.7 }}}