Re: [osg-users] How to take a picture of my scene?

2008-07-15 Thread Carlos Sanches
eee!! I did it ! I m doing videos with the code of osghelp page and ffmepg on linux . tomorrow I put the code here using an osg::Camera thank you guys ! no more tears :D ___ osg-users mailing list osg-users@lists.openscenegraph.org

Re: [osg-users] How to take a picture of my scene?

2008-07-04 Thread Carlos Sanches
How do you use this bugle ?? Can you send me a example please :) On Fri, Jun 27, 2008 at 6:42 PM, Jeremy Moles [EMAIL PROTECTED] wrote: I made all of the osgWidget videos using Bugle; it's really the best thing I've found for this kind of thing. On Thu, 2008-06-26 at 14:09 -0400, Vican,

Re: [osg-users] How to take a picture of my scene?

2008-06-27 Thread Carlos Sanches
My code : osg::Image *Ximage; osg::Camera* cam = new osg::Camera; cam-setProjectionMatrixAsPerspective(20,1,20,100); cam-setViewport(0,0,640,180); cam-setClearColor(osg::Vec4(0.7,0.7,1,1));

Re: [osg-users] How to take a picture of my scene?

2008-06-27 Thread Gordon Tomlinson
You most likely do not have a valid Opengl Context as you doing this in the main Application thread You will need to make you application single threaded if you want to do it this way Or the traditional way would be with a post draw call back ( there are many examples floating around )

Re: [osg-users] How to take a picture of my scene?

2008-06-27 Thread Jeremy Moles
I made all of the osgWidget videos using Bugle; it's really the best thing I've found for this kind of thing. On Thu, 2008-06-26 at 14:09 -0400, Vican, Justin E. wrote: Hi Carlos, As Robert mentioned, there has been a lot of discussion about this topic recently. I posted a camera callback

[osg-users] How to take a picture of my scene?

2008-06-26 Thread Carlos Sanches
Hi friends ! I 'd want to save the frames of my OSG scene in jpg or bmp or any other format. What function do this ? How do I do this ?? thank you ! ___ osg-users mailing list osg-users@lists.openscenegraph.org

Re: [osg-users] How to take a picture of my scene?

2008-06-26 Thread Robert Osfield
Hi Carlos, This has been discussed lots in the last month so have a look through the osg-users archives. Robert. On Thu, Jun 26, 2008 at 3:59 PM, Carlos Sanches [EMAIL PROTECTED] wrote: Hi friends ! I 'd want to save the frames of my OSG scene in jpg or bmp or any other format. What

Re: [osg-users] How to take a picture of my scene?

2008-06-26 Thread Rick Pingry
(If you are using windows), I also use the Print Screen button, which effectively copis the image to the clip-board. -- Rick On Thu, Jun 26, 2008 at 11:08 AM, Robert Osfield [EMAIL PROTECTED] wrote: Hi Carlos, This has been discussed lots in the last month so have a look through the

Re: [osg-users] How to take a picture of my scene?

2008-06-26 Thread Carlos Sanches
No I want to do a movie with the frames generated . In linux . On Thu, Jun 26, 2008 at 12:08 PM, Robert Osfield [EMAIL PROTECTED] wrote: Hi Carlos, This has been discussed lots in the last month so have a look through the osg-users archives. Robert. On Thu, Jun 26, 2008 at 3:59 PM,

Re: [osg-users] How to take a picture of my scene?

2008-06-26 Thread Carlos Sanches
I m doing this : Ximage-readPixels(100,100,640,480, GL_RGBA, GL_UNSIGNED_BYTE); osgDB::writeImageFile(*Ximage,teste.bmp); but this is creating a black image :( On Thu, Jun 26, 2008 at 12:08 PM, Robert Osfield [EMAIL PROTECTED] wrote: Hi Carlos, This has been discussed lots in the

Re: [osg-users] How to take a picture of my scene?

2008-06-26 Thread Robert Osfield
On Thu, Jun 26, 2008 at 5:52 PM, Carlos Sanches [EMAIL PROTECTED] wrote: I m doing this : Ximage-readPixels(100,100,640,480, GL_RGBA, GL_UNSIGNED_BYTE); osgDB::writeImageFile(*Ximage,teste.bmp); but this is creating a black image :( You are likely just reading pixels from the wrong

Re: [osg-users] How to take a picture of my scene?

2008-06-26 Thread Vican, Justin E.
Hi Carlos, As Robert mentioned, there has been a lot of discussion about this topic recently. I posted a camera callback code update to the osgcompositeviewer example a few days ago (attached). It should do the trick for you. As far as stringing the frames together into a movie, in the past I

Re: [osg-users] How to take a picture of my scene?

2008-06-26 Thread Bob Huebert
On Thu, 26 Jun 2008, Rick Pingry wrote: (If you are using windows), I also use the Print Screen button, which effectively copis the image to the clip-board. This method works on Linux as well. At least with the Gnome desktop, possibly kde as well. -bob -- Rick On Thu, Jun 26, 2008 at