Re: [osg-users] image processing with OSG

2012-08-04 Thread Alberto Luaces
Christian Rumpf writes: Hello! For one of my project I want to create an average image consisting of 10 images captured by a static camera to erase camera noise. I tried this stuff with OpenCV (http://opencv.willowgarage.com/wiki/) and its cv::Mat class and it worked well. I want to do

Re: [osg-users] ESC key: Error: pthread_cond_destroy(, ) returned error status, status = 16

2012-08-04 Thread Alberto Luaces
michael kapelko writes: Hi. Can anybody please tell me how to stop osgViewer from listening to ESC key? It frequently results into Error: pthread_cond_destroy(,) returned error status, status = 16. I want to control ESC key myself. I think if you write an osgGA::GUIEventHandler that reports

Re: [osg-users] ESC key: Error: pthread_cond_destroy(, ) returned error status, status = 16

2012-08-04 Thread Jean-Sébastien Guay
On 04/08/2012 2:38 PM, Alberto Luaces wrote: I think if you write an osgGA::GUIEventHandler that reports that you handled the ESC key (by returning true), the viewer won't do its own processing. In addition to this, I suggest you look into the following methods of the osgViewer::ViewerBase

Re: [osg-users] ESC key: Error: pthread_cond_destroy(, ) returned error status, status = 16

2012-08-04 Thread michael kapelko
Thanks. ViewerBase::setKeyEventSetsDone(0) did help so that Viewer doesn't listen to ESC, but now when I call ViewerBase::setDone(true) myself, Viewer still fails to exit and prints: Error: pthread_cond_destroy(,) returned error status, status = 16 after that, only Ctrl+C helps, because app hangs.