Hey all, I noticed that FBO’s contents won’t render properly (e.g. fboExample) as their y-coordinate is flipped by default.
- edit: this applies to the git version of openframeworks/master as of 26.01.2011
When ofFBO calls ofViewport in its begin() method, no value is passed to the 5th parameter, invertY, which defaults to TRUE.
I resolved this by calling ofViewport() with the ‘invertY’ value set to FALSE.
ofFbo.cpp / line 315:
ofViewport(0, 0, getWidth(), getHeight());
ofViewport(0, 0, getWidth(), getHeight(),false);
now fboExample renders as expected
Hope someone finds this useful.
Keep up the good work!