SECTION 7.3
541
Transparency Groups
computation is essentially the same as the unsimplified color compositing for-
mula given in Section 7.2.5, “Interpretation of Alpha,” but using a source shape
of 1.0.)
α
t
=
Union
(
α
g
,
q
s
)
b
i
C
t
=
(
1
q
s
) ×
α
b
×
C
b
+
q
s
× ( (
1
α
b
) ×
C
s
+
α
b
×
B
i
(
C
b
,
C
s
)
)
i
i
i
i
2. Compute a weighted average of this result with the object’s immediate back-
drop, using the source shape as the weighting factor. Then normalize the result
color by the result alpha:
α
g
=
(
1
f
s
) ×
α
g
i
i
i
1
i
+
f
s
×
α
t
i
α
i
=
Union
(
α
0
,
α
g
)
(
1
f
s
) ×
α
i
1
×
C
i
1
+
f
s
×
C
t
i
i
C
i
= ----------------------------------------------------------------------------------
α
i
This averaging computation is performed for both color and alpha. The formulas
above show this averaging directly. The formulas in Section 7.3.7, “Summary of
Group Compositing Computations,” are slightly altered to use source shape and
alpha rather than source shape and opacity, avoiding the need to compute a
source opacity value explicitly. (Note that
C
t
there is slightly different from
C
t
above: it is premultiplied by
f
s
.)
i
The extreme values of the source shape produce the straightforward knockout
effect. That is, a shape value of 1.0 (inside) yields the color and opacity that result
from compositing the object with the initial backdrop. A shape value of 0.0 (out-
side) leaves the previous group results unchanged. The existence of the knockout
feature is the main reason for maintaining a separate shape value rather than only
a single alpha that combines shape and opacity. The separate shape value must be
computed in any group that is subsequently used as an element of a knockout
group.
A knockout group can be isolated or non-isolated; that is,
isolated
and
knockout
are independent attributes. A non-isolated knockout group composites its top-
most enclosing element with the group’s backdrop. An isolated knockout group
composites the element with a transparent backdrop.
Index Bookmark Pages Text
Previous Next
Pages: Index All Pages
This HTML file was created by VeryPDF PDF to HTML Converter product.