jvcleave / ofxRPiCameraVideoGrabber

development of ofxRPiCameraVideoGrabber, an addon to control the native Raspberry Pi camera in openFrameworks
89 stars 17 forks source link

White screen #30

Open rihani opened 8 years ago

rihani commented 8 years ago

I have an issue on the "example-texture-mode" , when resizing the screen to 720x480 i.e. omxCameraSettings.width = 720; omxCameraSettings.height = 480;

The screen goes white? I have setup on my RPI1 revB 256 GPU RAM.

I do not however have this issue on 1280x720 omxCameraSettings.width = 1280; omxCameraSettings.height = 720;

please if you may help.

note that i have changed the main.cpp to the below

#include "ofMain.h"
#include "ofApp.h"
#if (OF_VERSION_MINOR != 9) && defined(TARGET_OPENGLES)
#include "ofGLProgrammableRenderer.h"
#endif

#define FORCE_PROGRAMMMABLE 1

#ifdef FORCE_PROGRAMMMABLE
#include "ofGLProgrammableRenderer.h"
#endif
int main()
{
    ofSetLogLevel(OF_LOG_VERBOSE);
#if defined(TARGET_OPENGLES)
#if (OF_VERSION_MINOR == 9)
    ofGLESWindowSettings settings;
    settings.width = 720;
    settings.height = 480;
    settings.setGLESVersion(2);
    ofCreateWindow(settings);
#else
    ofSetLogLevel("ofThread", OF_LOG_ERROR);
    ofSetCurrentRenderer(ofGLProgrammableRenderer::TYPE);
    ofSetupOpenGL(720, 480, OF_WINDOW);
#endif
#else
#ifdef FORCE_PROGRAMMMABLE
    ofGLWindowSettings glwyindowsettings
    glWindowSettings.width = 720;
    glWindowSettings.height = 480;
    glWindowSettings.setGLVersion(3, 2);
    ofCreateWindow(glwyindowsettings)
#else
    ofSetLogLevel("ofThread", OF_LOG_ERROR);
    ofSetupOpenGL(720, 480, OF_WINDOW);
#endif

#endif
    ofRunApp( new ofApp());
}
```;;