Just slight improvements.

CodeYan01
2023-02-16 12:00:56 +08:00
parent 10f23fe0ad
commit 43e5a7ac20

@@ -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.