Thanks Robert,

I´ve tried the databasepage setting.. no success.. Its a very strange 
problem.... Its deterministic: the destruction of terrain messes up the 
QPainter state. I am rendering FPS and some other infos using QPainter within 
QGLWidget as PaintDevice. The destruction of the terrain makes QPainter draw 
garbage and sometimes not render anything! Very strange. If I then create the 
terrain again, every thing backs to normal (!!).. I am using QGLWidget as 
opengl context holder and osgViewer::GraphicsWindowEmbedded to create a 
contextless window. So QT has the opengl context. The strange thing is that all 
other models in the scene keep being rendered fine (so its not opengl state 
problem I guess). I also tried to put 
glPushAttrib(GL_ALL_ATTRIBS_BIT)/glPopAttrib before/after QPainter calls and 
also cleaning up ogl matrices... nothing yield any results...   

I don´t know if you can give me any clue about any possible theoretical problem 
that may be hapening here...

Thanks again.

Pablo

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=57478#57478





_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to