db&w Support Forum
Welcome, Guest. Please login or register.
Did you miss your activation email?
August 30, 2008, 08:21:28 AM
1918 Posts in 317 Topics by 588 Members
Latest Member: Jasonstawnos
Home Help Search Calendar Login Register
db&w Support Forum  |  exrTrader  |  exrTrader Feature Requests  |  Unpremultiply alpha 0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Go Down Print
Author Topic: Unpremultiply alpha  (Read 298 times)
Anti-Distinctlyminty
LightWrap Closed Group
*
Offline Offline

Posts: 1


View Profile
Unpremultiply alpha
« on: July 24, 2008, 11:35:29 PM »

From my recent experience with Shake, it seems that even if in LW the 'unpremultiply alpha' is selected, the alpha is always premultipled. It would be nice if exrTrader respected this setting Smiley
Logged
lightwolf
infiniMap / exrTrader developer
Administrator
*****
Offline Offline

Posts: 938


Obfuscated SDK Hacker


View Profile WWW
Re: Unpremultiply alpha
« Reply #1 on: July 24, 2008, 11:49:26 PM »

From my recent experience with Shake, it seems that even if in LW the 'unpremultiply alpha' is selected, the alpha is always premultipled. It would be nice if exrTrader respected this setting Smiley
I'll top it.

Instead of respecting it I'll add a checkbox in the processing tab of every layer, so you can un-premultiply separately (by the alpha channel in all cases).

Since I like to pick the nit: Actually it is not the alpha channel that is unpremultiplied, but the RGB channel that is processed.
Basically the colour is boosted by the difference of the current alpha value to the alpha being 100% opaque.
This in turn allows a compositing app to multiply the RGB by the alpha value and get the original colour.

I'll try to add it to the next release.

Cheers,
Mike
Logged

Optimism is an occupational hazard of programming: feedback is the treatment. (Kent Beck)
- skype: lupus_lux -
Pages: [1] Go Up Print 
« previous next »
Jump to: