POV-Ray : Newsgroups : povray.binaries.images : Squirted pigments (34KB) Server Time: 17 Feb 2019 21:41:08 GMT
  Squirted pigments (34KB) (Message 1 to 7 of 7)  
From: Tor Olav Kristensen
Subject: Squirted pigments (34KB)
Date: 27 Sep 2001 01:16:49
Message: <3BB27DF4.9E762B14@hotmail.com>
A sphere with a crackle pattern scaled by a
noise function and colored with 4 semi-
transparent layers of function controlled
pigment colors.

This way one can have total control the
over the colors of the pigments with 
functions.

I think that the "traditional" way of using
functions to select colors from within a
color_map {} is quite limiting, so I'm
going to experiment some more to see if my
method can be developed further.

This is fun !

POV-Ray v3.5 (of course).


Tor Olav


Post a reply to this message


Attachments:
Download 'squirted.jpg' (34 KB)

Preview of image 'squirted.jpg'
squirted.jpg


 

From: Duncan Adamson
Subject: Re: Squirted pigments (34KB)
Date: 27 Sep 2001 09:12:23
Message: <3bb2ed77@news.povray.org>
This sounds like something I was trying to do last week (but failed) - Any
chance of some source?

Duncan Adamson

"Tor Olav Kristensen" <tor### [at] hotmailcom> wrote in message
news:3BB27DF4.9E762B14@hotmail.com...
>
> A sphere with a crackle pattern scaled by a
> noise function and colored with 4 semi-
> transparent layers of function controlled
> pigment colors.
>
> This way one can have total control the
> over the colors of the pigments with
> functions.
>
> I think that the "traditional" way of using
> functions to select colors from within a
> color_map {} is quite limiting, so I'm
> going to experiment some more to see if my
> method can be developed further.
>
> This is fun !
>
> POV-Ray v3.5 (of course).
>
>
> Tor Olav


----------------------------------------------------------------------------
----


Post a reply to this message

From: Tor Olav Kristensen
Subject: Re: Squirted pigments (34KB)
Date: 27 Sep 2001 23:58:37
Message: <3BB3BD2C.56350528@hotmail.com>
Sure
- I just posted my source code to povray.text.scene-files:
http://news.povray.org/3BB3BBA6.388C46C3%40hotmail.com

Have fun !


And please feel free to ask if you have any questions.


Tor Olav


Duncan Adamson wrote:
> 
> This sounds like something I was trying to do last week (but failed) - Any
> chance of some source?
> 
> Duncan Adamson
> 
> "Tor Olav Kristensen" <tor### [at] hotmailcom> wrote in message
> news:3BB27DF4.9E762B14@hotmail.com...
> >
> > A sphere with a crackle pattern scaled by a
> > noise function and colored with 4 semi-
> > transparent layers of function controlled
> > pigment colors.
> >
> > This way one can have total control the
> > over the colors of the pigments with
> > functions.
> >
> > I think that the "traditional" way of using
> > functions to select colors from within a
> > color_map {} is quite limiting, so I'm
> > going to experiment some more to see if my
> > method can be developed further.
> >
> > This is fun !
> >
> > POV-Ray v3.5 (of course).
> >
> >
> > Tor Olav
> 
> ----------------------------------------------------------------------------
> ----


Post a reply to this message

From: Mark James Lewin
Subject: Re: Squirted pigments (34KB)
Date: 28 Sep 2001 06:02:23
Message: <3BB40FA3.C94C2321@yahoo.com.au>
Tor,
        Have you tried 'average'? I have used this to achieve similar control as your
technique (though not so complicated). Here is how I do it...

#declare F_Red = function{(sin(x)+sin(y)+sin(z)+3)/6}
// Or any function between 0 and 1

#declare F_Green =function{(cos(x)+cos(y)+cos(z)+3)/6}
#declare F_Blue =function{(sin(-x)+sin(-y)+sin(-z)+3)/6}

#declare P_Red =
pigment
        {
        function{F_Red(x,y,z)}
        colour_map
                {
                [0 rgb <0,0,0>][1 rgb <3,0,0>]
                // Note the colour max is 3, not 1
                }
        }

