How to Flip the FBO left and right?

I know the ofImage can use

 flipPic.mirror(false, true);

Is there a convenience way i can do that in FBO?

Not sure, but can you try:

fbo.begin();
ofPushMatrix();
ofScale(-1, 1, 1);

// draw stuff

ofPopMatrix();
fbo.end();
1 Like

Thanks Hennio.That’s a good solution.But i found it have to add ofTranslate before ofScale~

fbo2.begin();
ofPushMatrix();
ofTranslate(fbo.getWidth(), 0);
ofScale(-1, 1, 1);
fbo.draw(0,0);
ofPopMatrix();
fbo2.end();