Hi Robert, I have made a simple example based on osghud. Just press the 'a' key to reproduce the bug, it emulates what happens on a resize in our application, ie modification of the image content and size of a texture. With OSG 2.9.5, it works correctly, with OSG 2.9.6 the texture is garbage (totally transparent in this small exemple instead of blue). To add dirtyTextureObject on parent texture resolves the bug. In fact, the examples shows me that i have a problem before because OSG resample the image when it is resized. And i want the texture to take the new image size. So finally, calling dirtyTextureObject is really needed... But there is really a change of behaviour between the two versions, maybe it can be interesting to look further.
Thanks, Fabien. -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Robert Osfield Sent: lundi 7 décembre 2009 10:50 To: OpenSceneGraph Users Subject: Re: [osg-users] Please test svn/trunk in prep for 2.9.6 dev release Hi Fabuen, Thanks for the testing. Could you put together small example, such as a modified osg example, that illustrates this bug, I can then use this to rerpduce the bug and then confirm a fix to it. Thanks, Robert. On Mon, Dec 7, 2009 at 8:55 AM, Fabien Lavignotte <[email protected]> wrote: > Update done and everything builds correctly now on Windows, MSCV2008. > > But at runtime, i have a problem when updating texture content. > I have some code that modify a texture image size when window is resized : > > _image->setImage( newWidth, newHeight, 1, GL_RGBA, GL_BGRA, > GL_UNSIGNED_INT_8_8_8_8_REV, _qimage.bits(), > osg::Image::NO_DELETE, 4 ); > > It used to works ok (osg 2.9.5), the parent texture is correctly updated at > next rendering. > But with the trunk, something goes wrong (garbage on the screen). I have > added the following line on the parent texture in order to make it works : > > _texture->dirtyTextureObject(); > > > Cheers, > Fabien > > > > -----Original Message----- > From: [email protected] > [mailto:[email protected]] On Behalf Of > Robert Osfield > Sent: samedi 5 décembre 2009 11:39 > To: OpenSceneGraph Users > Subject: Re: [osg-users] Please test svn/trunk in prep for 2.9.6 dev > release > > Hi Fabien, > > The wrappers were up to date, but osgAnimation simply had a method defined > and no body for it. I could find any calls to the problem method so have > simply removed it. Perhaps Cedric added it with the intention of > implementing it, but in the end never did or need to it. > Since the method isn't used I've just removed it and updated the wrappers. > > Could you do an svn update and let me know if things work fine. > > Cheers, > Robert. > > On Fri, Dec 4, 2009 at 5:54 PM, Fabien Lavignotte > <[email protected]> wrote: >> Hello, >> I have tested the trunk r10851 on Windows, MSVC 2008. >> I have a problem at build time, osgAnimation wrappers has not linked because >> a method (updateGraph) is not found. I just commented the method, and then >> everything build correclty. The wrappers have not been updated maybe? >> During the compilation of my project based on OSG, i need to add a lot of >> headers in order to build with the new OSG : #include <osg/MatrixTransform> >> and #include <algorithm>. Hey, a good thing if headers have been cleaned >> up... >> >> Then, at runtime no problem. It seems to me paging is smoother at first, but >> not so sure after testing an old version of our program. And good news, a >> recent bug that seems to block the paging disappears (the bug appears just >> after i have upgraded my nvidia drivers). >> So really good works! Thanks! >> >> Fabien >> >> >> -----Original Message----- >> From: [email protected] >> [mailto:[email protected]] On Behalf Of >> Robert Osfield >> Sent: vendredi 4 décembre 2009 18:34 >> To: OpenSceneGraph Users >> Subject: [osg-users] Please test svn/trunk in prep for 2.9.6 dev >> release >> >> Hi All, >> >> It's been a long long time since the last dev release, virtue of me being >> distracted by work like OpenGL ES, GL object pools etc. I'm now almost back >> on top of submissions, so the time now looks good to make the 2.9.6 >> developer release. Since it's been so long since the last dev release there >> has been lots and lots of build and source code changes so would appreciate >> testing of svn/trunk so we can catch any problems prior to the 2.9.6 release >> - all going well I'll make it this comming Monday morning. >> >> The API should be pretty compatible between 2.8.x and 2.9.6 so I'm hopping >> that users won't see too many problems arising from all these changes, what >> I can say is whether all the changes have broken the build in the less >> actively used platforms i.e. beyond Linux and Window. Even on the most >> commonly used platforms there are still lots of different architecture, >> build and dependency differences to throw a spanner in the works so as much >> testing as you can throw at it the better. >> >> If you see build and runtime issues just post a report of them to >> osg-users/forum on this thread, and any fixes to osg-submissions as complete >> modified files. >> >> If things work well for you then please email into this thread to confirm >> that your plarform/build combination is working fine so I know how well we >> are converging to a reasonably stable 2.9.6. >> >> Thanks in advance for your assistance, Robert. >> _______________________________________________ >> osg-users mailing list >> [email protected] >> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph. >> org >> >> _____________________________________________________________________ >> _ This email has been scanned by the MessageLabs Email Security >> System. >> For more information please visit http://www.messagelabs.com/email >> _____________________________________________________________________ >> _ >> >> _____________________________________________________________________ >> _ This email has been scanned by the MessageLabs Email Security >> System. >> For more information please visit http://www.messagelabs.com/email >> _____________________________________________________________________ >> _ _______________________________________________ >> osg-users mailing list >> [email protected] >> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph. >> org >> > _______________________________________________ > osg-users mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph. > org > > ______________________________________________________________________ > This email has been scanned by the MessageLabs Email Security System. > For more information please visit http://www.messagelabs.com/email > ______________________________________________________________________ > > ______________________________________________________________________ > This email has been scanned by the MessageLabs Email Security System. > For more information please visit http://www.messagelabs.com/email > ______________________________________________________________________ > _______________________________________________ > osg-users mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph. > org > _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org ______________________________________________________________________ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email ______________________________________________________________________ ______________________________________________________________________ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email ______________________________________________________________________
OSGTest.cpp
Description: OSGTest.cpp
_______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

