Difference between revisions of "SiGML Extensions"
John.Glauert (talk | contribs) (Document use of <time/> elements in <player_settings/>.) |
John.Glauert (talk | contribs) (Clarification on application of player settings.) |
||
Line 4: | Line 4: | ||
= Player Settings = | = Player Settings = | ||
A number of extensions to [[SiGML]] are available when using [[JASigning]] to animate SiGML data. These enable some actions of the player to be scripted with a SiGML file. | A number of extensions to [[SiGML]] are available when using [[JASigning]] to animate SiGML data. These enable some actions of the player to be scripted with a SiGML file. | ||
− | The current extensions are provided by adding a <code><player_settings\></code> element between signs in the SiGML file. The <code><player_settings\></code> element encloses one or more settings elements. | + | The current extensions are provided by adding a <code><player_settings\></code> element between signs in the SiGML file. The extensions act on the following sign so extensions at the end of a file will be ignored. |
+ | |||
+ | The <code><player_settings\></code> element encloses one or more settings elements. If several settings elements are provided before a sign, later settings override earlier ones. | ||
== Camera Settings == | == Camera Settings == |
Revision as of 11:53, 24 March 2015
Player Settings
A number of extensions to SiGML are available when using JASigning to animate SiGML data. These enable some actions of the player to be scripted with a SiGML file.
The current extensions are provided by adding a <player_settings\>
element between signs in the SiGML file. The extensions act on the following sign so extensions at the end of a file will be ignored.
The <player_settings\>
element encloses one or more settings elements. If several settings elements are provided before a sign, later settings override earlier ones.
Camera Settings
The camera location is controlled by eight parameters that can be provided in a .properties
file or an app <argument/>
or applet <param/>
. Changes to the settings caused by use of the mouse with modifier keys are reflected on the Java Console Log and can be copied to use as initial camera settings.
The first six camera settings can be changed during the course of playing a SiGML file with <player_settings/>
as in the following example:
<player_settings> <camera_location cx="0.00" cy="0.50" r="4.50" theta="30.0" phi="40.0" fov="30.0"/> </player_settings>
Sign Timing
The starting time for a sign can be set using a element with an attribute saying when the sign should begin, expressed in seconds since the start of the sequence. The avatar will go to a rest position until the time arrives. If the time specified has already passed, the following sign will play immediately.
<player_settings>
Avatar Choice
JASigning accepts commands to switch between avatars through menu choices, through messages on a special socket for the SiGML Service Player app, and through
<player_settings/>
in SiGML files.
<player_settings> <avatar name="marc"/> </player_settings>
Ambient Motion Settings
The JASigning software accepts <player_settings/>
to control the ambient motion behaviour. However, these settings refer to features of older player sofware and are ignored by JASigning at present.
<player_settings> <ambient_motions body="ON" head="ON" blink="ON"/> </player_settings>