Home: dennou ruby home page
RubyDCLExt-Anim
Animation extension for RubyDCL
What's RubyDCLExt-Anim
RubyDCLExt-Anim is an extension for RubyDCL to output animation (movie) file.
Currently, output file is MP4 file formated and h264 encoded .
Requires
Install / Download
gem
rubygems page
# gem install dclext-anim
repository
You can also get from the git repository
% git clone http://ruby.gfd-dennou.org/products/ruby-dclext-anim/ruby-dclext-anim.git
or the repository snapshot, ruby-dclext-anim-snapshot.tar.gz.
Usage
To output animation file, require "numru/dclext/anim"
% ruby -r numru/dclext/anim your_dcl_script.rb
Options
You can change some parameters with environmental variable or runtime option.
- framerate: frame rate for the output movie (frame/sec)
- environmental variable: DCLEXT_ANIM_FRAMERATE=(int)
- runtime option: --dclext-anim-framerate=(int)
- filename: name of the output file
- environmental variable: DCLEXT_ANIM_FILENAME=(string)
- runtime option: --dclext-anim-filename=(string)