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 
osgViewer::ScreenCaptureHandler::WriteToFile("test","png",osgViewer::ScreenCaptureHandler::WriteToFile::SavePolicy::OVERWRITE));




It works nice in standard OSG application, my issue is the following:

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 I'm starting to 
save snapshots as test_1.png and each snaphot overwrite this file. 

This behavior continues each time I'm reloading page. the counter is being 
incremented by one to test_2, test_3 etc.... 

the only solution for this problem is to close IE and to wait till ActiveX 
unloads from Memeory. after it the counts start form zero. 

I have no clue how to resolve it and this is major blocking issue for my 
project. 

Could you please help? 

Thank you!

Cheers,
Danny

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=25620#25620





_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to