![]() |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
![]() |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
The SaveMPG
command encodes the content of the YASARA window as an MPEG movie. Since the MPEG standard is heavily covered by software patents
(see www.yasara.org/patents) YASARA supports only MPEG1 movies without audio,
which also look better than MPEG2 at low bitrates. MPEG movies are created by encoding whatever is shown in the YASARA window. The usual approach is therefore to write a YASARA
macro/movie
and add the SaveMPG command to the beginning of the macro. Alternatively,
you can activate the MPEG encoding manually first and then run the macro. If the
justMacro parameter is set, YASARA will only start encoding as soon as the macro is running.
As an example, the following macro rotates the scene in 180 steps around the Y-axis:
steps=180 for i=1 to steps Rotate Y=(360./steps) Wait 1 For highest quality output, every movie frame can be ray-traced with PovRay by setting the
Raytrace parameter to 'Yes'. With the exception of ray-traced movies,
the YASARA window must be larger than the MPEG movie resolution. The window content will then be scaled down to the MPEG resolution before encoding. This scaling works best if the size of the encoded part of the window is an integer multiple of the MPEG movie resolution. Hints how to achieve that can be found in the
section about YASARA movies.
If you set the Menu parameter to 'On' and the justMacro parameter
to 'No', YASARA will really record everything, including the pull down menus as they are activated.
It is also possible to skip the actual MPEG encoding process
and create a sequence of plain BMP images: just choose a movie filename with lots of zeroes and the extension
'.bmp'. E.g. the filename MyMovie00000.bmp tells YASARA to save the movie frames as mpg/MyMovie00000.bmp,
mpg/MyMovie00001.bmp etc. Here are some general hints:
Example 1:SaveMPG MyMovie,X=704,Y=576,FPS=25,skip=2 Save the next macro you run as a PAL MPEG movie mpg/MyMovie.mpg
(or just MyMovie.mpg if subdirectory mpg is not present), recording every 3rd YASARA frame. If YASARA displays
75 frames per seconds, then the movie will run at the same speed.
Example 2:SaveMPG MyMovie,X=704,Y=480,FPS=30,skip=1,Menu=On As above, but create an NTSC movie and include all YASARA menus activated during the movie,
recording every 2nd YASARA frame. If YASARA displays 60 frames per seconds
, the movie will run at the same speed. Example 3:SaveMPG Tutorial,X=640,Y=480,FPS=25,skip=2,Menu=On,justMacro=No Save everything including pull-down menus as you click them as a
640x480 MPEG movie 'Tutorial.mpg'. Example 4:SaveMPG Off Disable movie encoding. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||