Aller au contenu

Photo

The mathematics of transparency


  • Veuillez vous connecter pour répondre
4 réponses à ce sujet

#1
s e n

s e n
  • Members
  • 408 messages
So I need a bit help to calculate stratified transparency: lets say I want to get the exact amount of transparency (opacity, whatever) I have in a single mesh, but using 2 meshes. so, for example I get 50% opacity with a mesh, and I want to get the same amount by combining 2: the exact formula, thats what I need :)

if I use two 29% meshes, I get the about the same amout of using a single 50% opaque one.
what if I use a 21% opaque, and I want to reach an overall 50% opacity?

#2
s e n

s e n
  • Members
  • 408 messages
I think I have found the relation, given:

Ot = overall opacity
O1 = mesh 1 opacity
O2 = mesh 2 opacity

O2 = (Ot - O1) / (1 - O1)

and so

Ot = O1 + O2 * (1 - O1)

almost sure (hate maths :P)

#3
Rolo Kipp

Rolo Kipp
  • Members
  • 2 791 messages
<sticking his tongue out...>

So then, O2 = (50%-21%)/(1-21%) or
O2 = (.5-.21)/(1-.21) or
O2 = (.29)/(.79) or
O2 = 37%?

Interesting, and potentially very useful... especially for seamless fluids blending ;-)

<...the side of his mouth to help him>

#4
s e n

s e n
  • Members
  • 408 messages
O2 = (0,50 - 0,21) / (1 - 0,21) = 0,367

you can try the results with layers in ps for verify this, of course blending is normal

#5
Frimbleglim

Frimbleglim
  • Members
  • 25 messages
Interesting that the relation isn't commutative.