POV-Ray : Newsgroups : povray.newusers : fn_function and other stuff Server Time
26 Nov 2024 21:41:32 EST (-0500)
  fn_function and other stuff (Message 1 to 5 of 5)  
From: Matthew Pace
Subject: fn_function and other stuff
Date: 9 Nov 2003 22:03:41
Message: <matt-pace-1AB5A2.19034009112003@netplex.aussie.org>
So as you know, I am stumbling through the isosurface qualities of POV, 
when I came across a site where someone used an identifier fn_function 
to make a pigment modifier (bozo in this case) apply to both a height 
field and an isosurface.  Can anyone either explain this (as he didnt 
really) or point me to a place which does?  He used this as a way to 
make some pretty nifty landscapes, so if anyone knows of a site which 
shows some isosurface landscaping tricks, that would be awesome too.  
Thanks a lot, Matt


Post a reply to this message

From: Christopher James Huff
Subject: Re: fn_function and other stuff
Date: 9 Nov 2003 22:53:18
Message: <cjameshuff-7C4A9E.22515409112003@netplex.aussie.org>
In article <mat### [at] netplexaussieorg>,
 Matthew Pace <mat### [at] lycoscom> wrote:

> So as you know, I am stumbling through the isosurface qualities of POV, 
> when I came across a site where someone used an identifier fn_function 
> to make a pigment modifier (bozo in this case) apply to both a height 
> field and an isosurface.  Can anyone either explain this (as he didnt 
> really) or point me to a place which does?  He used this as a way to 
> make some pretty nifty landscapes, so if anyone knows of a site which 
> shows some isosurface landscaping tricks, that would be awesome too.  

Those are simply pattern functions defined in functions.inc. As 
expected, they are documented in the functions.inc documentation. You 
can use the same syntax to make your own versions.

-- 
Christopher James Huff <cja### [at] earthlinknet>
http://home.earthlink.net/~cjameshuff/
POV-Ray TAG: chr### [at] tagpovrayorg
http://tag.povray.org/


Post a reply to this message

From: Mike Williams
Subject: Re: fn_function and other stuff
Date: 9 Nov 2003 23:54:44
Message: <mWcKaOAikxr$EwJy@econym.demon.co.uk>
Wasn't it Matthew Pace who wrote:
>So as you know, I am stumbling through the isosurface qualities of POV, 
>when I came across a site where someone used an identifier fn_function 
>to make a pigment modifier (bozo in this case) apply to both a height 
>field and an isosurface.  Can anyone either explain this (as he didnt 
>really) or point me to a place which does?  He used this as a way to 
>make some pretty nifty landscapes, so if anyone knows of a site which 
>shows some isosurface landscaping tricks, that would be awesome too.  
>Thanks a lot, Matt

There's a section in my Isosurface Tutorial that looks at the difference
between using a function to generate a heightfield and using it to
generate an isosurface.

http://www.econym.demon.co.uk/IsoTut/patterns.htm#hf

In this case I used function{ pattern{ leopard... }} but I could have
used function{f_bozo(x,0,z)}.

-- 
Mike Williams
Gentleman of Leisure


Post a reply to this message

From: Tor Olav Kristensen
Subject: Re: fn_function and other stuff
Date: 10 Nov 2003 06:16:09
Message: <3faf7379@news.povray.org>
Mike Williams <nos### [at] econymdemoncouk> wrote in 
news:mWcKaOAikxr$EwJy@econym.demon.co.uk:

...
> There's a section in my Isosurface Tutorial that looks at the difference
> between using a function to generate a heightfield and using it to
> generate an isosurface.
> 
> http://www.econym.demon.co.uk/IsoTut/patterns.htm#hf


This one works:

http://www.econym.demon.co.uk/isotut/patterns.htm#hf


You can also find an example of a function based height-
field within the source files in this post of mine:

http://news.povray.org/povray.binaries.scene-files/33557

(Source code for "Isomountains" posted by me 26. Oct to 
povray.binaries.scene-files)


Tor Olav


Post a reply to this message

From: Matthew Pace
Subject: Re: fn_function and other stuff
Date: 10 Nov 2003 20:30:48
Message: <matt-pace-8931B2.17303410112003@netplex.aussie.org>
In article <mat### [at] netplexaussieorg>,
 Matthew Pace <mat### [at] lycoscom> wrote:

> So as you know, I am stumbling through the isosurface qualities of POV, 
> when I came across a site where someone used an identifier fn_function 
> to make a pigment modifier (bozo in this case) apply to both a height 
> field and an isosurface.  Can anyone either explain this (as he didnt 
> really) or point me to a place which does?  He used this as a way to 
> make some pretty nifty landscapes, so if anyone knows of a site which 
> shows some isosurface landscaping tricks, that would be awesome too.  
> Thanks a lot, Matt

Thanks a lot guys, you are awesome.  Those all helped a lot!


Post a reply to this message

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