POV-Ray : Newsgroups : povray.general : hf's and meshes and caves : Re: hf's and meshes and caves Server Time
10 Aug 2024 01:22:43 EDT (-0400)
  Re: hf's and meshes and caves  
From: Peter Popov
Date: 1 Apr 2000 14:16:40
Message: <d6HlOFUECE8Nd1QFYHqze+xKIpVX@4ax.com>
On Fri, 31 Mar 2000 16:32:11 -0800, ryan constantine
<rco### [at] yahoocom> wrote:

> before i ask my question, let me see if i have something straight: 
> height fields are converted into meshes, right?

More or less. Yes, they are converted to meshes but use a hf-specific
hierarchical bounding scheme to speed them up.

> now, if this is so, what happens to the ends and the bottom?  are 
> they closed off to get a closed volume?  i'm hoping they are.  

Sorry, they are not. The bottom remains open.

> and if they are, can they be used in CSG operations?  

Regardless, they can be used in CSG operations. There is a demo scene
in the standard distro called "hfclip.pov", I suggest you check it
out.

> that is the question i really want to know.  i'm
> thinking it would be cool to take one height field of a landscape, and
>another of the opposite of a horizontal cave system, and them subtract
>the caves from the landscape.  or... if one could subtract various
>shapes from a height field (like cylinders or cubes) to get caves that
>way.  can it be done?

Frankly, yes, but you have to be careful with that horizontal hf. The
'volume' of the height_field lies below it, so if you make a hf you
want to use as a cutting object, make sure you point its bottom at the
object you're cutting from.


Peter Popov ICQ : 15002700
Personal e-mail : pet### [at] usanet
TAG      e-mail : pet### [at] tagpovrayorg


Post a reply to this message

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