Sorry, forgot to say that for saving image you have to add --image.
E.g.
./test -e ffmpeg --texture-rectangle --image cessnafire.osg
~/stuff/f22langley.flv
jp
On 02/11/10 17:27, J.P. Delport wrote:
Here's one that saves JPGs as well. See screenshot in tar.gz.
Attached both a texture and image.
jp
On 02/11/10 17:16, J.P. Delport wrote:
Hi,
I've hacked up an example that you can study. This is a merge of
osgmovie and osgprerender.
Run like this e.g. (it assumes the second argument is a movie file)
./test -e ffmpeg cessna.osg mymovie.avi
I hope you have the ffmpeg plugin :/
The only thing that I had to modify that you can check in your code is
to turn off lighting for the hud camera.
HTH
jp
PS. This works for me on screen, but I've just tried enabling image
readback an then it breaks... mmm
On 02/11/10 16:01, benedikt naessens wrote:
Already thanks for all the effort you have put in this !
I set the threading model of my viewers (I have two in my application)
to osgViewer::ViewerBase::SingleThreaded. Is this what you meant with
forcing OSG to singlethreaded ?
I also introduced now a snapshot image where the first and second
camera write to (using the aforementioned techniques : attached with
the COLOR_BUFFER component).
Both (at the same time or not) didn't help.
I have set the clear color of the second camera (m_Snapshotcamera) to
red (using the setClearColor function of the camera). I don't see any
red in file2.bmp, so I think there is no clearing issue.
About your remark about the clearing of the buffer: if the buffer is
not cleared, then this translates into the output image, right ? Or am
I mistaken ? This could explain somehow the overlapping 3D data ? On
the other hand, I am sure that both final drawing callbacks are called
(and in the right order), so this still doesn't explain why my input
video image is gone in file2.bmp.
Strange. I'm a bit without ideas right now. Any other ideas ?
------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=33311#33311
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
--
This message is subject to the CSIR's copyright terms and conditions, e-mail legal notice, and implemented Open Document Format (ODF) standard.
The full disclaimer details can be found at http://www.csir.co.za/disclaimer.html.
This message has been scanned for viruses and dangerous content by MailScanner,
and is believed to be clean. MailScanner thanks Transtec Computers for their support.
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org