<div dir="ltr">Julian,<div>New information: In osgEarth we use Camera::attach like so:</div><div><br></div><div> rttCamera->attach(osg::Camera::COLOR_BUFFER0, texture);</div><div><br></div><div>If I replace COLOR_BUFFER0 with COLOR_BUFFER, it works. Been using the former since forever but maybe it was wrong.</div><div><br></div><div><div><div dir="ltr" class="gmail_signature"><div class="gmail_signature"><div dir="ltr"><div>Glenn Waldron</div></div></div></div></div><br></div></div><br><div class="gmail_quote"><div dir="ltr">On Fri, Aug 10, 2018 at 12:39 PM Julien Valentin <<a href="mailto:julienvalentin51@gmail.com">julienvalentin51@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi<br>
It's weird that immutable texture interact with fbo render to texture.<br>
I've done a lot of FBORTT since this commit and haven't seen any problem<br>
Are you sure your problem come from here?<br>
Try to replicate the behavior in a simple example code please<br>
<br>
Cheers<br>
<br>
<br>
gwaldron wrote:<br>
> Robert,<br>
> <br>
> <br>
> 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:<br>
> <br>
> <br>
> <a href="https://github.com/openscenegraph/OpenSceneGraph/commit/7be09e8dcd1ed63eb501c12bb7c8df6f6902783b" rel="noreferrer" target="_blank">https://github.com/openscenegraph/OpenSceneGraph/commit/7be09e8dcd1ed63eb501c12bb7c8df6f6902783b</a> (<a href="https://github.com/openscenegraph/OpenSceneGraph/commit/7be09e8dcd1ed63eb501c12bb7c8df6f6902783b" rel="noreferrer" target="_blank">https://github.com/openscenegraph/OpenSceneGraph/commit/7be09e8dcd1ed63eb501c12bb7c8df6f6902783b</a>)<br>
> <br>
> <br>
> We are seeing output like the following. <br>
> <br>
> <br>
> RenderStage::runCameraSetUp(), FBO setup failed, FBO status= 0x8cd6<br>
> <br>
> Warning: RenderStage::runCameraSetUp(State&) Pbuffer does not support multiple color outputs.<br>
> ContextData::incrementContextIDUsageCount(0) to 2<br>
> Warning: detected OpenGL error 'invalid enumerant' after applying attribute Viewport 000002517C076560<br>
> RenderStage::runCameraSetUp(), FBO setup failed, FBO status= 0x8cd6<br>
> Warning: RenderStage::runCameraSetUp(State&) Pbuffer does not support multiple color outputs.<br>
> ContextData::incrementContextIDUsageCount(0) to 3<br>
> <br>
> <br>
> 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.<br>
> <br>
> <br>
> Glenn Waldron / osgEarth<br>
> <br>
> ------------------<br>
> Post generated by Mail2Forum<br>
<br>
<br>
------------------------<br>
Twirling twirling twirling toward freedom<br>
<br>
------------------<br>
Read this topic online here:<br>
<a href="http://forum.openscenegraph.org/viewtopic.php?p=74485#74485" rel="noreferrer" target="_blank">http://forum.openscenegraph.org/viewtopic.php?p=74485#74485</a><br>
<br>
<br>
<br>
<br>
<br>
_______________________________________________<br>
osg-users mailing list<br>
<a href="mailto:osg-users@lists.openscenegraph.org" target="_blank">osg-users@lists.openscenegraph.org</a><br>
<a href="http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org" rel="noreferrer" target="_blank">http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org</a><br>
</blockquote></div>