Hi Antonio, On 10 July 2012 14:26, Antonio De Giorgio <[email protected]> wrote: > another little problem :) i'd like to do the same thing as the osgMovie > example reguarding the interactive mode...so i'd like to set an argument > interactive and than visualize it with or less the fullscreen and with or > less a manipulator...now the problem is that in the interactive mode the > viewer visualize the video just if we use viewer.run()...if we use the while > loop with viewer.frame() it doesn't work even if it should be the same..now > the problem is that i need the loop because in the loop i grap new frames and > call the image->dirty()...have you got any ideas to solve this problem?
Normally one would run a background thread to read from video sources as the frame rate is not typically sync'd to the displays refresh rate and the cost of the latency and cost acquiring the imagery can be prohibitive for a real-time application. If you wish to keep things simple and single threaded then you could use an update, cull and draw callback to instigate the image read, however, this wouldn't be my recommend approach as the performance will be poor. Robert. _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

