POV-Ray : Newsgroups : povray.documentation.inbuilt : image function : Re: image function Server Time
18 May 2024 09:53:27 EDT (-0400)
  Re: image function  
From: Thorsten Froehlich
Date: 25 Feb 2002 08:38:34
Message: <3c7a3e5a@news.povray.org>

Skiba <abx### [at] babilonorg>  wrote:

> But when calculations of this functions are very complicated and this pattern
> is intersected many times (for example via reflections) then image function is
> afaik only alternative to speed things up.

The function will still have to be called a lot.  Further, it is extremely
simple to just write a function like this and get any supersampling effect you
want with much more flexibility and about the same speed:

  (foo(u+fdelta,v+fdelta) + foo(u-fdelta,v+fdelta) + foo(u,v)*4 +
   foo(u+fdelta,v-fdelta) + foo(u-fdelta,v-fdelta)) / 8}


    Thorsten


Post a reply to this message

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