Quantcast
Channel: bugs, errors - openFrameworks
Viewing all articles
Browse latest Browse all 636

ofxCvGrayscale image not drawing when using ofGLProgrammableRenderer

$
0
0

@BlindElephants wrote:

I'm working on an installation piece that will use two cameras to track participants' movement as the primary controller for a video projection.

I'm using ofxOpenCv, and using primarily ofxCvGrayscaleImage's, along with ofxCvContourFinder to find blobs.

I'm also using shaders that I've written for the video output. In my main.cpp file, I have the following:

#include "ofMain.h"
#include "ofApp.h"
#include "ofAppGLFWWindow.h"
#include "ofGLProgrammableRenderer.h"

//========================================================================
int main( ){
    ofAppGLFWWindow window;
    window.setMultiDisplayFullscreen(true);
    ofSetCurrentRenderer(ofGLProgrammableRenderer::TYPE);
	ofSetupOpenGL(&window,1024,768,OF_WINDOW);
	ofRunApp(new ofApp());
}

In this case, my ofxCvGrayscale images are not being drawn to my screen (not necessary for the FINAL output, but needed for setup / calibration). If I comment out "ofSetCurrentRenderer(ofGLProgrammableRenderer::TYPE);", then those images will be drawn properly.

Any alternative to get those images to draw while the programmable renderer is active? I need it for those flashy shaders!

Thanks!

Posts: 3

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 636

Trending Articles