I've destroyed complete scene with viewer and graphics context, and recreated it all with reading new models from files with disabled cache etc. On first run all was ok, and on next runs mesh would look all distorted (some vertices of mesh randomly displaced etc). Dont know if it problem with display lists or geometry data arrays in osg, but display lists should be brand new each time, because i've deleted all opengl objects before shutting down graphics context, and new context have different id, also object cache disabled, cleared and model reloaded each time from file, so there shouldn't be problem with osg data arrays. I have no idea what goes wrong.
Cheers 16.01.2012, 14:52, "Chris Denham" <[email protected]>: > Hi Hybr, > Corrupted vertex arrays? Do you mean the OpenSceneGraph geometry data, or a > problem with the OGL compiled display list? I've not seen that, and I hope I > don't. ;-) > I'll keep an eye out for trouble though. > Cheers, > Chris. > > hybr wrote: > >> Hi all >> >> I'm gonna add my 5 cents on this topic. I was having similar problems in >> app which recreates viewer in runtime (there are preview window and viewer >> created when widget shows up), using osg version 3.0(?). In my case problem >> was not only with textures - i was getting corrupted vertex arrays after >> viewer re-creation. I tried some voodoo magic with osgDB::Registry and >> caching settings, tried to clear gl objects with osg::deleteAllGLObjects() >> osg::flushAllDeletedGLObjects() etc, but without any luck. I've had >> different graphics context ids after viewer recreation. In my case problem >> was solved when using vertex buffer objects instead of display lists, i >> didnt dig any further after that. IIRC problem was showing itself only on >> windows, but i cant say for sure now. >> >> Cheers > > ------------------ > Read this topic online here: > http://forum.openscenegraph.org/viewtopic.php?p=44857#44857 > > _______________________________________________ > 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

