[osg-users] New glTexStorage code is disrupting FBO initialization
Julien Valentin
julienvalentin51 at gmail.com
Fri Aug 10 12:16:24 PDT 2018
I debugged osgprerender
It was the unsized texture format:
changing GL_RGBA to GL_RGBA8
i'll patch the example
but you have to patch osgearth
gwaldron wrote:
> Julian,New information: In osgEarth we use Camera::attach like so:
>
>
> rttCamera->attach(osg::Camera::COLOR_BUFFER0, texture);
>
>
> If I replace COLOR_BUFFER0 with COLOR_BUFFER, it works. Been using the former since forever but maybe it was wrong.
>
>
> Glenn Waldron
>
>
>
>
>
>
>
>
> On Fri, Aug 10, 2018 at 12:39 PM Julien Valentin < ()> wrote:
>
>
> > Hi
> > It's weird that immutable texture interact with fbo render to texture.
> > I've done a lot of FBORTT since this commit and haven't seen any problem
> > Are you sure your problem come from here?
> > Try to replicate the behavior in a simple example code please
> >
> > Cheers
> >
> >
> > gwaldron wrote:
> >
> > > Robert,
> > >
> > >
> > > We recently pulled the latest master branch of OpenSceneGraph, and found that FBOs in osgEarth no longer initialize properly. We narrowed the problem down to this commit which appears to introduce the usage of glTexStorage:
> > >
> > >
> > > https://github.com/openscenegraph/OpenSceneGraph/commit/7be09e8dcd1ed63eb501c12bb7c8df6f6902783b (https://github.com/openscenegraph/OpenSceneGraph/commit/7be09e8dcd1ed63eb501c12bb7c8df6f6902783b) (https://github.com/openscenegraph/OpenSceneGraph/commit/7be09e8dcd1ed63eb501c12bb7c8df6f6902783b (https://github.com/openscenegraph/OpenSceneGraph/commit/7be09e8dcd1ed63eb501c12bb7c8df6f6902783b))
> > >
> > >
> > > We are seeing output like the following.
> > >
> > >
> > > RenderStage::runCameraSetUp(), FBO setup failed, FBO status= 0x8cd6
> > >
> > > Warning: RenderStage::runCameraSetUp(State&) Pbuffer does not support multiple color outputs.
> > > ContextData::incrementContextIDUsageCount(0) to 2
> > > Warning: detected OpenGL error 'invalid enumerant' after applying attribute Viewport 000002517C076560
> > > RenderStage::runCameraSetUp(), FBO setup failed, FBO status= 0x8cd6
> > > Warning: RenderStage::runCameraSetUp(State&) Pbuffer does not support multiple color outputs.
> > > ContextData::incrementContextIDUsageCount(0) to 3
> > >
> > >
> > > The "osgprerender" example still seems to work but generates FBO warnings as well. I have not had a chance for a deep-dive yet ... but wanted to make you aware.
> > >
> > >
> > > Glenn Waldron / osgEarth
> > >
> > > ------------------
> > > Post generated by Mail2Forum
> > >
> >
> >
> > ------------------------
> > Twirling twirling twirling toward freedom
> >
> > ------------------
> > Read this topic online here:
> > http://forum.openscenegraph.org/viewtopic.php?p=74485#74485 (http://forum.openscenegraph.org/viewtopic.php?p=74485#74485)
> >
> >
> >
> >
> >
> > _______________________________________________
> > osg-users mailing list
> > ()
> > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org (http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org)
> >
>
>
> ------------------
> Post generated by Mail2Forum
------------------------
Twirling twirling twirling toward freedom
------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=74489#74489
More information about the osg-users
mailing list