ofBackgroundGradient() messing with video recording

#1

Hi all,
It seems that using ofBackgroundGradient() with ofxVideoRecorder doesnt work:

It functions normally when I use ofBackground() in the fbo, however I get a blank screen when I use the gradient method.

Has anyone ever experienced this? More importantly, what other methods can I use to achieve a background gradient in my sketch, that wouldn’t freak out the fbo?

Just a heads up, I’m working in 3D and my camera orbits around the primitive, so the GL_QUADS method that has been posted in a previous thread doesn’t really work for my purposes.

Any help would be appreciated!

#2

Heres a code snippet:

    recordFbo.begin();
    ofClear(0,0,0,255);
    recordFbo.draw(0,0);
    ofBackground(0); //This Works
    //ofBackgroundGradient(ofColor::gold, ofColor::darkRed, OF_GRADIENT_LINEAR); //This doesn't work
    cam.begin();
    cam.orbit(angle, 0, distance);
    ofSetColor(254, 180);
    lowResSphere.drawWireframe();
    
    for (auto p:pArr) {
        p->flock(pArr);
        p->edges();
        p->update();
        p->draw();
    }
    
    cam.end();
    recordFbo.end();