Skip to content

reddoLabs/ofxModuleGreenscreen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ofxModuleCanon

Module for ofxModule that chromakeys an image using a manipulated version of ofxChromakeyShader.

Compatible with openFrameworks 0.11.0+

Generate all project files using the openFrameworks Project Generator.

Required Addons

Getting started

Have a look at the sample project to get started directly and have a small explanation here.

Settings

The module can be configured in the settings.json, which is hard since you do not have a direct feedback.

Therefore it is better to use the greenscreenSetup example to configure the parameters.

Communication

Control the module

The module receives ofTexture messages, proceeds them and notifies them back.

To change the background you have to send an ofTexture message to the address ´setBg´.

shared_ptr<ofTexture> texture;
notifyEvent("setBg", texture);

Get messages from the module

The proceeded picture arrives as ofTexture message.

void Presenter::proceedModuleEvent(ModuleEvent& e) {
		
		// update the cam image 
		if (e.type == ModuleEvent::MODULE_EVENT_TEXTURE) {
			proceedTexture = e.texture;
		}
    }

About

Module for ofxModule that chromakeys an image using a manipulated version of ofxChromakeyShader.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published