|
![](/i/fill.gif) |
In article <3990d2af$1@news.povray.org>, "Nathan Kopp"
<Nat### [at] Kopp com> 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] mac com
TAG(Technical Assistance Group) e-mail: chr### [at] tag povray org
Personal Web page: http://homepage.mac.com/chrishuff/
TAG Web page: http://tag.povray.org/
Post a reply to this message
|
![](/i/fill.gif) |