ultra simple artnet addon for openFrameworks
Forks
Forks pushed to more recently than hiroyuki/ofxArtnet itself, plus any admin-confirmed fork with commits of its own — worth checking if you're hitting issues with the original.
README
ofxArtnet
openframeworks addon for ArtNet
Note: This addon is seperate from the old version which uses libartnet. In case you still need the old version, please checkout the legacy branch.
Overview
<img src="https://art-net.org.uk/wp-content/uploads/2016/09/Art-Net-banner-e1474475270322.png">ofxArtnet allows the sending and recieving of Art-Net data within OpenFrameworks.
Basic Usage
Sending simple data over ArtNet.Initialize an FBO and ArtNet Sender
``C++ ofFbo sendData; ofxArtnetSender artnet;
Allocate the frame buffer and ArtNet sender
C++ string targetIp = "127.0.0.1"; int width = 170; int height = 1; int internalformat = GL_RGB; sendData.allocate(width, height, internalformat); artnet.setup(targetIP);
Draw to the frame buffer and send to artnet
C++ sendData.begin(); ofClear(0); ofSetColor(color); ofDrawRectangle(0, 0, sendData.getWidth(), 1); sendData.end();
// Convert the frame buffer to ofPixels ofPixels data; sendData.readToPixels(data);
// Send the pixel data over Artnet artnet.sendArtnet(data); ``Documentation
See Wiki for Documentation
Examples
Send Data over ArtNet Send Threaded Data Over ArtNet
ofxAddons