@Regi wrote:
Hello,
I'm trying to figure out an issue with an FBO.
Basically I have something that draws a glowing sphere. It works OK until I wrap an fbo around it.
If I try to draw the fbo it looses... parts of what it's wrapping around.the good:
the bad:
and then some code that I'm wrapping into the fbo:
ofClear(255, 255, 255, 0);
ofBackground(0,0,0);
glEnable(GL_CULL_FACE);
camera.begin();
ofEnableBlendMode(OF_BLENDMODE_ALPHA);
gradientBackground();
glEnable(GL_DEPTH_TEST);
glDepthMask(true);
solidSphere();
glDisable(GL_DEPTH_TEST);
ofDisableBlendMode();
ofEnableBlendMode(OF_BLENDMODE_ADD);
glow01();
glow02();
glow03();
ofDisableBlendMode();
ofEnableBlendMode(OF_BLENDMODE_ALPHA);
camera.end();
gui.draw();
ofDrawBitmapString(ofToString(ofGetFrameRate());Not even the gui is showing in case of the FBO, I just see a thin outline. Perhaps that's a clue...
The parts that are not showing up are planes with a shader. Other pieces, like a sphere and sprites (also with shaders) are showing up.
Posts: 5
Participants: 2