POV-Ray : Newsgroups : povray.general : I dont believe I did that! : Re: I dont believe I did that! Server Time
9 Aug 2024 09:04:54 EDT (-0400)
  Re: I dont believe I did that!  
From: Chris Huff
Date: 9 Aug 2000 00:25:52
Message: <chrishuff-B30250.23265408082000@news.povray.org>
In article <3990d2af$1@news.povray.org>, "Nathan Kopp" 
<Nat### [at] Koppcom> wrote:

> Very true.  In fact, you could use a pigment_pattern with a color_map 
> to reproduce the old noise (bozo) very easily.  It is just a linear 
> correlation between the old and the new, except that the old one 
> would clip values, so you couldn't reverse-transform the old one to 
> the new one.
> 
> The following code should work, though it has not been tested at all:
...snip...
> The mapping is (if I did the math correctly):
> old_value = (new_value / 0.48985582) - 1.05242 + 0.5

Actually, I was thinking of a function...how does this look?
#declare OldBozo =
function {max(0,min(1,noise3d(x,y,z)/0.48985582 - 1.05242 + 0.5))}

This has the advantage of being a direct replacement for isosurfaces 
which use the old noise3d() function...and it is probably noticeably 
faster than running a pigment through a function, and maybe even faster 
than pigment_pattern.

-- 
Christopher James Huff - Personal e-mail: chr### [at] maccom
TAG(Technical Assistance Group) e-mail: chr### [at] tagpovrayorg
Personal Web page: http://homepage.mac.com/chrishuff/
TAG Web page: http://tag.povray.org/


Post a reply to this message

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