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 POV-Trees      
Uses javascript to show images in higher resolutions

In a POV-Tree data file of a blob tree ('Save as ...')
there are declared the colors of the trunc (incl. branches and twigs).
Also the colors of the leafs are declared in this file.
We can change these values by opening this include file in POV-Tree,
change the values in the according POV-Tree section and then save the file again.

Another simple method is to overwrite the according values by new declarations.
   For details about the function of all the parameters for blob trees by TOMTREE.inc see the listing in 'tomtree.txt'.

Changing foliage colors:
The basic blob tree as declared by
"povtree_001.inc" with springtime colors:

#include "povtree/trees/povtree_001.inc"
// #declare NEW VALUES here!  
#include "povtree/TOMTREE-1.5.inc"
//-----------------------------------
#declare Tree_01 =
object{ TREE double_illuminate hollow}
//-----------------------------------
object{ Tree_01
        scale  4
        rotate<0, 0,0>
        translate<0, 0.00,0>
      } //---------------------------
Complete scene file for POV-Ray:
"povtree_001_spring.pov" and "povtree_001.inc"
springtime colors
Summer colors:
#include "povtree/trees/povtree_001.inc"
#declare LEAVES=300*BUNCHES;
#declare BOTTOM_COLOR_1=<0.3,0.4,0,0,0>;
#declare BOTTOM_COLOR_2=<0.4,0.5,0,0,0>;
#declare TOP_COLOR_1=<0.3, 0.5,0,0,0>;
#declare TOP_COLOR_2=<0.3, 0.6,0,0,0>;
#include "povtree/TOMTREE-1.5.inc"
//-----------------------------------
#declare Tree_01 =
object{ TREE double_illuminate hollow}
//-----------------------------------
object{ Tree_01
        scale  4
        rotate<0, 0,0>
        translate<0, 0.00,0>
      } //---------------------------
Complete scene file for POV-Ray:
"povtree_001_summer.pov" and "povtree_001.inc"
summer colors
Autumn colors:
#include "povtree/trees/povtree_001.inc"
#declare LEAVES=150*BUNCHES;
#declare BOTTOM_COLOR_1=<0.6,0.4,0,0,0>;
#declare BOTTOM_COLOR_2=<0.7,0.5,0,0,0>;
#declare TOP_COLOR_1=<0.7, 0.5, 0, 0,0>;
#declare TOP_COLOR_2=<0.8, 0.6, 0, 0,0>;
#include "povtree/TOMTREE-1.5.inc"
//-----------------------------------
#declare Tree_01 =
object{ TREE double_illuminate hollow}
//-----------------------------------
object{ Tree_01
        scale  4
        rotate<0, 0,0>
        translate<0, 0.00,0>
      } //---------------------------
Complete scene file for POV-Ray:
"povtree_001_autumn.pov" and "povtree_001.inc"
autumn colors
Winter colors:
#include "povtree/trees/povtree_001.inc"
#declare LEAVES=20*BUNCHES;
#declare BOTTOM_COLOR_1=<0.4,0.2,0.1,0,0>;
#declare BOTTOM_COLOR_2=<0.3,0.2,0.1,0,0>;
#declare TOP_COLOR_1=<0.4, 0.3, 0.2, 0,0>;
#declare TOP_COLOR_2=<0.4, 0.3, 0.2, 0,0>;
#include "povtree/TOMTREE-1.5.inc"
//-----------------------------------
#declare Tree_01 =
object{ TREE double_illuminate hollow}
//-----------------------------------
object{ Tree_01
        scale  4
        rotate<0, 0,0>
        translate<0, 0.00,0>
      } //---------------------------
Complete scene file for POV-Ray:
"povtree_001_winter.pov" and "povtree_001.inc"
winter colors
Winter + snow colors:
#include "povtree/trees/povtree_001.inc"
// winter
#declare LEAVES= 1*BUNCHES;
#declare BOTTOM_COLOR_1=<0.4,0.2,0.1,0,0>;
#declare BOTTOM_COLOR_2=<0.3,0.2,0.1,0,0>;
#declare TOP_COLOR_1=<0.4,0.3,0.2,0,0>;
#declare TOP_COLOR_2=<0.4,0.3,0.2,0,0>;
#include "povtree/TOMTREE-1.5.inc"
//-----------------------------------
#declare Tree_01 =
object{ TREE double_illuminate hollow}
//-----------------------------------
// snow
#declare SUNKEN_TRUNK_COLOR=<1,1,1>*1.3;
#declare RAISED_TRUNK_COLOR=<1,1,1>*1.3;
#declare FOLIAGE_COLOR_AT_BRANCH_END=0;
#declare LEAVES=0*BUNCHES;
#include "povtree/TOMTREE-1.5.inc"
//-----------------------------------
#declare Tree_01s =
object{ TREE double_illuminate hollow}
//-----------------------------------
union{
  object{ Tree_01 }
  object{ Tree_01s scale<1.25,1,1>
          translate<0.015,0,-0.005>}
  scale  4
  rotate<0, 0,0>
  translate<0, 0.00,0>
} //---------------------------------
Complete scene file for POV-Ray:
"povtree_001_snow.pov" and "povtree_001.inc"
winter + snow colors
top

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