POV-Ray : Newsgroups : povray.unofficial.patches : Pigment patterns in an isosurface? Server Time
2 Sep 2024 14:18:01 EDT (-0400)
  Pigment patterns in an isosurface? (Message 1 to 10 of 13)  
Goto Latest 10 Messages Next 3 Messages >>>
From: Greg M  Johnson
Subject: Pigment patterns in an isosurface?
Date: 1 Feb 2000 16:39:54
Message: <389751D0.DFDC2FA0@my-dejanews.com>
Is there a way, say to put bozo or some other function in an isosurface?

I just reread the 0.4 docs and didn't find it under isosurfaces...


Post a reply to this message

From: Nathan Kopp
Subject: Re: Pigment patterns in an isosurface?
Date: 1 Feb 2000 16:44:10
Message: <389753aa@news.povray.org>
Greg M. Johnson <gre### [at] my-dejanewscom> wrote...
> Is there a way, say to put bozo or some other function in an isosurface?
> 
> I just reread the 0.4 docs and didn't find it under isosurfaces...
> 

Check section 5.2.14  (Pigment function).

-Nathan


Post a reply to this message

From: Greg M  Johnson
Subject: Re: Pigment patterns in an isosurface?
Date: 3 Feb 2000 11:21:13
Message: <3899AA1F.C9FA0F9E@my-dejanews.com>
Actually, the bumps pigment in an isosurface looks more like what I want than
the noise3d.  With nose3d, I got some pretty neat structures by adding
polynomials to it, which looked like landscapes.

Is there a way to do mathematical operations on pigments?

I've tried with failure:
    function { y- pigment {bumps}}
Should I instead  I do:
    function {y}- function{pigment {bumps}}
