Re: [osg-users] IncrementalCompileOperation OnDemandMode

2013-10-11 Thread Filip Arlet
Hi, how did you obtain renderInfo and current context, in predraw callback or somehow else ? Thank you! Cheers, Filip -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=56743#56743 ___ osg-users

Re: [osg-users] IncrementalCompileOperation OnDemandMode

2013-10-11 Thread Aurelien Albert
Hi, Sorry, I wasn't able to retrieve this old piec of code... The state can be obtained from the viewer's graphics context, and the RenderInfo can be created using the state and the viewer. Before running the visitor, you should make sure that the viewer's OpenGL context is current

[osg-users] IncrementalCompileOperation OnDemandMode

2013-10-10 Thread Filip Arlet
Hi, My issue: 1) I have application that runs on demand. So I dont want to achieve 60 framerates, 10 is more than enought. 2) Application loads very big chunk of data, but not all of them are displayed right away. 3) When I zoom in and show all data (from some area), display lists from that

Re: [osg-users] IncrementalCompileOperation OnDemandMode

2013-10-10 Thread Aurelien Albert
Hi, I used to do something like that... from my memories, all that I can say is I used the osgUtil::GLObjectsVisitor to do a on-demand-compile-traversal right after loading an object. Cheers, Aurelien -- Read this topic online here: