POV-Ray : Newsgroups : povray.newusers : Smooth inclined surface with hills : Re: Smooth inclined surface with hills Server Time
29 Jul 2024 16:31:46 EDT (-0400)
  Re: Smooth inclined surface with hills  
From: Alain
Date: 20 Jul 2005 19:09:07
Message: <42ded993$1@news.povray.org>
Architect nous apporta ses lumieres en ce 2005-07-20 13:58:
> Hi,
> 
> I have a specific scene in mind. I want to create a smooth land with small
> hills. From the camera, surface goes down and comes back up in the
> distance.  I was'nt able to create a heightfield that can be rendered as I
> wanted. Heightfield generators seem to work well for randomly created
> terrains but not for specific topologies. I tried terragen and was very
> unhappy with the result.
> 
> 1) Is there a an easy way to paint the heightfield in any tool?
> 
> 2) Isosurface seems promising but need some guidence. Isosurface tutorial
> was not helpful for generating a special terrain.
> 
> Thanks in advance
> 
> 
All in POV Ray:
You can light a plane with lights, some with negative colour. Place a spot_light where
you want the 
ground to rise. Place a negative one for low parts that are still to high. You can
then add some 
pigment to get some variations.
In your case, there should be a light near the wanted camera position, another for the
hill in the 
distance, maybe a cylindrical parallel negative one grazing the plane for the dip.
Render as TGA and use glabal_settings{hf_grey_16). place the camera to look
perpendicular to the 
plane, generaly, it's good to use an orthorgaphic camera for that kind of renders.
You now have an hight_field you can use in your scene. You need to scale it to the
actual size of 
your scene (start as contained in a 1*1*1 box set one corner at the origin)

Using the windows version, enter "+ft" in the text box left to the resolutions list.
You can also 
set the size of the image using +w<width> +h<hight> (-w100 -h76 for example to get a
100*76 image).

For a sample of this trick, you can look at the crater_dat.pov sample in the objects
folder. It use 
3 spot_light to create a crater hight_field.

Alain


Post a reply to this message

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