POV-Ray : Newsgroups : povray.binaries.images : Fill Height field Server Time
20 Nov 2024 10:37:48 EST (-0500)
  Fill Height field (Message 1 to 4 of 4)  
From: Xilo Musimene
Subject: Fill Height field
Date: 30 May 2003 19:35:33
Message: <3ED7EAC0.3040308@hotpop.com>
Hi, to continue my thread in povray.general, I was wondering how to have 
a filled height field, that is, a height field with sides and interior.

Here is what I get with the following code, I hope you can guess easily 
what I want from it...

intersection {
box { <-0.5, -0.5, -0.5>, <0.5, 1, 0.5>}
// or perhaps: plane { <0,1,0>, 3 }
height_field { png "Heightfield.png" smooth
  scale <1,0.1,0>
  translate <-0.5, 0, -0.5>
}
pigment {rgb 1}
}


Thanks,
   Xilo

-- 
Dedicated to audio/visual and interactive artwork.
http://www.geocities.com/simonlemieux/


Post a reply to this message


Attachments:
Download 'mystery.jpg' (65 KB)

Preview of image 'mystery.jpg'
mystery.jpg


 

From: Xilo Musimene
Subject: Re: Fill Height field
Date: 30 May 2003 19:37:03
Message: <3ED7EB20.7030307@hotpop.com>
> Here is what I get with the following code, I hope you can guess easily 
> what I want from it...

Oh btw, the red sphere, only shows the origin point...
-- 
Dedicated to audio/visual and interactive artwork.
http://www.geocities.com/simonlemieux/


Post a reply to this message

From: Mike Williams
Subject: Re: Fill Height field
Date: 30 May 2003 22:08:49
Message: <F2TtjCAr5A2+EwTS@econym.demon.co.uk>
Wasn't it Xilo Musimene who wrote:
>Hi, to continue my thread in povray.general, I was wondering how to have 
>a filled height field, that is, a height field with sides and interior.
>
>Here is what I get with the following code, I hope you can guess easily 
>what I want from it...
>
>intersection {
>box { <-0.5, -0.5, -0.5>, <0.5, 1, 0.5>}
>// or perhaps: plane { <0,1,0>, 3 }
>height_field { png "Heightfield.png" smooth
>  scale <1,0.1,0>
>  translate <-0.5, 0, -0.5>
>}
>pigment {rgb 1}
>}

It's a simple coincident surface problem. Even though one of the
surfaces isn't really there, it still causes coincidence problems. If
you scale the box down slightly the problem goes away.

intersection {
box { <-0.5, -0.5, -0.5>, <0.5, 1, 0.5> scale 0.9999}
// or perhaps: plane { <0,1,0>, 3 }
height_field { png "Heightfield.png" smooth
  scale <1,0.1,0>
  translate <-0.5, 0, -0.5>
}
pigment {rgb 1}
}

Or you could scale the heightfield up slightly (after the translation,
otherwise it still leaves two faces coincident).

intersection {
box { <-0.5, -0.5, -0.5>, <0.5, 1, 0.5>}
// or perhaps: plane { <0,1,0>, 3 }
height_field { png "Heightfield.png" smooth
  scale <1,0.1,0>
  translate <-0.5, 0, -0.5>
  scale 1.0001
}
pigment {rgb 1}
}


-- 
Mike Williams
Gentleman of Leisure


Post a reply to this message

From: Xilo Musimene
Subject: Re: Fill Height field
Date: 31 May 2003 07:47:07
Message: <3ED89640.7060105@hotpop.com>
> It's a simple coincident surface problem. Even though one of the
> surfaces isn't really there, it still causes coincidence problems. If
> you scale the box down slightly the problem goes away.
> box { <-0.5, -0.5, -0.5>, <0.5, 1, 0.5> scale 0.9999}

Thanks Mike you just solved my problem!

Here's my results!

Xilo

-- 
Dedicated to audio/visual and interactive artwork.
http://www.geocities.com/simonlemieux/


Post a reply to this message


Attachments:
Download 'mystery.jpg' (18 KB)

Preview of image 'mystery.jpg'
mystery.jpg


 

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