From 43e5a7ac208edb82aad8dc7f4a60207533936deb Mon Sep 17 00:00:00 2001 From: CodeYan01 <65320293+CodeYan01@users.noreply.github.com> Date: Thu, 16 Feb 2023 12:00:56 +0800 Subject: [PATCH] Just slight improvements. --- Activate-overlay-to-hide-parts-of-the-screen.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Activate-overlay-to-hide-parts-of-the-screen.md b/Activate-overlay-to-hide-parts-of-the-screen.md index ca9f0a9..9e5322d 100644 --- a/Activate-overlay-to-hide-parts-of-the-screen.md +++ b/Activate-overlay-to-hide-parts-of-the-screen.md @@ -6,8 +6,8 @@ The following scene / source setup will be used to achieve this behaviour: ![OBSOverlayActive](https://user-images.githubusercontent.com/19472752/158249054-38bab6c4-a1c0-4d7e-a127-0c12f8381088.PNG) * A single example scene (1) -* A color source used to block certain parts of the screen (2) -* A display capture source to capture the gameplay (3) +* A color source used to block certain parts of the screen, to indicate that the macro successfully matched the pattern (2) +* A game/display capture source to capture the gameplay (3) Toggling the visibility of the color source will either show or hide the production tab, by overlaying a grey box over top off it. @@ -21,7 +21,7 @@ We start by creating a macro to show the color source if the pattern is found: ![VideoCondition1](https://user-images.githubusercontent.com/19472752/158251264-cdb92b15-7552-4b26-956c-b5a0e04f19c6.PNG) -First we create a [video condition](Video-condition) and select "Display Source" as the video source to analyze (1), "matches pattern" as the type of check we want to perform (2), and which pattern file we want to use (3). +First we create a [video condition](Video-condition) and select "Display Capture" as the video source to analyze (1), "matches pattern" as the type of check we want to perform (2), and which pattern file we want to use (3). Next we add an action of type "Scene item visibility" to show the color source if the above condition is met. (4) While this might already work as expected we can tweak the settings of [video condition](Video-condition) for better results and performance: @@ -40,7 +40,7 @@ To achieve this we create a new pattern: ![SC2PatternWithAlpha](https://user-images.githubusercontent.com/19472752/158253510-d5887e2d-0dae-4ca1-b887-8acbcf4b6346.png) ... and select it in the [video condition](Video-condition) (1). -Then we check the "Use alpha channel as mask for pattern" option. +Then we check the "Use alpha channel as mask for pattern" option. Note that the pattern file should be exported *with* transparency, so the file format should support transparency, like png. Next we have to tweak the "Threshold" value to be used. This is best done by clicking the "Show match" option and playing back some example footage.