model-element icon indicating copy to clipboard operation
model-element copied to clipboard

How to force a background color to fully opaque?

Open zachernuk opened this issue 10 months ago • 2 comments

As we've discussed, a stereoscopically-rendered model probably shouldn't have a transparent background. Given that this is specified by CSS, what do we do with colors that are transparent? Is it better to ignore the alpha value and use the RGB as-is, or should it be multiplied down in some manner by the alpha?

/issue

(I think a monoscopic model does make sense to be rendered with a transparent background. I don't know the right way to square that.)

zachernuk avatar Feb 24 '25 18:02 zachernuk

/agenda

AdaRoseCannon avatar Feb 24 '25 18:02 AdaRoseCannon

From today's discussion: It's clear that we want an option for developers to indicate that they want to force monoscopic, non-head-tracked display of a model element regardless of hardware capabilities. In that case there shouldn't be many, if any, restrictions on the CSS applied to the element.

For content that can be upgraded to stereo presentation, there's an open question about whether or not CSS styles that interfere with it (such as transparent backgrounds of certain CSS transforms) are forbidden from taking effect or cause the element to be forced into monoscopic mode. This is likely something that needs communication with the CSS WG to determine the best path forward. In any case, if the developer does something that may unintentionally prevent the element's ability to display stereoscopically there should be communication about that from the browser's dev tools, which could be silenced by explicitly opting-in to the forced monoscopic mode.

toji avatar Feb 25 '25 19:02 toji