Hi Zach,

Are you setting the graphics context ID when you create your viewer?  I
was observing similar symptoms until I explicitly did so.  I just added
this line after SceneView creation:

sceneView->getState()->setContextID(osg::GraphicsContext::createNewConte
xtID());

-Mike

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Zach Deedler
Sent: Wednesday, December 06, 2006 2:07 PM
To: 'osg users'
Subject: [osg-users] Viewer clean up on isle 4

Hello all,

PROBLEM
We have an application that creates an instance of a viewer.  It
displays
several models, including replicant body models and osgText.  

Everythings works fine on the first iteration.  We unload all the models
and
close the instance of the viewer but keep the application open.  Then we
create a new instance of the viewer and load all the models in the exact
same fashion as the first iteration.  Only now, the textures are missing
from the replicant body models and the text shows only boxes, the color
and
roughly the shape of each letter.

BACKGROUND
I have witnessed the problem in both OSG 1.0 and 1.2.

QUESTIONS
Are there any ideas on what may cause this and how to solve it?  The
combination of text and rbody texture implies a texture problem, that
somehow textures aren't loaded for these elements correctly in the new
context.

Thank you.


Zach Deedler
FAAC Incorporated
1229 Oak Valley Dr.
Ann Arbor, Michigan 48108
Phone: (734)761-5836 Ext.303
Fax: (734)761-5368
email: [EMAIL PROTECTED]
<http://www.faac.com>

_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to