|
|
I'm experimenting a bit with image-based pigments and such, trying to create
my own little SDL Compositing Tool... :-)
Now, BMP's don't come with alpha, PNG and TGA do, and PNG even comes with
inbuilt Gamma (which'll get gamma-corrected automatically by POV-Ray).
Anyways, POV-Ray uses the alpha-channel of images for transparency. I've
looked around the Docs and found use_alpha, but I haven't found an inverse
of that, e.g. which would turn an image with alpha into a pigment without
transparency. Any pointers? Otherwise I'd probably run it through a function
to extract red, green and blue.
Regards,
Tim
--
aka "Tim Nikias v2.0"
Homepage: <http://www.nolights.de>
Post a reply to this message
|
|
|
|
> > which would turn an image with alpha into a pigment without
> > transparency.
>
> Use layered textures.
Hm. Might be an option. I'll have to experiment a little how POV-Ray handles
various things with functions, pigments and image-maps to see if it does
work with the other scripts I'm trying to implement.
What I wanted to do was to create functions from images, to allow
transparency-mapping, gamma-correction, color-correction and a few basic
compositing/masking steps, so that I could do my compositing in POV-Ray. :-)
I'm not sure if layered textures will work properly with what I have in
mind, I had hoped that there was some simple way to "disable" the
alpha-channel from TGA and PNG (aside of running it through a function to
extract rgb).
Thanks anyway,
regards,
Tim
--
aka "Tim Nikias v2.0"
Homepage: <http://www.nolights.de>
Post a reply to this message
|
|