If Alpha is 0, then do not have a way to access the origin rgb values.
Anyone knows what can I do to use VEX get rgba without pre multiply alpha. Thanks a lot.
"texture" function not support do not pre multiply alpha
1298 3 0- Bytedance
- Member
- 1 posts
- Joined: Oct. 2019
- Offline
- jsmack
- Member
- 7794 posts
- Joined: Sept. 2011
- Online
- mestela
- Member
- 1743 posts
- Joined: May 2006
- Offline
I found this with PNG. Support told me to set an envvar to tell it to not automatically premult:
The other way is to load the image through cops, set the premult/unpremult on the file cop, and reference the image into your vex wrangle via the op: syntax.
export OPENIMAGEIO_IMAGECACHE_OPTIONS=unassociatedalpha=1.max_memory_MB=8192
The other way is to load the image through cops, set the premult/unpremult on the file cop, and reference the image into your vex wrangle via the op: syntax.
- TaoChen
- Member
- 3 posts
- Joined: April 2018
- Offline
mestela
I found this with PNG. Support told me to set an envvar to tell it to not automatically premult:export OPENIMAGEIO_IMAGECACHE_OPTIONS=unassociatedalpha=1.max_memory_MB=8192
The other way is to load the image through cops, set the premult/unpremult on the file cop, and reference the image into your vex wrangle via the op: syntax.
Hellow, Where is this added to?
I added Variables, it didn't work.
-
- Quick Links