prev index next 
Making Difficult Objects 
 POV-Ray Tips, 
 Tricks, and Techniques
Distant Coastline? 
 
jec needs a background for his scene: I'm trying to make a picture of a lake with an opposite coastline with POV-Ray.  I've been having trouble making a good one, and I'd like some help.  This is basically what I want it to look like: 
  1. lots of trees, not rocky/sandy 
  2. looks as if it is about 2 miles away 
  3. Probably doesn't help, but I'm trying to make it look like one of the finger lakes in western NY state. 
 
John VanSickle replies:
If you're shooting for realism, use a height_field to simulate the ground, a plane to make the water's surface, and then design a few different kinds of trees and declare a whole bunch of them where you want them. 

If the trees are far enough away from the viewpoint, they don't need to be accurately represented-- this might do the trick: 

union { 
  sphere { y*2,1 
    pigment { rgb <.25,.5,0> } 
    normal {granite scale .25} 
  } 
  cylinder { 0,y,.25 
    pigment { 
      crackle 
      color_map { 
        [0 rgb <.35,.2,.05>] 
        [1 rgb <.5,.35,.2> ] 
      } 
      scale <1,3,1> 
    } 
  } 
} 

You can change the sphere to a cone { y/2,1,y*2,0} to simulate a pine tree.  You'll want to randomly scale each tree from .8 to 1.2, to make the forest canopy a bit more random-looking. 

Remember, these are down-and-dirty models for trees, but if there are a whole bunch of them a long ways from the camera, nobody will be able to tell. 

 

  1