|
|
"MichaelJF" <mi-### [at] t-onlinede> wrote:
> "Bald Eagle" <cre### [at] netscapenet> wrote:
> > I THINK what you might want to do is embed those into an IMAGE_PATTERN.
> >
> > The image_pattern will use the image file to determine the mapping values.
> > Depending on the mapping value, you can either assign a color, or the "pieces"
> > of the actual image file using image_map.
> >
> > So, for example -
> >
> > #declare ImageMap = pigment {image_map {png "ImageFile.png" once} };
> >
> > texture {
> > image_pattern {png "ImageFile.png" use_alpha once}
> > texture_map {
> > [0.0 SomePigment ]
> > [0.3 AnotherPigment ]
> > [0.6 pigment { ImageMap }]
> > [1.0 pigment { transmit 1 }] // fully transparent
> > }
> > }
>
> Sorry, played around with that, but yield only syntax errors. This seems to be
> better than my first proposal but still needs adjustment:
>
> average pigment_map {
> [0.2 function{PR_FRed(x,y,z)} color_map{[0 rgbt 0][1 rgbt <1,0,0,1>*5]}]
> [0.2 function{PR_FGrn(x,y,z)} color_map{[0 rgbt 0][1 rgbt <0,1,0,1>*5]}]
> [0.2 function{PR_FBlu(x,y,z)} color_map{[0 rgbt 0][1 rgbt <0,0,1,1>*5]}]
> }
>
>
> Best regards,
> Micahel
Hm,
my experiments yielded some acceptable results, but I fear we need some kind of
a transparency map here. In my experiments only the white Areas became
transparent. Most likely one has to use the grayscale values of the image to
parametrise the transparency. But unfortunately I have no idea how to achieve
this, since i'm not an expert with functions in POV.
Post a reply to this message
|
|