POV-Ray : Newsgroups : povray.unofficial.patches : Isosurface Pigment help Server Time
2 Sep 2024 16:15:12 EDT (-0400)
  Isosurface Pigment help (Message 1 to 3 of 3)  
From: Simon de Vet
Subject: Isosurface Pigment help
Date: 30 Dec 1999 15:38:44
Message: <386BC319.CA6726FC@istar.ca>
Can anyone offer specific advice on how to use pigments in isosufaces?

I've played around a lot with noise3d, and would like to try granite, or
bozo, or another pigment type to shake up my sphere.


Post a reply to this message

From: Chris Huff
Subject: Re: Isosurface Pigment help
Date: 30 Dec 1999 16:06:45
Message: <chrishuff_99-302DCE.16074030121999@news.povray.org>
In article <386BC319.CA6726FC@istar.ca>, sde### [at] istarca wrote:

> Can anyone offer specific advice on how to use pigments in isosufaces?
> 
> I've played around a lot with noise3d, and would like to try granite, or
> bozo, or another pigment type to shake up my sphere.

Well, in order to give you specific advice, you will need to be more 
specific about your questions... :-)

What are you having trouble with? The syntax? Or are you asking about 
the different ways of using the pigment functions to modify the 
isosurface?

There are several ways of using pigments as isosurfaces, but probably 
the best would be to declare it as a separate function to use, like this:

#declare MyPigmentFunc =
function {
    pigment {agate
        color_map {[0 color Black][1 color White]}
    }
}

Then you use MyPigmentFunc() as you would noise3d(). With this 
Black-White color map, it will be similar to directly accessing the 
pattern functions would be, you can modify the color map to change the 
"waveform".

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


Post a reply to this message

From: Simon de Vet
Subject: Re: Isosurface Pigment help
Date: 30 Dec 1999 22:48:22
Message: <386C27C7.CDC4FA09@istar.ca>
Chris Huff wrote:

> There are several ways of using pigments as isosurfaces, but probably
> the best would be to declare it as a separate function to use, like this:
>
> #declare MyPigmentFunc =
> function {
>     pigment {agate
>         color_map {[0 color Black][1 color White]}
>     }
> }

That's exactly what I was looking for.. I didn't realise the "function" bit
was necessary, and was just using the "pigment" portion.

I'm not a coder, so I don't know this kind of thing.


Post a reply to this message

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