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

Carlos Sanches carlos at met.com.br
Fri Jul 4 05:41:25 PDT 2008


How do you use this bugle ??
Can you send me a example  please :)




On Fri, Jun 27, 2008 at 6:42 PM, Jeremy Moles <jeremy at emperorlinux.com>
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, Justin E. wrote:
> > 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 have
> > done this using FFMPEG.  If you use an image naming scheme similar to
> > the one in this code example, you should be able to reconstruct a movie
> > in any format that you choose.  I'm sure that there are numerous other
> > tools that can accomplish this.  If you're using something else, I'd be
> > interested to hear what tools you've used, and how well they worked.
> > Hope this helps,
> > Justin
> >
> > -----Original Message-----
> > From: osg-users-bounces at lists.openscenegraph.org
> > [mailto:osg-users-bounces at lists.openscenegraph.org] On Behalf Of Robert
> > Osfield
> > Sent: Thursday, June 26, 2008 1:14 PM
> > To: OpenSceneGraph Users
> > Subject: Re: [osg-users] How to take a picture of my scene?
> >
> > On Thu, Jun 26, 2008 at 5:52 PM, Carlos Sanches <carlos at met.com.br>
> > 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 thread.   Where
> > abouts to you call the readPixles?
> >
> > Have you look at the osgscreencapture example in the SVN version of
> > the OSG for inspiration.
> >
> > Robert.
> > _______________________________________________
> > osg-users mailing list
> > osg-users at lists.openscenegraph.org
> > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.or
> > g
> > _______________________________________________
> > osg-users mailing list
> > osg-users at lists.openscenegraph.org
> >
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>



-- 
Carlos Sanches
Analista de Sistemas e computação gráfica
Tel: 55 11 3816 2888
Cel: 55 11 9650 7137

Somar Meteorologia
www.somarmeteorologia.com.br
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20080704/9367c6b0/attachment-0002.htm>


More information about the osg-users mailing list