Or:
    #declare yikes= function{pigment {bumps}};
    isosurface {
        function {y-yikes}

...

?


Nathan Kopp wrote:

> Greg M. Johnson <gre### [at] my-dejanewscom> wrote...
> > Is there a way, say to put bozo or some other function in an isosurface?
> >
> > I just reread the 0.4 docs and didn't find it under isosurfaces...
> >
>
> Check section 5.2.14  (Pigment function).
>
> -Nathan


Post a reply to this message

From: TonyB
Subject: Re: Pigment patterns in an isosurface?
Date: 3 Feb 2000 15:46:01
Message: <3899e909@news.povray.org>
>Should I instead  I do:
>    function {y}- function{pigment {bumps}}
>Or:
>    #declare yikes= function{pigment {bumps}};
>    isosurface {
>        function {y-yikes}


The second one.


Post a reply to this message

From: Chris Huff
Subject: Re: Pigment patterns in an isosurface?
Date: 3 Feb 2000 18:35:12
Message: <chrishuff_99-715F16.18360403022000@news.povray.org>
In article <3899AA1F.C9FA0F9E@my-dejanews.com>, 
gre### [at] my-dejanewscom wrote:

> Actually, the bumps pigment in an isosurface looks more like what I 
> want than the noise3d.

They are the exact same thing. They both use the Noise() function to 
calculate the result...the only difference is that bumps is calculated 
differently in texture normals. You should get the exact same results if 
you use either bumps, bozo or spotted in the pigment.


> Is there a way to do mathematical operations on pigments?
> 
> I've tried with failure:
>     function { y- pigment {bumps}}
> Should I instead  I do:
>     function {y}- function{pigment {bumps}}
> Or:
>     #declare yikes= function{pigment {bumps}};
>     isosurface {
>         function {y-yikes}

The second one is closest, try
#declare yikes= function{pigment {bumps}};
isosurface {
    function {y - yikes(x, y, z)}
    ...
}

I think the (x, y, z) part is a default in the MegaPOV version, but it 
has caused trouble for me before and it seems to be a good idea to 
include it anyway. It is better for readability, and if you want to 
modify the function later, could make it easier.

-- 
Chris Huff
e-mail: chr### [at] yahoocom
Web page: http://chrishuff.dhs.org/


Post a reply to this message

From: Greg M  Johnson
Subject: Re: Pigment patterns in an isosurface?
Date: 4 Feb 2000 10:16:43
Message: <389AEC81.5A942B5A@my-dejanews.com>
Yeah, just discovered this last night.

Is there/ will there EVER BE a flat-plateau-free noisy function?  From my
ignorant perspective, I wonder if it is as simple as changing one or two
lines of codes?

Chris Huff wrote:

> In article <3899AA1F.C9FA0F9E@my-dejanews.com>,
> gre### [at] my-dejanewscom wrote:
>
> > Actually, the bumps pigment in an isosurface looks more like what I
> > want than the noise3d.
>
> They are the exact same thing. They both use the Noise() function to
> calculate the result...the only difference is that bumps is calculated
> differently in texture normals. You should get the exact same results if
> you use either bumps, bozo or spotted in the pigment.
>
> > Is there a way to do mathematical operations on pigments?
> >
> > I've tried with failure:
> >     function { y- pigment {bumps}}
> > Should I instead  I do:
> >     function {y}- function{pigment {bumps}}
> > Or:
> >     #declare yikes= function{pigment {bumps}};
> >     isosurface {
> >         function {y-yikes}
>
> The second one is closest, try
> #declare yikes= function{pigment {bumps}};
> isosurface {
>     function {y - yikes(x, y, z)}
>     ...
> }
>
> I think the (x, y, z) part is a default in the MegaPOV version, but it
> has caused trouble for me before and it seems to be a good idea to
> include it anyway. It is better for readability, and if you want to
> modify the function later, could make it easier.
>
> --
> Chris Huff
> e-mail: chr### [at] yahoocom
> Web page: http://chrishuff.dhs.org/


Post a reply to this message

From: Nathan Kopp
Subject: Re: Pigment patterns in an isosurface?
Date: 4 Feb 2000 12:52:49
Message: <389b11f1@news.povray.org>
This has been discussed in the past (with no resolution found).  The problem
is that POV's Noise() function is not "correct".  A solution has been
proposed which would, unfortunately, not be completely backwards compatible.
My personal preference would be to provide an option to allow backwards
compatibility but by default use a "correct" Noise().

-Nathan

Greg M. Johnson <gre### [at] my-dejanewscom> wrote...
> Yeah, just discovered this last night.
>
> Is there/ will there EVER BE a flat-plateau-free noisy function?  From my
> ignorant perspective, I wonder if it is as simple as changing one or two
> lines of codes?
>
> Chris Huff wrote:
>
> > In article <3899AA1F.C9FA0F9E@my-dejanews.com>,
> > gre### [at] my-dejanewscom wrote:
> >
> > > Actually, the bumps pigment in an isosurface looks more like what I
> > > want than the noise3d.
> >
> > They are the exact same thing. They both use the Noise() function to
> > calculate the result...the only difference is that bumps is calculated
> > differently in texture normals. You should get the exact same results if
> > you use either bumps, bozo or spotted in the pigment.
> >
> > > Is there a way to do mathematical operations on pigments?
> > >
> > > I've tried with failure:
> > >     function { y- pigment {bumps}}
> > > Should I instead  I do:
> > >     function {y}- function{pigment {bumps}}
> > > Or:
> > >     #declare yikes= function{pigment {bumps}};
> > >     isosurface {
> > >         function {y-yikes}
> >
> > The second one is closest, try
> > #declare yikes= function{pigment {bumps}};
> > isosurface {
> >     function {y - yikes(x, y, z)}
> >     ...
> > }
> >
> > I think the (x, y, z) part is a default in the MegaPOV version, but it
> > has caused trouble for me before and it seems to be a good idea to
> > include it anyway. It is better for readability, and if you want to
> > modify the function later, could make it easier.
> >
> > --
> > Chris Huff
> > e-mail: chr### [at] yahoocom
> > Web page: http://chrishuff.dhs.org/
>
>
>


Post a reply to this message

From: TonyB
Subject: Re: Pigment patterns in an isosurface?
Date: 4 Feb 2000 14:16:31
Message: <389b258f@news.povray.org>
>My personal preference would be to provide an option to allow backwards
>compatibility but by default use a "correct" Noise().


Great, then, it's decided. MegaPOV v0.5 will come with this fix. Right? :)


Post a reply to this message

From: Greg M  Johnson
Subject: Re: Pigment patterns in an isosurface?
Date: 4 Feb 2000 16:03:14
Message: <389B3DB0.86AB4776@my-dejanews.com>
Yes, please offer a "correct" noise.

If you messed with "bumps", then it might upset generations of old coders who
had made clouds, etc.  I doubt that many people have gotten that far into
noise3d, and I bet that a bunch of them have gotten frustrated with the flat
plateaus and set it aside. (The difference being that noise3d is probably played
with by more dabblers in isosurfaces, where I have found it somehow "more
bothersome" than it was in pigments. [But then again, I'm no texture king].)

Anyway,  here are proposals:
1) Just fix noise3d and I'll bet you'll get few complaints.
2) Make a correct nosie and call it  "noiseg3d",  "2noise3d,"  "bumps2",
"noisenp3d" etc. . .

In any case, thanks greatly for this program.  If we appreciate the pov team,
somehow we appreciate the developers of these "bleeding edge" upgrades even
more, as the toys therein are fancier......

Nathan Kopp wrote:

> This has been discussed in the past (with no resolution found).  The problem
> is that POV's Noise() function is not "correct".  A solution has been
> proposed which would, unfortunately, not be completely backwards compatible.
> My personal preference would be to provide an option to allow backwards
> compatibility but by default use a "correct" Noise().
>
> -Nathan
>


Post a reply to this message

From: Chris Huff
Subject: Re: Pigment patterns in an isosurface?
Date: 4 Feb 2000 16:20:03
Message: <chrishuff_99-1D529B.16205504022000@news.povray.org>
I would like to add my name to the list of people who want a better 
Noise() function. Although I think a better way would just be to have it 
controlled by the version. If the version is 3.1 or earlier at the time 
of parsing, set the texture to use the older noise function as the 
pattern. Otherwise use the new one. I don't think there will be a 
problem with isosurfaces, but you could do something similar with them.

Basically, parse the patterns/function as a different thing depending on 
the version. This would allow older textures/etc to appear exactly the 
same while still allowing the newer version to be used.

I would fix it myself if I knew anything about noise functions.

-- 
Chris Huff
e-mail: chr### [at] yahoocom
Web page: http://chrishuff.dhs.org/


Post a reply to this message

Goto Latest 10 Messages Next 3 Messages >>>

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