|
![](/i/fill.gif) |
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
|
![](/i/fill.gif) |