|
![](/i/fill.gif) |
Mike Williams <nos### [at] econym demon co uk> 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] aol com
#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
|
![](/i/fill.gif) |