Re: [osg-users] ScreenShot File name

2010-03-16 Thread Jean-Sébastien Guay
Hi Danny, however I beleive that this problem happens beause of line 545 in operator() filename _filename _ context_id; it will add context_id even if SetPolicy is set as OVERWRITE . I beleive this is bug. Isn't it? Ah, so the incrementing number was not indicating increasing

Re: [osg-users] ScreenShot File name

2010-03-15 Thread Danny Lesnik
Hi Jean-Sébastien, Thank you very much we override the operator() and it solves the problem. however I beleive that this problem happens beause of line 545 in operator() filename _filename _ context_id; it will add context_id even if SetPolicy is set as OVERWRITE . I beleive this is

Re: [osg-users] ScreenShot File name

2010-03-14 Thread Jean-Sébastien Guay
Hi Danny, I'm using OSG inside of ActiveX control (based on OSGActiveX example) embedded into HTML page. First time when I'm loading it and each time I'm taking snapshot, I'm getting test_0.png and each snapshot overwrites this file. When I'm pressing F5 or reloading page using IE address bar

Re: [osg-users] ScreenShot File name

2010-03-13 Thread Danny Lesnik
Hi Jean-Sébastien, Tahnk you very much for your response it was very helpfull, I implemented your advice and it seems to work perfect. Code: osgViewer::ScreenCaptureHandler* _scnsvr; _scnsvr = new osgViewer::ScreenCaptureHandler(new

Re: [osg-users] ScreenShot File name

2010-03-10 Thread Jean-Sébastien Guay
Hi Danny, I would like to do the following: 1) To disable static counter on the output file name and alway overwrite the last file. 2) Save this file in custom path on hard drive. How can set these option to ScreenCaptureHandler? If you look at the osgViewer/ViewerEventHandlers header,