[osg-users] OSG_TEXTURE_POOL_SIZE issue
Hi, Robert, I believe we encountered an issue (bug?) related to maxTexturePoolSize handling. Our application is osgEarth + few high res overlays. We set OSG_TEXTURE_POOL_SIZE = 350 MB. It was recommended to us as one of env vars to let osgEarth perform optimally. Overlays are rendered as RTT cameras (FBO + 4K x4K texture2D attachments). Overlay textures are not refreshed every frame. They are refreshed when some inputs change but this does not happen every frame. And apparently thats the problem with maxTexturePoolSize. When we pass the texture limit and create new overlay texture, one of currently used overlay texture GL objects gets stolen. Suddenly new overlay uses that old GL texture object but old overlay texture is reset, its texture object is gone and scene looks bad. I have isolated this issue to handling of maxTexturePoolSize limit in TextureObjectSet::takeOrGenerate(Texture* texture). I believe I understand that this policy may work with Textures which have Images attached. Even if such texture has its GL object reset it may allocate or reuse new one and reload the data from Image when its applied again. But there is no such chance for texture which was dynamically rendered in FBO (and in fact still attached to that FBO). In our app there is a multitude of textures with images associated. Their GL objects can be safely "borrowed" if memory limit is passed. But non of them is taken and unfortunately we are hit exactly where it hurts the most: in our FBO overlays. So my question is: Is this a bug or we missed some flag to prevent texture from scraping in TextureObjectSet::takeOrGenerate ? Cheers, Wojtek Lewandowski ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] bug: new OpenSceneGraph-3.5.5 threading...
Hi Li, I'm not a Windows expert so can't provide answers on Windows specific issues like this. My guess Windows 10 has introduced some form of window scaling that the osgViewer isn't yet aware of so doesn't take account of. To resolve this issue will require a Windows 10 dev to dive in an investigate. Robert. On 8 October 2016 at 18:31, Li Chiwrote: > Hi, > > I tested the newest code, it works perfectly, thank you very much. > > Just another problem: > Under the windows 10 OS (may be other OS has the same result), when screen's > TEXT SIZE isn't 100% (my computer's setting is 150%), the osgViewer.exe's > full screen mode works a little odd. It just like some of the screen content > is cutted, please see the attached screenshot picture. > > Thank you! > > Cheers, > Li > > -- > Read this topic online here: > http://forum.openscenegraph.org/viewtopic.php?p=68915#68915 > > > > > Attachments: > http://forum.openscenegraph.org//files/screenshot_970.jpg > > > ___ > osg-users mailing list > osg-users@lists.openscenegraph.org > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] bug: new OpenSceneGraph-3.5.5 threading...
Hi, I tested the newest code, it works perfectly, thank you very much. Just another problem: Under the windows 10 OS (may be other OS has the same result), when screen's TEXT SIZE isn't 100% (my computer's setting is 150%), the osgViewer.exe's full screen mode works a little odd. It just like some of the screen content is cutted, please see the attached screenshot picture. Thank you! Cheers, Li -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=68915#68915 Attachments: http://forum.openscenegraph.org//files/screenshot_970.jpg ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] bug: new OpenSceneGraph-3.5.5 threading...
HI Li, Thanks for the stack trace. I've spotted the bug. The osg::Camera::setCameraThread() method was setting attempting to set the camera thread affinity even when the thread pointer was reset to null. I have just checked in a fix for this. Could you try out the OSG git master to double check it works fine. Thanks, Robert. On 8 October 2016 at 13:16, Li Chiwrote: > Hi, > > I just tested standard osgviewer, all things seems good, not errors happed. > > CompositeViewer Crash Stack Trace Here: > > ot20-OpenThreadsd.dll!OpenThreads::Thread::setProcessorAffinity(const > OpenThreads::Affinity & affinity) Row 617 C++ > osg145-osgd.dll!osg::Camera::setCameraThread(osg::OperationThread * > gt) Row 553 C++ > osg145-osgViewerd.dll!osgViewer::ViewerBase::stopThreading() Row 336 > C++ > osg145-osgViewerd.dll!osgViewer::CompositeViewer::~CompositeViewer() > Row 106 C++ > [...] > osgsidebysided.exe!main(int argc, char * * argv) Row 261C++ > > > Thank you! > > Cheers, > Li > > -- > Read this topic online here: > http://forum.openscenegraph.org/viewtopic.php?p=68913#68913 > > > > > > ___ > osg-users mailing list > osg-users@lists.openscenegraph.org > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] bug: new OpenSceneGraph-3.5.5 threading...
Hi, I just tested standard osgviewer, all things seems good, not errors happed. CompositeViewer Crash Stack Trace Here: ot20-OpenThreadsd.dll!OpenThreads::Thread::setProcessorAffinity(const OpenThreads::Affinity & affinity) Row 617 C++ osg145-osgd.dll!osg::Camera::setCameraThread(osg::OperationThread * gt) Row 553 C++ osg145-osgViewerd.dll!osgViewer::ViewerBase::stopThreading() Row 336 C++ osg145-osgViewerd.dll!osgViewer::CompositeViewer::~CompositeViewer() Row 106 C++ [...] osgsidebysided.exe!main(int argc, char * * argv) Row 261C++ Thank you! Cheers, Li -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=68913#68913 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] bug: new OpenSceneGraph-3.5.5 threading...
Hi Li, Could you post the stack trace for the crash? Does it happen with when you run standard osgviewer? Robert. On 7 October 2016 at 22:50, Li Chiwrote: > Hi, > > Running the attached source, when press 'ESC' key on a window to quit the > program, then the program crash down. > Error In Win32Thread.cpp : setProcessorAffinity function > Environment: Windows 10 / Visual Studio 2015 > > Thank you! > > Cheers, > Li > > -- > Read this topic online here: > http://forum.openscenegraph.org/viewtopic.php?p=68909#68909 > > > > > Attachments: > http://forum.openscenegraph.org//files/test_108.cpp > > > ___ > osg-users mailing list > osg-users@lists.openscenegraph.org > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
[osg-users] bug: new OpenSceneGraph-3.5.5 threading...
Hi, Running the attached source, when press 'ESC' key on a window to quit the program, then the program crash down. Error In Win32Thread.cpp : setProcessorAffinity function Environment: Windows 10 / Visual Studio 2015 Thank you! Cheers, Li -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=68909#68909 Attachments: http://forum.openscenegraph.org//files/test_108.cpp ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
[osg-users] How to program the skinned mesh animation?
Hi, We have a project. In the project,we have programmed the skeleton animation of human body.Now we need to the skinned mesh animation of human body.So how to program the skinned mesh animation with osg?If anyone know,tell me please. Thank you! Cheers, Haixiao -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=68910#68910 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
[osg-users] How to get points lying on a plane cutting a point cloud?
Hi, I have a point cloud colored by intensity values and I need to extract all the points lying on a defined cutting plane or, even better, all the points inside a defined parallelepiped. I guess that PlaneIntersector should be the right way, but it's not clear to me how to use Polytope. Moreover, I have another question: is it possible to get the color of the points lying on the plane?Because it seems to me that intersector returns only the coordinates. Thank you! Cheers, Simone -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=68911#68911 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org