#declare P_Green =
pigment
        {
        function{F_Green(x,y,z)}
        colour_map
                {
                [0 rgb <0,0,0>][1 rgb <0,3,0>]
                }
        }

#declare P_Blue =
pigment
        {
        function{F_Blue(x,y,z)}
        colour_map
                {
                [0 rgb <0,0,0>][1 rgb <0,0,3>]
                }
        }

#declare P_Average =
pigment
        {
        average
        pigment_map
                {
                [1 P_Red]
                [1 P_Green]
                [1 P_Blue]
                }
        }

Then you have a pigment with control over rgb channels without semi transperent
layers.


Post a reply to this message

From: Steve
Subject: Re: Squirted pigments (34KB)
Date: 28 Sep 2001 06:15:50
Message: <slrn9r7add.tbp.steve@zero-pps.localdomain>
On Thu, 27 Sep 2001 03:16:36 +0200, Tor Olav Kristensen wrote:

>A sphere with a crackle pattern scaled by a
>noise function and colored with 4 semi-
>transparent layers of function controlled
>pigment colors.

>This is fun !
>
>POV-Ray v3.5 (of course).
>

Sweet. 

It'll be good when we get the Linux version.  But where would I 
find the time?  

--
Cheers
Steve              email mailto:ste### [at] zeroppsuklinuxnet

%HAV-A-NICEDAY Error not enough coffee  0 pps. 

web http://www.zeropps.uklinux.net/

or  http://start.at/zero-pps

 11:33pm  up 17 days,  1:48,  1 user,  load average: 1.00, 1.00, 1.00


Post a reply to this message

From: Tor Olav Kristensen
Subject: Re: Squirted pigments (34KB)
Date: 30 Sep 2001 00:52:11
Message: <3BB66CB1.1A55BD2A@hotmail.com>
Yes, I think this is a better way to control the colors.

Thanks Mark.


Tor Olav


Mark James Lewin wrote:
> 
> Tor,
>         Have you tried 'average'? I have used this to achieve similar control as
your
> technique (though not so complicated). Here is how I do it...
> 
> #declare F_Red = function{(sin(x)+sin(y)+sin(z)+3)/6}
> // Or any function between 0 and 1
> 
> #declare F_Green =function{(cos(x)+cos(y)+cos(z)+3)/6}
> #declare F_Blue =function{(sin(-x)+sin(-y)+sin(-z)+3)/6}
> 
> #declare P_Red =
> pigment
>         {
>         function{F_Red(x,y,z)}
>         colour_map
>                 {
>                 [0 rgb <0,0,0>][1 rgb <3,0,0>]
>                 // Note the colour max is 3, not 1
>                 }
>         }
> 
> #declare P_Green =
> pigment
>         {
>         function{F_Green(x,y,z)}
>         colour_map
>                 {
>                 [0 rgb <0,0,0>][1 rgb <0,3,0>]
>                 }
>         }
> 
> #declare P_Blue =
> pigment
>         {
>         function{F_Blue(x,y,z)}
>         colour_map
>                 {
>                 [0 rgb <0,0,0>][1 rgb <0,0,3>]
>                 }
>         }
> 
> #declare P_Average =
> pigment
>         {
>         average
>         pigment_map
>                 {
>                 [1 P_Red]
>                 [1 P_Green]
>                 [1 P_Blue]
>                 }
>         }
> 
> Then you have a pigment with control over rgb channels without semi transperent
layers.


Post a reply to this message

From: Tor Olav Kristensen
Subject: Re: Squirted pigments (34KB)
Date: 30 Sep 2001 00:55:41
Message: <3BB66D82.5E0E7A38@hotmail.com>
Steve wrote:
> 
> On Thu, 27 Sep 2001 03:16:36 +0200, Tor Olav Kristensen wrote:
> 
> >A sphere with a crackle pattern scaled by a
> >noise function and colored with 4 semi-
> >transparent layers of function controlled
> >pigment colors.
> 
> >This is fun !
> >
> >POV-Ray v3.5 (of course).
> >
> 
> Sweet.
> 
> It'll be good when we get the Linux version.  But where would I
> find the time?

Thank you Steve.
I too lack time to experiment - And uP speed   =(

Tor Olav


Post a reply to this message

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