POV-Ray Raytracer Descriptions and Examples by Friedrich A. Lohmüller
   Plants with POV-Ray
Italiano Italiano
Français français
Deutsch Deutsch

Home
- POV-Ray Tutorial

Plants with POV-Ray
   - Trees by POV-Tree
     - POV-Tree examples
     - Textures for POV-Trees
   - Trees by Arbaro
     - Arbaro tree examples
    > Textures for Arbaro

   - Other Plant Examples

  - Ready-made Plant Objects
  - Insert Menu Add-on
 
                                       
 Textures for Arbaro trees      
Uses javascript to show images in higher resolutions

In the Arbaro data files of the tree meshes (i.e. here: sassafras_m.inc)
all meshes are declared without any textures!
Adding textures:
// tree textures:  --------------------------------
#declare Stem_Texture =
texture{ pigment{ color rgb< 0.75, 0.5, 0.30>*0.25}
        normal{bumps 0.75 scale<0.025,0.075,0.025>}
         finish { phong 0.2 }
       } // end of texture
#declare Leaves_Texture_1 =
texture{ pigment{ color rgbf<0.2,0.5,0, 0.1>*0.75}
         normal { bumps 0.15 scale 0.05 }
         finish { phong 1 }
       } // end of texture
#declare Leaves_Texture_2 =
texture{ pigment{ color rgbf<0.2,0.5,0, 0.2>*0.25}
         normal { bumps 0.15 scale 0.05 }
         finish { phong 0.2 }
       } // end of texture
//-------------------------------------------------
#include "sassafras_m.inc"
//-------------------------------------------------
// tree with leaves
union{ object{ sassafras_13_stems
               texture{ Stem_Texture }
             } //---------------------
       object{ sassafras_13_leaves
               double_illuminate
               texture{ Leaves_Texture_1 }
               interior_texture{ Leaves_Texture_2 }
             } //---------------------
       rotate <0,90,0>
       tanslate <0,0,0>
     } // end of union

// tree without leaves
object{ sassafras_13_stems
        texture{ Stem_Texture }
        scale 0.7
        rotate <0,45,0>
        translate <11,0,0>
      } //------------------------  

Tree example 'sassafras' with textures.
Scene description for POV-Ray:
"sassafras_m000.pov" and "sassafras_m.inc" (25.4 MB)
Adding real sky and ground:
Tree example 'sassafras' with textures in a 'real' world.
Scene description for POV-Ray:
"ATree_sassafras_m100.pov" and "sassafras_m.inc" (25.4 MB)
// automn leaves:
#declare Leaves_Texture_1 =
texture{ pigment{ bozo
                  color_map{
                  [0.0 color rgbf<1,0.1,0,0.2>*0.7]
                  [1.0 color rgbf<1,0.7,0, 0.2>]
                           } // color_map
                }  // pigment
         normal { bumps 0.15 scale 0.05 }
         finish { phong 1 reflection 0.00}
       } // end of texture
//-------------------------------------------------
#declare Leaves_Texture_2 =
texture{ pigment{ color rgbf<1,0.5,0.0,0.4>*0.5}
         normal { bumps 0.15 scale 0.05 }
         finish { phong 0.2 }
       } // end of texture
//-------------------------------------------------
Tree example 'sassafras' with autumn textures.
Scene description for POV-Ray:
"ATree_sassafras_m400.pov" and "sassafras_m.inc" (25.4 MB)
top

© Friedrich A. Lohmüller, 2015
homepage:http://www.f-lohmueller.de