+ fix transparency problem, support antialiasing, background color issue

This commit is contained in:
wmayer
2014-11-08 23:06:53 +01:00
parent 99caf6d015
commit efe414e4c2
2 changed files with 7 additions and 3 deletions

View File

@@ -1235,6 +1235,7 @@ void View3DInventorViewer::renderToFramebuffer(QGLFramebufferObject* fbo)
glDepthRange(0.1,1.0);
SoGLRenderAction gl(SbViewportRegion(width, height));
gl.setTransparencyType(SoGLRenderAction::SORTED_OBJECT_SORTED_TRIANGLE_BLEND);
gl.apply(this->backgroundroot);
gl.apply(this->getSoRenderManager()->getSceneGraph());
gl.apply(this->foregroundroot);