# Ray-tracing rendering package Model Data File format version 3: A.H.Barnett 21/7/1993 read by programs: r7,r8 (source ray8.c), in /usr/people/barnet/ray Order of component lines of file is irrelevant, a T,S,F,V,C,L character begins reading with the format shown (others are ignored) E stops reading (end of file). # # enclose comments in hashes like this... # # model title string (terminate with newline)... # T Bobbing textured spheres AHB 28/7/1993 # spheres: centre X Y Z, radius, diffuse R G B, texture diff, bump, reflec, transp, refrac index # # cylinders: end X Y Z, end X Y Z, radius, diffuse R G B, texture diff, bump, reflec, transp, refrac index # # facets: vertex number list (-1 terminates), diffuse R G B, texture diff, bump, reflec, transp, refrac index # S 0.000 0.000 2.449 1.5000 0.00 0.20 0.90 81 0 0.50 0.00 0.00 S 2.309 0.000 -0.0 1.000 0.70 0.00 0.00 0 10 0.50 0.00 0.00 S -1.155 2.000 -0.816 2.000 0.70 0.50 0.00 0 11 0.20 0.00 0.00 S -1.155 -2.000 -0.816 2.000 0.00 0.70 0.00 82 0 0.50 0.00 0.00 S 0.000 0.000 0.000 0.449 0.70 0.70 0.70 0 0 0.40 0.00 0.00 F 0 1 2 3 -1 0.20 0.30 0.50 70 21 0.40 0.50 1.00 # verteces: vertex number, X Y Z # V 0 -400.000 -400.000 0.000 V 1 -400.000 400.000 0.000 V 2 400.000 400.000 0.000 V 3 400.000 -400.000 0.000 # lights: light-vector X Y Z, colour R G B # L -0.8 -0.30 0.56 0.6 0.5 0.2 L 0.44 0.87 0.22 0.900 0.900 1.000 # ambient R G B # A 0.10 0.10 0.10 # sky R G B # K 0.10 0.10 0.20 # end of file... # E