POV-Ray : Newsgroups : povray.unofficial.patches : blob2 Server Time
5 Jul 2024 10:01:16 EDT (-0400)
  blob2 (Message 31 to 34 of 34)  
<<< Previous 10 Messages Goto Initial 10 Messages
From: Anton Sherwood
Subject: Re: blob2 patch now available
Date: 9 Oct 2003 01:29:19
Message: <3f84f22f$1@news.povray.org>
Christopher James Huff wrote:
> . . . . The function I used for the blob2 object is:
> 
> ((6*r - 15)*r + 10)*r*r*r

Why quintic?  All we absolutely need is

	f(0) = 1
	f(1) = f'(1) = f''(1) = 0

for which (1-r)^3 would do; were you also trying to fit the traditional 
curve?

-- 
Anton Sherwood, http://www.ogre.nu/


Post a reply to this message

From: Christopher James Huff
Subject: Re: blob2 patch now available
Date: 9 Oct 2003 11:40:27
Message: <cjameshuff-353410.11380309102003@netplex.aussie.org>
In article <3f84f22f$1@news.povray.org>, Anton Sherwood <new### [at] ogrenu> 
wrote:

> > ((6*r - 15)*r + 10)*r*r*r
> 
> Why quintic? 

This function is used in several other places as well, such as the 
recent updates to Perlin noise. It's not something I came up with.


> All we absolutely need is
> 	f(0) = 1
> 	f(1) = f'(1) = f''(1) = 0

No, you also need f'(0) = f"(0) = 0


> for which (1-r)^3 would do; were you also trying to fit the traditional 
> curve?

(1-r)^3 doesn't even remotely resemble the old-style curve. I wasn't 
trying to "fit" it, but I did want something that was somewhat similar.

-- 
Christopher James Huff <cja### [at] earthlinknet>
http://home.earthlink.net/~cjameshuff/
POV-Ray TAG: chr### [at] tagpovrayorg
http://tag.povray.org/


Post a reply to this message

From: Anton Sherwood
Subject: Re: blob2 patch now available
Date: 10 Oct 2003 01:12:32
Message: <3f863fc0@news.povray.org>
Christopher James Huff wrote:
> Anton Sherwood <new### [at] ogrenu> wrote:

>>> ((6*r - 15)*r + 10)*r*r*r
>>
>> Why quintic? 
> 
> This function is used in several other places as well, such as the 
> recent updates to Perlin noise. It's not something I came up with.

Ah.
I imagine that would have more constraints.


>> All we absolutely need is
>>	f(0) = 1
>>	f(1) = f'(1) = f''(1) = 0
> 
> No, you also need f'(0) = f"(0) = 0

Why?  That point is never on the surface (unless, I guess, another 
component with greater and opposite strength is in just the right place).

And shouldn't f''(0) be negative rather than zero?

We also want f'(t)<0 for 0<t<1, but that's almost automatic with a 
polynomial of low degree that fits the other constraints.  ;)


 >> for which (1-r)^3 would do; were you also trying to fit
 >> the traditional curve?
 >
 > (1-r)^3 doesn't even remotely resemble the old-style curve. I wasn't
 > trying to "fit" it, but I did want something that was somewhat similar.

(1-rr)^3, then, and you get f'(0)=0 for free.  ;)


...It occurs to me that my remarks may seem hostile in tone.
Please be assured that it is none of my intent.

-- 
Anton Sherwood, http://www.ogre.nu/


Post a reply to this message

From: Christopher James Huff
Subject: Re: blob2 patch now available
Date: 13 Oct 2003 17:43:58
Message: <cjameshuff-C7B230.17413913102003@netplex.aussie.org>
In article <3f863fc0@news.povray.org>, Anton Sherwood <new### [at] ogrenu> 
wrote:

>  > (1-r)^3 doesn't even remotely resemble the old-style curve. I wasn't
>  > trying to "fit" it, but I did want something that was somewhat similar.
> 
> (1-rr)^3, then, and you get f'(0)=0 for free.  ;)

You may be right, I will have to do more tests when I have time. I do 
like the shape given by the quintic curve.

-- 
Christopher James Huff <cja### [at] earthlinknet>
http://home.earthlink.net/~cjameshuff/
POV-Ray TAG: chr### [at] tagpovrayorg
http://tag.povray.org/


Post a reply to this message

<<< Previous 10 Messages Goto Initial 10 Messages

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