Re: [osg-users] WriteImageFile black

2010-04-07 Thread Thomas PATTOU
Chris 'Xenon' Hanson wrote: > > Do you KNOW the pixel format of your display for sure? It could be something > odd that > most plugins can't handle without conversion. > I'm pretty sure it's good, using GL_RGB; even if that was not the case, I also tried some GL_RGBA, GL_BGRA,... Anyways, a

Re: [osg-users] WriteImageFile black

2010-04-07 Thread Chris 'Xenon' Hanson
On 4/7/2010 8:44 AM, Thomas PATTOU wrote: > Unfortunately, I tried today with others formats (png, tga, bmp), and either > I got some plugin problems (plugin not found whereas it actually IS at the > right place), Well, that's suspicious by itself. > or I ended with the same black rectangle.

Re: [osg-users] WriteImageFile black

2010-04-07 Thread Jean-Sébastien Guay
Hi Thomas, Unfortunately, I tried today with others formats (png, tga, bmp), and either I got some plugin problems (plugin not found whereas it actually IS at the right place), or I ended with the same black rectangle. I suspect what was happening was that the plugin didn't support writing

Re: [osg-users] WriteImageFile black

2010-04-07 Thread Thomas PATTOU
sumit wrote: > Hi Thomas, > > Your way capturing screenshot is working on my system at least. Probably > there is problem with the plug-in. Set OSG_NOTIFY_LEVEL=DEBUG, and see > whether you are getting any errors or warnings, also try to play with > different formats. This particular format may n

[osg-users] WriteImageFile black

2010-04-07 Thread sumit
plug-in. Cheers, Sumit Date: Mon, 05 Apr 2010 15:02:09 + From: "Thomas PATTOU" To: osg-users@lists.openscenegraph.org Subject: [osg-users] WriteImageFile black Message-ID: <1270479729.m2f.26...@forum.openscenegraph.org> Content-Type: text/plain; charset=UTF-8 Hi everybody

Re: [osg-users] WriteImageFile black

2010-04-06 Thread Thomas PATTOU
Thanks for your answers! As you supposed, I can't upgrade to the SVN version. I will have a look at your code, and try to reproduce it. Actually, I've been a bit stupid because I also thought about modifying the ScreenCaptureHandler class, but directly in the osg build instead of deriving it :O

Re: [osg-users] WriteImageFile black

2010-04-05 Thread David Glenn
Skylark wrote: > Hi David, > > > > I was looking at how you modified that ScreenCaptureHandler. I was just > > wondering if anyone has tried to make a video capture handler yet? > > > > At work we've done video output using ffmpeg and the > ScreenCaptureHandler. We derived a > ScreenCapture

Re: [osg-users] WriteImageFile black

2010-04-05 Thread Jean-Sébastien Guay
Hi David, I was looking at how you modified that ScreenCaptureHandler. I was just wondering if anyone has tried to make a video capture handler yet? At work we've done video output using ffmpeg and the ScreenCaptureHandler. We derived a ScreenCaptureHandler::CaptureOperation that passes the

Re: [osg-users] WriteImageFile black

2010-04-05 Thread David Glenn
Hi, J-S! I was looking at how you modified that ScreenCaptureHandler. I was just wondering if anyone has tried to make a video capture handler yet? ... Thank you! Thinking out Loud, D Glenn D Glenn (a.k.a David Glenn) - Join the Navy and See the World ... from your

Re: [osg-users] WriteImageFile black

2010-04-05 Thread Jean-Sébastien Guay
Hi Tomas, - I tried to use the ScreenCaptureHandler, but this doesn't allow me to achieve what I want (I want to record several frames during a given period) because of the fact that it only takes screenshots when you press a key. First of all, in the SVN version of the ScreenCaptureHandler,

Re: [osg-users] WriteImageFile black

2010-04-05 Thread Chris 'Xenon' Hanson
On 4/5/2010 9:02 AM, Thomas PATTOU wrote: > which gives me the result I have now (a black jpg file). I think this sounds like an FAQ problem -- something about JPEG not supporting the pixel format you're trying to save. Try saving as a PNG -- it might be something to do with an alpha channel

[osg-users] WriteImageFile black

2010-04-05 Thread Thomas PATTOU
Hi everybody, First, I want to state that I am aware there is already quite a few posts about this. I read most of them, trying to understand what is wrong with my application; now that this is said, I can also state that I did not find out the solution. Basically, I am trying to achieve the s