// Persistence Of Vision Ray Tracer Scene Description File // ------------------------------------------------------- // File: @(#)attach.pov // Description: Simulation of cloth. Here used as a cloth fixed at one of its corners. // Features demonstrated: simcloth with constraints // Creation Date: $ 14 Jun 2004, 15:46:08 $ // Last modified: $ 15 Jun 2004, 00:38:21 $ // Author: Christophe Bouffartigue (tofbouf@free.fr) // // First render with clock off to get the initial attach.cth file // Then render with clock on for about 100 frames // // -w320 -h240 +a0.3 // -w320 -h240 +a0.3 -j +kff100 #version unofficial megapov 1.1; // Write the initial .cth file #local Precision = 2; #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 <.9, .85, .4> scale <1/10, 1/10, 1> } finish { ambient .3 diffuse .7 } } } //camera {location <30, 10, -90> angle 30 look_at 0*x } camera { perspective location <0, 0, -70> up y*image_height right x*image_width angle 35 look_at <0.0, 0.0, 0.0> rotate x*10 rotate y*5 translate y*-3 } light_source { 10000*y, color rgb 1.2 rotate -x*30 rotate y*45 } object { Drapeau } text { ttf "crystal.ttf", "MegaPOV" 0.5, <0.0, 0.0, 0.0> h_align_center pigment { rgb <0.847379, 0.810132, 0.698390> } translate z*1 scale <4, 4, 1> }