Hmmm. I've only checked visually, but when rendering on an image I can't
see through the text. If you get transparency I must be doing
something wrong.
I'm not in front of a computer at the moment, but I'll try and break down
my process and see if I can figure it out.
I'll let you know what I find.

Thanks,





On Tue, May 25, 2021, 21:01 Larry Gritz <l...@larrygritz.com> wrote:

> Works for me. How are you determining that there is "no difference in
> transparency"? Are you inspecting the alpha values in the output file? Are
> you compositing on top of something?
>
>
> On May 25, 2021, at 11:58 AM, Daniel Flehner Heen <flehnerhee...@gmail.com>
> wrote:
>
> Sorry, should have been more specific.
> There seems to be no difference in the text's transparency for values
> between 0.1 and 1.0 for the alpha channel.
>
> On Tue, May 25, 2021, 20:48 Larry Gritz <l...@larrygritz.com> wrote:
>
>> What happens, specifically?
>>
>>
>> On May 25, 2021, at 6:31 AM, Daniel Flehner Heen <flehnerhee...@gmail.com>
>> wrote:
>>
>> Hi!
>>
>> I'm attempting to render text with 40% opacity in python without success.
>> OIIO 2.2.10.1
>>
>> ``` python
>> import OpenImageIO as oiio
>> buf = oiio.ImageBuf(oiio.ImageSpec(640, 480, 4 oiio.FLOAT))
>> oiio.ImageBufAlgo.render_text(buf, 100, 200, "Hello, World!", 60,
>> "FreeSans", (1, 1, 1, 0.4))
>> buf.write('transparent_text_test.exr')
>> ```
>>
>> Am I doing something wrong?
>> Any pointers would be greatly appreciated.
>>
>> Thanks,
>>
>> --
>> -Daniel
>> _______________________________________________
>> Oiio-dev mailing list
>> Oiio-dev@lists.openimageio.org
>> http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org
>>
>>
>> --
>> Larry Gritz
>> l...@larrygritz.com
>>
>>
>>
>>
>> _______________________________________________
>> Oiio-dev mailing list
>> Oiio-dev@lists.openimageio.org
>> http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org
>>
> _______________________________________________
> Oiio-dev mailing list
> Oiio-dev@lists.openimageio.org
> http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org
>
>
> --
> Larry Gritz
> l...@larrygritz.com
>
>
>
>
> _______________________________________________
> Oiio-dev mailing list
> Oiio-dev@lists.openimageio.org
> http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org
>
_______________________________________________
Oiio-dev mailing list
Oiio-dev@lists.openimageio.org
http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org

Reply via email to