Movie demo with two output modes: rendered image and snapshot
DOWNLOAD: MovieDemo.gsz
DATE: 01.10.2010
AUTHOR: M. Henke
HOW IT WORKS: The mode is selected by a global flag.
The function makeImage() makes an image of the actual scene and afterwards it runs the run-function once. The result is a set of images which needs to be connected afterward to a video sequence or any other animation.
The function makeImage() makes an image of the actual scene and afterwards it runs the run-function once. The result is a set of images which needs to be connected afterward to a video sequence or any other animation.
NOTE:
1. to create a video with ffmpeg:
ffmpeg -r 3 -i *.png -b 4000000 out.mpg
or with mencoder
mencoder -o out.avi -ovc lavc mf://*.png on:w=640:h=480:fps=20
2. To get an animated gif with ImageMagic:
convert -delay 70 -loop 0 *.png http://134.76.18.36/wordpress/wp-content/uploads/2018/02/MovieDemo.gif
ffmpeg -r 3 -i *.png -b 4000000 out.mpg
or with mencoder
mencoder -o out.avi -ovc lavc mf://*.png on:w=640:h=480:fps=20
2. To get an animated gif with ImageMagic:
convert -delay 70 -loop 0 *.png http://134.76.18.36/wordpress/wp-content/uploads/2018/02/MovieDemo.gif