POV-Ray : Newsgroups : povray.general : Trees.. Again : Re: Trees.. Again Server Time
12 Aug 2024 21:18:21 EDT (-0400)
  Re: Trees.. Again  
From: Spider
Date: 8 Jan 1999 17:47:43
Message: <36968A34.12D4EDCD@bahnhof.se>
Hmmm..
It seems I forgot to add the textures and an example... Silly me ? 
Nah, If you look at the output file, you see it wants a texture...
Here is an example (Stolen from the original)
well... You see what it is for.



/////

#include "colors.inc"
#include "textures.inc"

#declare PdV=< -0 , 50 , -150>;
camera {
  location  PdV
  direction <0.0 , 0.0 , 1 >
  up        <0 , 1 , 0>
  right     <4/3 , 0.0  , 0.0>
  look_at   < 0 , 11, 0>
}
#declare colTree=rgb<0.52,0.46,0.43>;

light_source { <-300, 1040, -520> color colTree*2}
light_source { <-1000, 1040, -1020> color rgb<1,.5,0.3>}
light_source { PdV color  colTree}

#declare txtTree=
texture{
  pigment{
    granite
    color_map{
      [0 color colTree*2]
      [0.5 color colTree*1]
      [1 color colTree*0.5]
    }
  }
  normal{wrinkles 2 scale 0.3}
  finish{ambient 0.2}
  scale <1,6,1>*0.3
}

background{White}

#include "tree01" #include "tree02" 

#declare m = 30;
union {
  object{ tree01 rotate <0,rand(s)*360,0> translate < m, 0, 0> }
  object{ tree02 rotate <0,rand(s)*360,0> translate <  -m, 0, 0> }
  translate <0, -20 ,-m>
  rotate <0,45,0>
}


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.