POV-Ray : Newsgroups : povray.unofficial.patches : Being able to call DLLs/SOs as user defined functions : Re: Being able to call DLLs/SOs as user defined functions Server Time
25 Apr 2024 03:09:24 EDT (-0400)
  Re: Being able to call DLLs/SOs as user defined functions  
From: bugman
Date: 19 Apr 2011 13:50:01
Message: <web.4dadcb21fa289b21d1576610@news.povray.org>
Yay! After some further thought, I finally got it to work. This is very cool! I
had to cheat by using the 'sum' function to simulate an 'if' statement:
camera{orthographic location <-0.5,0,-1.5> look_at <-0.5,0,0> angle 90}
#declare imax=24;
#declare f=function(i,x,y,xc,yc)
{sum(j,(i+1)/imax,1,f(i+1,x*x-y*y+xc,2*x*y+yc,xc,yc))+sum(j,1,i/imax,sqrt(x*x+y*y))};
plane{z,0 pigment{function{f(0,0,0,x,y)}} finish{ambient 1}}


Post a reply to this message

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