|
|
|
|
|
Povray
Gedöns
|
||
Displaying Video Clips with Smooth Frame Rate ConversionThe macros defined in the file imagesequence.inc make it easy for you to display one or several video clips of any frame rate (previously stored as image sequences) in an animated scene, applying sophisticated frame rate conversion which properly blends subsequent images into one frame. That is, when you downsample from a high frame rate, you will see "motion blur" in the rendered frames.To embed an image sequence in a scene, you first create an image sequence object and assign the sequence's properties to it (file name, first and last file index, bitmap type, frame rate etc.). Then you can create a pigment from the image sequence and assign it to any object in your scene. That pigment will change with the animation time (clock), displaying the frame that belongs to time clock (in seconds). Special features:
That scene would be executed with this .ini-file:
And here's a demo. First run demoa.ini: demoa.ini, demoa.pov This will render 60 frames of a sphere sweeping from left to right. That's supposed to be our source image sequence, running for 1 second at 60 frames per second. Next, run demob.ini: demob.ini, demob.pov This will convert the first image sequence to 8 frames per second, without image blending. Finally, run democ.ini: democ.ini, democ.pov This will render four image sequences at 25 fps, combined in one scene. The first shows the image sequence rendered with demoa.ini (60fps), downsampled to 25fps with default blending. The second shows the image sequence rendered with demob.ini (8fps), upsampled to 25fps with default blending. The third and fourth image sequences are similar, but they don't use the default blending but increase it to add more motion blur. Here's one frame rendered with democ.ini: ![]() Hope you'll find it usable, Burkhard |
|
|
|||
|