POV-Ray : Newsgroups : povray.general : height_field question Server Time
16 Nov 2024 21:12:06 EST (-0500)
  height_field question (Message 1 to 4 of 4)  
From: Marc Champagne
Subject: height_field question
Date: 17 Aug 2003 19:26:54
Message: <Xns93DAC58402D1EPOVMIKA@204.213.191.226>
Hi folks!

I have spotted this snippit of code in Rune's Particle System
and am not quite sure how to interpret this, I fail to locate
any bla bla in the docs concerning this example.

=================
flow.pov snippit
=================
   height_field {
      function 300,300 {pattern {bumps scale 0.1 translate <1.0,0.3,0.0>}}
      smooth
      translate <-0.5,-0.5,-0.2>
      scale <12,1.6,12>
      rotate -15*z
   }
======================
Documentation snippit
======================
HEIGHT_FIELD:
    height_field{
      [HF_TYPE]
      "filename"
      [HF_MODIFIER...]
      [OBJECT_MODIFIER...]
    }
HF_TYPE:
    gif | tga | pot | png | pgm | ppm | jpeg | tiff | sys
HF_MODIFIER:
    hierarchy [Boolean]  |
    smooth               |
    water_level Level
=============


What concerns me first is the use of "function" above, If I interpret
this correctly, the "function" replaces (([HF_TYPE] "filename" )) right?

Secondly, I havn't a clue as to what the 300,300 does right after the 
"function" keyword.

Any advice on this?

Thanks

-- 
(MIKA) Marc Champagne
marcch.AT.videotron.DOT.ca
Montreal, CANADA


Post a reply to this message

From: Hughes, B 
Subject: Re: height_field question
Date: 17 Aug 2003 20:53:41
Message: <3f402395@news.povray.org>
"Marc Champagne" <nos### [at] pleasecom> wrote in message
news:Xns### [at] 204213191226...
>    height_field {
>       function 300,300 {pattern {bumps scale 0.1 translate <1.0,0.3,0.0>}}
> What concerns me first is the use of "function" above, If I interpret
> this correctly, the "function" replaces (([HF_TYPE] "filename" )) right?
>
> Secondly, I havn't a clue as to what the 300,300 does right after the
> "function" keyword.

Hey there, Marc.

Well, it's from MegaPOV. Convenient way to get a pattern into a HF without
the need for an external image file.

The 300,300 is same as image resolution, although still within the unit size
of HF.

If you look at section 10 (10.1.8, to be more precise) of the Doc you'll
find a link within the HF usage which leads to the function image usage and
finally a link (Jump to SDL) which describes it's use. Or shorter route,
section 6.7.11.16 Function Image.

Apparently, has yet to be edited to show in the HF description for the
upcoming release of 3.51 near as I can tell so I'm glad you posted here
about it.

Bob H.


Post a reply to this message

From: Marc Champagne
Subject: Re: height_field question
Date: 17 Aug 2003 21:52:21
Message: <Xns93DADE2D456F3POVMIKA@204.213.191.226>
"Hughes, B." <omn### [at] charternet> wrote in
news:3f402395@news.povray.org: 

> "Marc Champagne" <nos### [at] pleasecom> wrote in message
> news:Xns### [at] 204213191226...
>>    height_field {
>>       function 300,300 {pattern {bumps scale 0.1 translate
>>       <1.0,0.3,0.0>}} 
>> What concerns me first is the use of "function" above, If I interpret
>> this correctly, the "function" replaces (([HF_TYPE] "filename" ))
>> right? 
>>
>> Secondly, I havn't a clue as to what the 300,300 does right after the
>> "function" keyword.
> 
> Hey there, Marc.
> 
> Well, it's from MegaPOV. Convenient way to get a pattern into a HF
> without the need for an external image file.
> 
> The 300,300 is same as image resolution, although still within the unit
> size of HF.
> 
> If you look at section 10 (10.1.8, to be more precise) of the Doc you'll
> find a link within the HF usage which leads to the function image usage
> and finally a link (Jump to SDL) which describes it's use. Or shorter
> route, section 6.7.11.16 Function Image.

Kinda confusing at times.

> Apparently, has yet to be edited to show in the HF description for the
> upcoming release of 3.51 near as I can tell so I'm glad you posted here
> about it.

The manual is a bit like a jungle, sometimes hard to find your way
through. 

I don't really like how the manual is setup, but then again who is to
complain... POV-Ray's only cost is time and effort.

Thanks for the info.

-- 
(MIKA) Marc Champagne
marcch.AT.videotron.DOT.ca
Montreal, CANADA


Post a reply to this message

From: Warp
Subject: Re: height_field question
Date: 18 Aug 2003 07:06:10
Message: <3f40b322@news.povray.org>
Marc Champagne <nos### [at] pleasecom> wrote:
> I don't really like how the manual is setup, but then again who is to
> complain... POV-Ray's only cost is time and effort.

  Work is being done to improve the documentation, so hopefully in the
next release things will be better. :)

-- 
plane{-x+y,-1pigment{bozo color_map{[0rgb x][1rgb x+y]}turbulence 1}}
sphere{0,2pigment{rgbt 1}interior{media{emission 1density{spherical
density_map{[0rgb 0][.5rgb<1,.5>][1rgb 1]}turbulence.9}}}scale
<1,1,3>hollow}text{ttf"timrom""Warp".1,0translate<-1,-.1,2>}//  - Warp -


Post a reply to this message

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