POV-Ray : Newsgroups : povray.general : hf's and meshes and caves Server Time
10 Aug 2024 03:21:46 EDT (-0400)
  hf's and meshes and caves (Message 1 to 4 of 4)  
From: ryan constantine
Subject: hf's and meshes and caves
Date: 31 Mar 2000 19:29:44
Message: <38E5438B.7DCB3FB@yahoo.com>
before i ask my question, let me see if i have something straight: 
height fields are converted into meshes, right?  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.  and if they are, can they be used
in CSG operations?  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?


Post a reply to this message

From: TonyB
Subject: Re: hf's and meshes and caves
Date: 31 Mar 2000 19:47:37
Message: <38e54729@news.povray.org>
Yes.


Post a reply to this message

From: Margus Ramst
Subject: Re: hf's and meshes and caves
Date: 1 Apr 2000 08:55:51
Message: <38E5F23A.9843EA9F@peak.edu.ee>
HF-s are not closed off per se, i.e. there is no 'lid' added to the bottom. But
unlike meshes, they do have a well defined interior and work predictably in CSG
constructs. Basically, everything below the HF-s surface is considered to be
inside it. So what you want to do is quite possible.

-- 
Margus Ramst

Personal e-mail: mar### [at] peakeduee
TAG (Team Assistance Group) e-mail: mar### [at] tagpovrayorg


Post a reply to this message

From: Peter Popov
Subject: Re: hf's and meshes and caves
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.