POV-Ray : Newsgroups : povray.newusers : function HF Server Time
4 Sep 2024 16:12:45 EDT (-0400)
  function HF (Message 1 to 3 of 3)  
From: Rafal 'Raf256' Maj
Subject: function HF
Date: 22 Sep 2002 06:45:50
Message: <Xns929181D138628raf256com@204.213.191.226>
Hello,
can somebody give my quick example of building height_field
with i.e. function { x+z+sin(x+z) } (instead of loading it from .bmp). 
Where can I read more about it in help ?

-- 
#macro g(U,V)(.4*abs(sin(9*sqrt(pow(x-U,2)+pow(y-V,2))))*pow(1-min(1,(sqrt(
pow(x-U,2)+pow(y-V,2))*.3)),2)+.9)#end#macro p(c)#if(c>1)#local l=mod(c,100
);g(2*div(l,10)-8,2*mod(l,10)-8)*p(div(c,100))#else 1#end#end light_source{
y 2}sphere{z*20 9pigment{function{p(26252423)*p(36455644)*p(66656463)}}}//M


Post a reply to this message

From: Warp
Subject: Re: function HF
Date: 22 Sep 2002 12:51:32
Message: <3d8df514@news.povray.org>
Rafal 'Raf256' Maj <raf### [at] raf256com> wrote:
> can somebody give my quick example of building height_field
> with i.e. function { x+z+sin(x+z) } (instead of loading it from .bmp). 
> Where can I read more about it in help ?

  It is admittely hard to find (and this will probably be fixed). It's
in section 6.7.11.16 of the documentation.

-- 
#macro M(A,N,D,L)plane{-z,-9pigment{mandel L*9translate N color_map{[0rgb x]
[1rgb 9]}scale<D,D*3D>*1e3}rotate y*A*8}#end M(-3<1.206434.28623>70,7)M(
-1<.7438.1795>1,20)M(1<.77595.13699>30,20)M(3<.75923.07145>80,99)// - Warp -


Post a reply to this message

From: Tom Melly
Subject: Re: function HF
Date: 23 Sep 2002 04:51:18
Message: <3d8ed606$1@news.povray.org>
"Warp" <war### [at] tagpovrayorg> wrote in message news:3d8df514@news.povray.org...

>   It is admittely hard to find (and this will probably be fixed). It's
> in section 6.7.11.16 of the documentation.
>

Heh - I was about to post the same question. I knew it was in the manual
somewhere....


Post a reply to this message

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