Quantcast
Channel: beginners - openFrameworks
Viewing all articles
Browse latest Browse all 4929

ofFbo get color

$
0
0

@novas_fronteiras wrote:

hi, everyone;

i am sending data by dmx from a video as below:

std::vector<uint8_t> artnetData;

r_sky1 = static_cast<unsigned char>(ofMap(player.getPixels().getColor(offXart, offYart).r, 0, 255, mapIn, mapOut);
artnetData.push_back(r_sky1);

ofxArtnetMessage m;
m.setData(artnetData);    
artnet.sendArtnet(m);

but, as I am passing this video inside a cascade of fbos and shaders, would be perfect to getColor from the final Fbo. as I saw, there isnt anything like fbo.getColor(x,y);, but is there any other way i am missing to do it?

thank you!

Posts: 3

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 4929

Trending Articles