Search - User list
Full Version: "texture" function not support do not pre multiply alpha
Root » Technical Discussion » "texture" function not support do not pre multiply alpha
Bytedance
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.
jsmack
I've not seen this before. Each channel is read independently. I use textures with zero data in the alpha without issues.
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.
TaoChen
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.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Powered by DjangoBB