jvcleave / ofxOMXPlayer

OpenMax accelerated video player for openFrameworks on the Raspberry Pi 0-3. Does not work with RPI4
GNU General Public License v2.0
180 stars 61 forks source link

Can't use texture mode with ofxImGui #123

Closed prisonerjohn closed 6 years ago

prisonerjohn commented 6 years ago

If I run an app that has both ofxOMXPlayer and ofxImGui in it, it looks like the video player texture gets taken over by the imgui texture, because I just see a bunch of glyphs on screen. img_20180510_130648

I have a test app ready here if you want to test (you can just put that in "myApps"): https://drive.google.com/open?id=1ocJtu0n5T0R54GxsUHwfktbabQXKclTH

Any idea what could be happening? I think it's probably a texture reference getting overwritten, but not sure where that would be exactly.

jvcleave commented 6 years ago

This works for some reason

bool guiStarted = false;
void ofApp::draw(){

    if(ofGetFrameNum() == 1)
        {
            gui.setup();
            guiStarted = true;

        }
  if(guiStarted) {
  gui.begin();....
prisonerjohn commented 6 years ago

That's odd... I thought maybe gui.setup() has to get called after loading a video but that's what's already happening in setup().