Create a video file (e.g. mpeg) of the 3D Data
Create a video file (e.g. mpeg) of the 3D Data
Hello,
I can save some 3D information about my screen, where the objects are, the position of the camera and the movement of the objects, so I can load the file and re-play the scene.
Now my question is, how can I create a video file out of it? My program just plays the 3D scene "realtime" and should write every frame to a video file (at best compressed).
Do you have any idea how to do that?
Thanks a lot!
I can save some 3D information about my screen, where the objects are, the position of the camera and the movement of the objects, so I can load the file and re-play the scene.
Now my question is, how can I create a video file out of it? My program just plays the 3D scene "realtime" and should write every frame to a video file (at best compressed).
Do you have any idea how to do that?
Thanks a lot!
-
- Posts: 69
- Joined: Mon May 23, 2005 4:42 pm
I've been thinking about that too. An mpeg file writer would be niffty for making demos and stuff.
What I think is the easiest route is to write a series of screen shots, jpegs if possible and then use an external app to convert them into a video clip.
I think FFMpeg has this capabillity.
But a native mpeg exporter would totally rock.
Maybe Directshow has some provisions for this?
What I think is the easiest route is to write a series of screen shots, jpegs if possible and then use an external app to convert them into a video clip.
I think FFMpeg has this capabillity.
But a native mpeg exporter would totally rock.
Maybe Directshow has some provisions for this?
Should put something witty here I suppose.
Yes indeed, a mpeg writer would be great, but for me it is import, that I can just save the pictures, the engine is rendering. Do you have any ideas how to do that? I dont know how I can save one frame of my animation into a file...X_for_Extra wrote:I've been thinking about that too. An mpeg file writer would be niffty for making demos and stuff.
What I think is the easiest route is to write a series of screen shots, jpegs if possible and then use an external app to convert them into a video clip.
I think FFMpeg has this capabillity.
But a native mpeg exporter would totally rock.
Maybe Directshow has some provisions for this?
Using Linux? What do you mean... is it linux specific, that there is always an image generated in the render round?hybrid wrote:Using Linux there is always an image generated in every render round.
My questions was, how in general can I save an image of the screen to a file? OR in other words, how do I capture a screen (render output of irrlicht)?
Version 0.10 of what?hybrid wrote: This could be easily captured by some mpeg encoding library. I never used mpeg encoding, but I will have a look in the next days. But need to check version 0.10 before!
I only know the Linux side of Irrlicht. But if the image is available on Window as well you can do it there as well. I will give it a try in the next days.cr_itm wrote:Using Linux? What do you mean... is it linux specific, that there is always an image generated in the render round?
Irrlichtcr_itm wrote:Version 0.10 of what?
After the render to texture you also have direct memory access to the textures pixle data (look for ITexture->lock() and ITexture->unlock() )...
Maybe you then can save the data to disc...
Maybe you then can save the data to disc...
while(!asleep) sheep++;
IrrExtensions:
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
IrrExtensions:
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
i dont think you can lock a render target (yet). you can however grab screen data using either directx or opengl. see here for opengl.
Emil Halim's Magic2d library can record to divx avi, I assume this is using directx and vfw or something
Emil Halim's Magic2d library can record to divx avi, I assume this is using directx and vfw or something
-
- Posts: 49
- Joined: Thu Aug 12, 2004 12:42 pm
- Location: Sweden
- Contact:
I posted a fix to locking d3d8/d3d9 rendertarget textures some time ago. I guess it hasn't made it into any of the builds after I posted it. Here it is.bitplane wrote:i dont think you can lock a render target (yet). you can however grab screen data using either directx or opengl. see here for opengl.
Emil Halim's Magic2d library can record to divx avi, I assume this is using directx and vfw or something
This monkey is useless, it only has ONE ass!!!