POV-Ray : Newsgroups : povray.general : Re: Height Fields Server Time
13 Aug 2024 11:23:29 EDT (-0400)
  Re: Height Fields (Message 1 to 3 of 3)  
From: JK
Subject: Re: Height Fields
Date: 25 Aug 1998 19:04:59
Message: <35E333F5.457D8960@hotmail.com>
Steven Jones wrote:

> I'm trying to make an animation of a landscape with the camera flying
> around some mountains.  How can I calculate the height of each part of
> the height field so I don't fly the camera into a mountain?

  Height fields have height 0 to 1 (or whatever you've scaled it). Fly
above that and you won't hit rock. You can use the 'angle' definition in
the camera statement to 'zoom' in so you're not too far away from those
nice low hills.
Does that answer your question?

JK
--
http://surf.to/jkhome


Post a reply to this message

From: Dan Connelly
Subject: Re: Height Fields
Date: 25 Aug 1998 20:34:34
Message: <35E34A0E.482BB435@flash.net>
Steven Jones wrote:
> 
> I'm trying to make an animation of a landscape with the camera flying
> around some mountains.  How can I calculate the height of each part of
> the height field so I don't fly the camera into a mountain?

There are several approaches:

1. Use a code such as Leveller (free), Vue d'Esprit (free demo), 
   or some other package which allows one to move a camera around a height
   field.  Leveller is especially good at this.  Then record the coordinates
   for use in your animation (Leveller is designed to be used w/ POV).
   Vue d'Esprit can do POV export in its registered version.... I'm not  
   sure it handles tga16, however (version 1 did not, but 2.02 is
   massively expanded).

2. Use a tga16-compatible package like hf-lab or by John Beale to sample
   points in the height field.  If you use my #system() patch this can
   be done from within POV, otherwise record the coordinates by hand
   or script.

3. Use tmpov, which has a height field patch with a height field sampling
   function which allows you to sample height field values.  For now it's
   only 3.02, however.

Dan

-- 
http://www.flash.net/~djconnel/


Post a reply to this message

From: Stephen Lavedas
Subject: Re: Height Fields
Date: 26 Aug 1998 10:23:34
Message: <35E40C25.9F786169@ragingbull.com>
If you want to do some work, you could convert the image to an ascii
version (oct and pgm come to mind) the read in the values and scale them
and you'd have a pretty good idea where the mountains are... you could
convert them to exact coordinates, or use the values as part of your
program.  Actually you probably don't need all the points, you could
probably deal with 100 or 200 in each direction because they'd probably
average out the rest of the slopes... but not necessarily.. depends on
the height field... (Beale's HFLab will do tga to ascii conversions)

Steve Lavedas

Steven Jones wrote:
> 
> I'm trying to make an animation of a landscape with the camera flying
> around some mountains.  How can I calculate the height of each part of
> the height field so I don't fly the camera into a mountain?


Post a reply to this message

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