I upgraded my video drive this morning and that didn't seem to make any
difference.
 
I am trying to find an example of how to use the dirtyTextureObject()
function but am having a hard time.  Would anyone be able to share a
code snipit on the correct way to implement this function?
 
Thanks,
Roger

________________________________

From: [email protected]
[mailto:[email protected]] On Behalf Of Mark
Sciabica
Sent: Tuesday, July 14, 2009 10:41 PM
To: OpenSceneGraph Users
Subject: Re: [osg-users] osgViewer::CompositeViewer Texture Issue



Hello Roger,

I remember running into a similar problem that I attributed to an nVidia
driver bug. You might want to try upgrading your driver. I worked around
the problem by calling dirtyTextureObject() on each texture in the model
whenever I created a new window, forcing the driver to reload the
texture data from system memory. I think the driver got confused with
shared contexts and this function was an effective reminder of what the
texture data was supposed to be.

Regards,



Mark

 

-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Printy,
Roger-P57305
Sent: Tuesday, July 14, 2009 8:36 AM
To: [email protected]
Subject: [osg-users] osgViewer::CompositeViewer Texture Issue

 

I am upgrading to OSG 2.8.1 from OSG 2.4 and am having a problem with
use of the osgViewer::CompositeViewer.  My application adds/destroys
views dynamically and I am having an issue when I have two views loaded
with the same terrain/textures (for example a terrain) when I close one
view the textures in the 2nd view all get removed from the scene.  The
only way I am able to get the textures in the remaining view to reload
is to close the view, leaving none open, and opening a new view.  This
process destroys and recreates the composite viewer.

I have tried calling setUnrefImagedataAfterApplyPolicy(true, false) on
each view as they are created but this has not helped resolve the issue.

Can anyone provide any advice to help with this? 

Thanks, 
Roger 

_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to