Hi Robert,
I have an explanation for the difference in behaviors. I use 
GL_UNSIGNED_INT_8_8_8_8_REV as image data type and it does not seem to be 
supported with gluScaleImage (on windows at least). So, gluScaleImage does 
nothing and a pointer with garbage data is passed to glTexImage2D.  On linux (i 
have tested OSG 2.9.5 on linux), the GLU library is newer and supports 
GL_UNSIGNED_INT_8_8_8_8_REV.
So sorry for the noise.
By the way, I fully agree with forcing the reassignment of new texture object 
when image size changes. I don't know if it could break existing apps but it 
seems quite logical.

Thanks,
Fabien

-----Original Message-----
From: [email protected] 
[mailto:[email protected]] On Behalf Of Robert Osfield
Sent: mardi 8 décembre 2009 10:11
To: OpenSceneGraph Users
Subject: Re: [osg-users] Please test svn/trunk in prep for 2.9.6 dev release

Hi Fabien,

I have been thinking about the issue of whether to force the reassignment of a 
new texture object automatically when the size changes or leave it just 
rescale, using gluScale, as it does right now, and I'm moving towards getting 
osg::Texture to assign a new texture object when the size changes.  This would 
avoid the need for an expensive scale operation, and also enable the support 
under GLES and GL3 to work as neither have GLU.

As for the difference in behavior on your systems I can't explain.

Robert.

On Mon, Dec 7, 2009 at 6:23 PM, Fabien Lavignotte 
<[email protected]> wrote:
> I have the resize image output in the console in both case (2.9.5 and 2.9.6).
> I have tested my small example on the following platform : Windows XP + 
> NVidia QuadroFX 1600M, driver is 186.81 notebook version. We have some other 
> platforms but i am the only one that has tested OSG 2.9.6.
> I will try to dig further into this, but it might be only a driver issue.
> Thanks,
> Fabien
>
>
> -----Original Message-----
> From: [email protected] 
> [mailto:[email protected]] On Behalf Of 
> Robert Osfield
> Sent: lundi 7 décembre 2009 18:04
> To: OpenSceneGraph Users
> Subject: Re: [osg-users] Please test svn/trunk in prep for 2.9.6 dev 
> release
>
> Hi Fabien,
>
> I've just tried your example it works for me under Kubuntu 9.04 + ATI 
> graphics, the green square changes to blue as soon as I press 'a'.  On the 
> console I also get an Scaling image from (800,800) to (600,600), which is 
> osg::Texture automatically working to refit the image to the size required by 
> the existing osg::Texture's texture object.
>
> Doing a dirtyTextureObject() will discard the texture object and should allow 
> the osg::Texture to create the appropriate sized texture object which doesn't 
> need resizing.
>
> Do you size any resize message output the console.  What OS, hardware and 
> drivers are you working with?
>
> Robert.
>
> On Mon, Dec 7, 2009 at 3:50 PM, Fabien Lavignotte 
> <[email protected]> wrote:
>>
>> 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 
>> _____________________________________________________________________
>> _ _______________________________________________
>> 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 
______________________________________________________________________
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to