POV-Ray : Newsgroups : povray.advanced-users : gradient ? : gradient ? Server Time
29 Jul 2024 14:17:37 EDT (-0400)
  gradient ?  
From: Jan Walzer
Date: 20 Jan 2002 10:17:14
Message: <3c4adf7a@news.povray.org>
We have trace(), to find the intersection and the normal of any CSG-Object
with rays ...
Also we can compute the value of any 3D-Pattern at a given 3D-Point ...

What I'm missing, is the ability to compute the gradient of a 3D-Pattern at a
given point.

I know, this is not possible for avery pattern on every point ...

But (concerning Isosurfaces) it's done internally in POV...
I know, its done numerically, and depends on a given accuracy ...

I know, I can do this with a macro (is there one out there ?), taking 4
sample points(depending on accuracy)
around the point in question, and applying some maths to them, and one should
get a vector, showing the
gradient...

My question: Do you see any chance, that we can access the internal (faster)
gradient-function of POV
as it is probably the case for trace(), or at least a simple macro (doing
this in SDL-Space) that comes
with functions.inc in Pov3.5 ? ...

I know, it sounds like a feature-request, but there's probably such a macro
already out there, and
it wouldn't hurt, to put it into functions.inc, would it ?

--
[Talking about cardriving]
"People are opstacles?
Oh...I always treat them as bonus points..." [Ian Burgmyer in p.o-t]
// Jan Walzer <jan### [at] lzernet>


Post a reply to this message

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