POV-Ray : Newsgroups : povray.binaries.images : New Slime-POV feature: function warps : Re: New Slime-POV feature: function warps Server Time
14 Aug 2024 11:17:05 EDT (-0400)
  Re: New Slime-POV feature: function warps  
From: Christoph Hormann
Date: 26 Oct 2002 17:20:01
Message: <3DBB06CA.46F20232@gmx.de>
Slime wrote:
> 
> Well, tired as I am of working with this patch, I wanted to add one more
> thing: function warps.
> 
> [...]

IMO a function warp should have a somewhat different functionality, it
should work like a (type 0) displace warp in megapov.  This means it would
displace the pattern in the direction defined by the function(s).  See the
displace warp samples on my website: 

http://www-public.tu-bs.de:8080/~y0013390/pov/warp_b.html

for how this works.  While your version might be quite intuitive for
mapping purposes it's quite a bit more difficult to handle for random
functions like in your last sample.  

I remember such a feature has been discussed somewhere else before. 
Megapov had the very useful feature of displace warps and in 3.5 it would
be logical to use functions but instead of three float functions i would
rather use one vector function.  Why? - This could supply the
functionality of both the type 0 and type 1 displace warp if there is also
a new vector function calculating the gradient of a float function. 
Syntax could be something like:

function {
  gradient { fn_whatever(x, y, z) }
}

Another possible feature that would round up the whole thing is a warp
function of course.

Christoph

-- 
POV-Ray tutorials, IsoWood include,                 
TransSkin and more: http://www.tu-bs.de/~y0013390/  
Last updated 13 Aug. 2002 _____./\/^>_*_<^\/\.______


Post a reply to this message

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