Jump to content

Saving rendering into a movie. How to? Possible?


photo

Recommended Posts

Posted

Hi everybody!

For marketing purposes it would be very helpful for us to be able to record a movie (any contemporary format) from the rendering, so we could easily show customers how something looks like.

It is possible now?

If not, are there any workarounds?

If not, how difficult it would be to have this functionality supported by Unigine?

 

Thanks in advance for any information!

Posted

There is another way to grab video in the engine.

You can use rendering with fixed fps.

 

Crypt demo has very simple logic:

 

#ifdef GRABBER
int frame;
engine.gui.setMouseCursor(0);
engine.game.setIFps(1.0f / 25.0f);
engine.console.run("video_grab crypt_%04d.tga",frame++);
#endif

 

Every launching of Crypt demo with GRABBER define will generate series of screenshots which can be backed into the movie by VirtualDub program.

Posted

As quite a lot of user already asked questions regarding video recording maybe Step-by-step "Recording UNIGINE video" tutorial in SDK documentation would be a great idea, explaining all steps from preparing application for grabbing, and usage of VirtualDub for video backing.

Posted

Once you have frame sequence dumped as screenshots, you can assemble video in any modern video editor.

 

Instruction for VirtualDub (a simple free editor):

1. Launch VirtualDub

2. Set frame rate to the same value that you used to grab frames (e.g. 30 FPS)

3. Open windows explorer; navigate to the folder with screenshots; select them all

4. Simply drag and drop all frame files to VirtualDub window

5. Adjust compression settings (if needed)

6. File -> Save AVI

 

Unfortunately grabbing with the fixed FPS doesn't work for interactive projects where user input is required.

Posted

Thanks everybody for replies!

 

Unfortunately grabbing with the fixed FPS doesn't work for interactive projects where user input is required.

So does it mean that when rendering with fixed FPS you get crappy input or is it impossible to use any input in this mode?

Posted

It's very hard to provide correct input if you have low frame rate due to maxed settings and grabbing overhead (like 1 FPS)

×
×
  • Create New...