Re: [svgwg] Opacity properties should affect nothing but opacity

> As you can see, by putting opacity on the <g>, the red and yellow 
rectangles go transparent as a group - the yellow still fully occludes
 the red where they overlap, because they're effectively drawn at 
normal opacity, then made transparent as a group.

This makes sense in certain cases, especially 2D ones.

> (This sort of effect going badly is sometimes seen in early 3D video
 games creating a "ghost" or "vision" by making a character model 
partially transparent. The eyes and teeth/mouth are often separate 
"objects" to the game, so they go transparent separately, leading to a
 frightening "evil skull" effect where you can see their whole eyeball
 and jaw thru their ghost-skin. More modern games properly 
transparent-ify the whole character model together, avoiding this 
effect.)

I'd rather have this than nothing at all (or rather than flattening, 
because flattening is honestly worse than the teeth-behind-the-jaw 
problem), and, in reality, if someone were transparent, you *would* 
see their teeth and eyeballs, so that is valid. 

The latest css-transforms spec removes this feature, which is a bad 
idea. The spec should instead *add* the flattening feature and leave 
the existing feature in tact (while speccing it).

-- 
GitHub Notification of comment by trusktr
Please view or discuss this issue at 
https://github.com/w3c/svgwg/issues/264#issuecomment-249318378 using 
your GitHub account

Received on Friday, 23 September 2016 22:36:24 UTC