POV-Ray : Newsgroups : povray.advanced-users : Some math aid required... : Re: Some math aid required... Server Time
29 Jul 2024 02:34:06 EDT (-0400)
  Re: Some math aid required...  
From: Tim Nikias v2 0
Date: 10 Feb 2004 15:34:26
Message: <40294052$1@news.povray.org>
> Well, as far as I can tell, the second method Sascha gave is identical
> to the one I gave, though expressed a bit differently. I'm not sure
> what's going on with the first method...but I think it's mathematically
> equivalent, just a shortcut. I'm going to have to look at it further...

It works, now that I've cleaned the code and found some stupid mistakes I
made... As I understand it, instead of interpolating between four points
with a cubic, I interpolate with three points with a squared function. I
guess there's some more fundamental background behind this (perhaps googling
Bernstein might help, who knows), but I'm not in the mood right now to dig
into math. Perhaps tomorrow, when I'm less lazy and getting more and excited
with Povray again.

SNIP [some Math Stuff]

Ah, now I understood what you were aiming at. Yes, that should work, too.
But honestly, that "shortcut", as you called it, looks nice and slick in
code, whereas the "simplified" model looks pretty ugly. Unless... Taking a
long shot here, but I guess you could adjust the formula so that it ends up
looking like the one Sascha gave...

Ah well, tomorrow is time for math-fun. Today, my brain is already spent
(well, most of it).

Regards,
Tim
-- 
"Tim Nikias v2.0"
Homepage: <http://www.nolights.de>
Email: tim.nikias (@) nolights.de


Post a reply to this message

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