POV-Ray : Newsgroups : povray.general : Punching a hole in a height field Server Time
2 Nov 2024 05:18:33 EDT (-0400)
  Punching a hole in a height field (Message 1 to 5 of 5)  
From: gil
Subject: Punching a hole in a height field
Date: 27 May 2004 07:40:01
Message: <web.40b5d2679f50c2a518134edd0@news.povray.org>
I have a height field I'm using as a mountain from the outside, and a cave
from the inside.

What I want to do is punch a hole in the heightfield so I can stand inside
and look out, or vice-versa.

I tried
#declare mountain = difference
{
   object <the height field>
   object <a box that spans the skin of the height field>
}

but I don't seem to be able to see beyond the skin of the box, which I can
see projecting into the cave.

What am I doing wrong??


Post a reply to this message

From: gil
Subject: Re: Punching a hole in a height field
Date: 27 May 2004 09:45:00
Message: <web.40b5ef9eb88e3b7d18134edd0@news.povray.org>
"gil" <nomail@nomail> wrote:
> I have a height field I'm using as a mountain from the outside, and a cave
> from the inside.
>
> What I want to do is punch a hole in the heightfield so I can stand inside
> and look out, or vice-versa.
>
> I tried
> #declare mountain = difference
> {
>    object <the height field>
>    object <a box that spans the skin of the height field>
> }
>
> but I don't seem to be able to see beyond the skin of the box, which I can
> see projecting into the cave.
>
> What am I doing wrong??

Well.... I answered it myself.  I made the box pigment {rgbt<1,0,0,1>}. I
now have a tunnel through from inside to outside.

But, in a totally different example, if I'd taken a box, and drilled through
it with a cylinder ie difference{box{} cylinder{}}, I wouldn't have had to
make the cylinder transparent.


Why?


Post a reply to this message

From: Mike Williams
Subject: Re: Punching a hole in a height field
Date: 27 May 2004 13:36:46
Message: <mklFHDAcaitAFw1Y@econym.demon.co.uk>
Wasn't it gil who wrote:
>"gil" <nomail@nomail> wrote:
>> I have a height field I'm using as a mountain from the outside, and a cave
>> from the inside.
>>
>> What I want to do is punch a hole in the heightfield so I can stand inside
>> and look out, or vice-versa.
>>
>> I tried
>> #declare mountain = difference
>> {
>>    object <the height field>
>>    object <a box that spans the skin of the height field>
>> }
>>
>> but I don't seem to be able to see beyond the skin of the box, which I can
>> see projecting into the cave.
>>
>> What am I doing wrong??
>
>Well.... I answered it myself.  I made the box pigment {rgbt<1,0,0,1>}. I
>now have a tunnel through from inside to outside.
>
>But, in a totally different example, if I'd taken a box, and drilled through
>it with a cylinder ie difference{box{} cylinder{}}, I wouldn't have had to
>make the cylinder transparent.
>
>
>Why?

As far as I can see difference{box{} cylinder{}} works exactly the same
way as difference{height_field{} box{}}.

If I understand what you're trying to achieve, you should be doing is
height_field{clipped_by{box{}}}.

-- 
Mike Williams
Gentleman of Leisure


Post a reply to this message

From: Mike Williams
Subject: Re: Punching a hole in a height field
Date: 27 May 2004 13:45:01
Message: <eUqL7EAjjitAFwRH@econym.demon.co.uk>
Sorry, I meant to say

height_field {clipped_by {box {} inverse}}}


-- 
Mike Williams
Gentleman of Leisure


Post a reply to this message

From: gil
Subject: Re: Punching a hole in a height field
Date: 1 Jun 2004 05:00:00
Message: <web.40bc454cb88e3b7d18134edd0@news.povray.org>
Mike Williams <nos### [at] econymdemoncouk> wrote:
> Sorry, I meant to say
>
> height_field {clipped_by {box {} inverse}}}
>
>
> --
> Mike Williams
> Gentleman of Leisure

Aaahh... Thanks.  I'll have a look at clipped_by.


Post a reply to this message

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