Allows the scene in a
TGLSceneViewer to be recorded as an AVI file. Recording AVI can greatly reduce the frame rate therefore is not ideal for recording scenes real time. To record a scene in real time it is recommended you use
Fraps∞.
Important
TAVIRecorder properties and methods include:
glsceneviewer TGLSceneViewer
Specifies the
TGLSceneViewer that is being recorded.
filename string
Filename of the avi file.
function
createavifile
Creates the avi file specified in filename. If no filename is specified then an Savedialog is displayed and allows the filename to be selected.
procedure
addaviframe
Adds a frame to the avi file with whatever is in the
TGLSceneViewer
procedure
closeavifile
Closes the avi file and recording is complete.
width integer
Width of the avi movie in pixels. This must be specified otherwise nothing will be recorded.
height integer
Height of the avi movie in pixels.
compressor TAVICompressor
How the AVI codec will be selected. acDefault picks the default codec while acShowDialog will display the list of codecs. When the AVI file is created the user picks the codec they want to use.
fps integer
The frames per second of the avi movie.
Demo:
CVS/Demos/utilities/recorder∞
Unit:
GLAVIRecorder∞
Descends from
TComponent