// // ******** OBJECTS ******* // // pcm_lua001 union {// debut de l'union de la totale // // //debut objet // PCMHAIR: HAIR EXAMPLES // ********************** // This animation renders separate frames each showing the results of // different hair option values. // // Render with eight frames, non-cyclic. // Aspect ratio is 1:1 (eg. 300x300, 500x500, etc). // SET HAIR OPTIONS FOR EACH FRAME #include "pcmhair.mcr" #switch (int(clock*7)+1) // FRAME 1: SHORT FUR USING triangle_patch_hairs_object #case (1) //1 #declare hair_length = .2; #declare hair_thickness = .005; #declare hair_rotation = x*75; #declare hair_sky = x; // Causes hair to fall in -x direction #declare hairs_per_patch = 500; #declare hair_rotate_to_surface = true; #declare hair_objects_per_unit = 100; #declare hair_texture = texture { pigment {wrinkles color_map {[0 rgb <1, 0, 0>] [1 rgb <1, 1, 0>]} scale .6} finish {phong .3 phong_size 25 ambient 1 diffuse 1}} #declare apply_hair_materials_to_mesh = true; triangle_patch_hairs_object () #break ////////////////////////////////////////////////////////////// /////////////////////////// N°8 NOT USE ///////////////////// // FRAME 8: MULTIPLE NUMBERS (using hair_objects array) #case (8) #declare hair_objects_per_unit = 30; #declare hair_objects = array[3] { text {ttf "Arial", "1", .2, 0 translate <-.25, 0, -.1> scale .3}, text {ttf "Arial", "2", .2, 0 translate <-.25, 0, -.1> scale .3}, text {ttf "Arial", "3", .2, 0 translate <-.25, 0, -.1> scale .3}} #declare hair_pattern_pigment = pigment {hexagon rgb <1, .95, .5>, rgb <1, .98, .6>, rgb <1, .8, .4> scale .3} #declare hair_rotate_to_surface = true; #declare mesh_texture = texture {pigment {rgb <1, .9, .5>}} #end // CREATE CURRENT FRAME USING OPTIONS SET read_mesh ( "1.pcm" ) // scale <1,1,-1>rotate <-90,0,0>// } //fin union général de l'objet // Persistence of Vision Raytracer V3.5 // World definition file. // // Contains 1 lights, 2 materials and 2 primitives. // // This file was generated for POV-Ray V3.5 by // Moray V3.5 For Windows Copyright (c) 1993-2003 Lutz + Kretzschmar // // Date : 08/05/2004 (05.08.2004) // /* The text between these two comments is in MorayPOV.INC and is automatically included in all POV files that Moray exports. */ default { texture { pigment { rgb <1,0,0> } } } /* // Scene Comment This scene was created with Moray V3.4 Beta For Windows. */ // End Scene Comment global_settings { adc_bailout 0.003922 ambient_light <1.0,1.0,1.0> assumed_gamma 1.9 hf_gray_16 off irid_wavelength <0.247059,0.176471,0.137255> max_intersections 64 max_trace_level 10 number_of_waves 10 noise_generator 2 charset ascii } background { color <0.500,0.500,0.500> } camera { // Camera Camera01 location < -2.524, -10.435, 4.009> sky < 0.00000, 0.00000, 1.00000> // Use right handed-system up < 0.0, 0.0, 1.0> // Where Z is up right < 1.34197, 0.0, 0.0> // Right Vector is adjusted to compensate for spherical (Moray) vs. planar (POV-Ray) aspect ratio angle 23.91881 // Vertical 17.939 look_at < 0.039, -0.151, 0.036> } // // ******* L I G H T S ******* // light_source { // Light001 <0.0, 0.0, 0.0> color rgb <1.000, 1.000, 1.000> photons { } translate <0.984692, -14.212549, 19.073553> }