Skip to content

Video transparency in video sensing doesn't go all the way invisible #4888

Closed
scratchfoundation/scratch-vm
#2292
@BryceLTaylor

Description

@BryceLTaylor

Expected Behavior

Setting the video transparency to 100 using the video sensing block set video transparency to 100 block should cause the video to be totally transparent, and not visible.

Actual Behavior

set video transparency block to 100 seems to make the parts of the video that are white be white and the things that are dark to be clear. It seems to be using the brigthness channel to affect the transparency in some way.

Transparency100videoSensingPurple

The color that you set the background to seems to matter. This issue is not observable if you set the backdrop to white, but the contrast changes depending on what color the backdrop is.

White/Clear backdrop at 100% transparency:
transparency100videoSensingWhite

Purple backdrop at 100% transparency:
Transparency100videoSensingPurple

Here is an example project made by @ericrosenbaum to illustrate that. scratch.mit.edu/projects/314377995

It is also worth noting that less transparent video sensing makes the colors look strange.

50% transparent on white backdrop:
Screen Shot 2019-06-04 at 11 35 38 AM

50% transparent on purple backdrop:
Transparency50videoSensingPurple

Steps to Reproduce

Create a new project
Add the video sensing extension
Turn video on
Note: the colors in the video look a little desaturated
Drag out a Set video transparency block to block out
Set the value to 100 and run the block
Note: the video appears to disappear
Add a backdrop, it's easy to see if it is a solid color
Note: the video on the stage is still visible.

Operating System and Browser

Mac Chrome, Mac Safari

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions