POV-Ray : Newsgroups : povray.advanced-users : Procedural Height Fields Server Time
26 Nov 2024 13:34:18 EST (-0500)
  Procedural Height Fields (Message 1 to 7 of 7)  
From: Wil Hale
Subject: Procedural Height Fields
Date: 6 Apr 2000 09:40:19
Message: <38ec93c3@news.povray.org>
Ok.  I've done the HF in PSP6 and can pretty well guage my results by
looking at the image.  I've heard (read) it mentioned a few times that there
is a way to generate Hfs within POV-ray.  I could really make use of some
sample code because I work best by doing.  If there is some documentation on
this that would help too.

Thanks,

Wil Hale
wil### [at] cal-businesscom
http://www.cal-business.com/wil


Post a reply to this message

From: TonyB
Subject: Re: Procedural Height Fields
Date: 6 Apr 2000 10:03:26
Message: <38ec992e@news.povray.org>
Here's an example of how I do it:

#version unofficial megapov 0.4; // only for reset_children

global_settings { hf_gray_16 }

camera {up y right x location y*10 look_at 0}

plane
{
 y,0
 pigment
 {
  cylindrical scale 3.25 turbulence 1
  pigment_map
  {
   [0 rgb 0]
   [.1 granite color_map {[0 rgb .03][1 rgb .06]} scale .1]
   [.2 granite color_map {[0 rgb .03][1 rgb .10]} scale .1]
   [.3 rgb .1]
   [1 granite scale 3]
  }
  warp {reset_children}
 }
 finish {ambient 1.5 diffuse 0} // should actually be
                                            // 1, but I used 1.5
                                            // to raise everything
                                            // a bit more
}


Post a reply to this message

From: Warp
Subject: Re: Procedural Height Fields
Date: 6 Apr 2000 10:53:22
Message: <38eca4e2@news.povray.org>
TonyB <ben### [at] panamac-comnet> wrote:
:   warp {reset_children}

  Why?

-- 
main(i,_){for(_?--i,main(i+2,"FhhQHFIJD|FQTITFN]zRFHhhTBFHhhTBFysdB"[i]
):5;i&&_>1;printf("%s",_-70?_&1?"[]":" ":(_=0,"\n")),_/=2);} /*- Warp -*/


Post a reply to this message

From: Chris Huff
Subject: Re: Procedural Height Fields
Date: 6 Apr 2000 11:22:22
Message: <chrishuff_99-93DC49.10245106042000@news.povray.org>
In article <38ec93c3@news.povray.org>, "Wil Hale" <whh### [at] nvlarmymil> 
wrote:

> Ok.  I've done the HF in PSP6 and can pretty well guage my results by
> looking at the image.  I've heard (read) it mentioned a few times that 
> there is a way to generate Hfs within POV-ray.  I could really make 
> use of some sample code because I work best by doing.  If there is 
> some documentation on this that would help too.

Do you mean generate a height_field object from an image, or generate 
the actual image in POV-Ray? The object syntax is documented under 
section "2.4.3 Height Field Object" in the manual, along with a way to 
generate the height field image with POV-Ray. Just follow the tutorial, 
sample code is given.

-- 
Christopher James Huff - Personal e-mail: chr### [at] yahoocom
TAG(Technical Assistance Group) e-mail: chr### [at] tagpovrayorg
Web page: http://chrishuff.dhs.org/


Post a reply to this message

From: TonyB
Subject: Re: Procedural Height Fields
Date: 6 Apr 2000 11:41:35
Message: <38ecb02f@news.povray.org>
>  Why?


'Cause I wanted it to in that particular case.


Post a reply to this message

From: Vaclav Cermak
Subject: Re: Procedural Height Fields
Date: 7 Apr 2000 06:58:44
Message: <38EDBF0F.FF981131@itam.cas.cz>
In MegaPOV is feature that allows you to automatically create
height_field in parsing stage from pov pigment, see docs.

Regards

Disnel

Wil Hale wrote:
> 
> Ok.  I've done the HF in PSP6 and can pretty well guage my results by
> looking at the image.  I've heard (read) it mentioned a few times that there
> is a way to generate Hfs within POV-ray.  I could really make use of some
> sample code because I work best by doing.  If there is some documentation on
> this that would help too.
> 
> Thanks,
> 
> Wil Hale
> wil### [at] cal-businesscom
> http://www.cal-business.com/wil


Post a reply to this message

From: Warp
Subject: Re: Procedural Height Fields
Date: 7 Apr 2000 09:19:36
Message: <38ede068@news.povray.org>
What I didn't understand what does it do there. To me it seems that it
does nothing (except being the only thing requiring megapov).

-- 
main(i,_){for(_?--i,main(i+2,"FhhQHFIJD|FQTITFN]zRFHhhTBFHhhTBFysdB"[i]
):5;i&&_>1;printf("%s",_-70?_&1?"[]":" ":(_=0,"\n")),_/=2);} /*- Warp -*/


Post a reply to this message

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