POV-Ray : Newsgroups : povray.advanced-users : Saturation Server Time
28 Jul 2024 18:18:09 EDT (-0400)
  Saturation (Message 11 to 14 of 14)  
<<< Previous 10 Messages Goto Initial 10 Messages
From: Dave Dunn
Subject: Re: Saturation
Date: 5 May 2005 12:25:00
Message: <web.427a47b7fa7d88264ce44b20@news.povray.org>
Mike Williams <nos### [at] econymdemoncouk> wrote:
> When I want to grab loads of colours from something like a cloudscape I
> convert the image to a GIF, load it into IrfanView and export the
> palette in PAL format.
>
> In PAL format you get an ascii file with three lines of junk, then a
> list of the RGB values of each palette entry. If you tweak the file by
> inserting commas everywhere, you can #read the data with POV, divide by
> 255 and populate a colour_map.
>
> --
> Mike Williams
> Gentleman of Leisure

That is absolutely brilliant. One thing I have always hated is sitting there
building color_maps by hand. You have truly earned your title, "Man of
Leisure." Thanks for the tip.

//Dave Dunn - hos### [at] aolcom
#local D = union { torus {1,.1 clipped_by {plane {-x,0}}} sphere
{<0,0,1>,.1} sphere {<0,0,-1>,.1} cylinder {<0,0,-1>,<0,0,1>,.1} pigment
{rgb .8} finish {ambient .5 reflection {.5}} rotate x*-90 translate
<-.5,.5,5>} object {D} object {D translate <.5,-1,0>} plane {y,-2 pigment
{checker rgb 1, rgb 0 scale 5} finish {ambient .5}}


Post a reply to this message

From: Mike Williams
Subject: Re: Saturation
Date: 5 May 2005 14:29:45
Message: <WxU2TEAVWmeCFwj8@econym.demon.co.uk>
Wasn't it Dave Dunn who wrote:
>Mike Williams <nos### [at] econymdemoncouk> wrote:
>> When I want to grab loads of colours from something like a cloudscape I
>> convert the image to a GIF, load it into IrfanView and export the
>> palette in PAL format.
>>
>> In PAL format you get an ascii file with three lines of junk, then a
>> list of the RGB values of each palette entry. If you tweak the file by
>> inserting commas everywhere, you can #read the data with POV, divide by
>> 255 and populate a colour_map.
>>
>> --
>> Mike Williams
>> Gentleman of Leisure
>
>That is absolutely brilliant. One thing I have always hated is sitting there
>building color_maps by hand. You have truly earned your title, "Man of
>Leisure." Thanks for the tip.

I must confess that the technique is not entirely original with me. It's
commonly used to produce colour maps for fractals with programs like
Fractint or Ultrafractal. In fact a Fractint .MAP file looks very much
like an IrfanView .PAL file with the first three lines deleted. I just
spotted that you can do the same thing with POV, with a bit more
processing.

-- 
Mike Williams
Gentleman of Leisure


Post a reply to this message

From: Dave Dunn
Subject: Re: Saturation
Date: 5 May 2005 14:55:00
Message: <web.427a6b0afa7d88264ce44b20@news.povray.org>
Mike Williams <nos### [at] econymdemoncouk> wrote:
> I must confess that the technique is not entirely original with me. It's
> commonly used to produce colour maps for fractals with programs like
> Fractint or Ultrafractal. In fact a Fractint .MAP file looks very much
> like an IrfanView .PAL file with the first three lines deleted. I just
> spotted that you can do the same thing with POV, with a bit more
> processing.
>
> --
> Mike Williams
> Gentleman of Leisure

Funny how synchronicity works. Just after I read your post, I was reading
some other stuff about blending image maps and procedurals on the same
object. This technique would be perfect in terms of assuring continuity
between the colors.


//Dave Dunn - hos### [at] aolcom
#local D = union { torus {1,.1 clipped_by {plane {-x,0}}} sphere
{<0,0,1>,.1} sphere {<0,0,-1>,.1} cylinder {<0,0,-1>,<0,0,1>,.1} pigment
{rgb .8} finish {ambient .5 reflection {.5}} rotate x*-90 translate
<-.5,.5,5>} object {D} object {D translate <.5,-1,0>} plane {y,-2 pigment
{checker rgb 1, rgb 0 scale 5} finish {ambient .5}}


Post a reply to this message

From: Ross
Subject: Re: Saturation
Date: 13 May 2005 16:58:22
Message: <428514ee@news.povray.org>
"Orchid XP v2" <voi### [at] devnull> wrote in message
news:426a5b6a@news.povray.org...
>
> Hmm... never ever tried doing that... (Although I do remember somebody
> tried using lights with negative RGB values to see what would happen.)

i did a reflection with a negative exponant value and it was kinda weird.
not pretty, just weird :)


Post a reply to this message

<<< Previous 10 Messages Goto Initial 10 Messages

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