Add Credits
This exercise will demonstrate how to credits at the end of the
slide show. The credits are constructed by various graphical objects
contained in groups.
Three <group> elements are added to contain the end credits.
The <group> element is a container object which can contain
media objects and other <group> elements. <group> elements
are convenient as they can be manipulated similar to media objects.
In our exercise one <group id="credits"> contains
a semitransparent<rectangle> and the other two other <group>
elements.
The <rectangle> contains a size attribute and a child <material>
element. The color <material> uses a third way to specify
color, three RGB numbers in the range of 0 to 1. The <material>
also contains a transparency attribute to construct a semitransparent
rectangle.
The nested <group> elements play in sequence.
<xmt-o ...>
<head> ... </head>
<body>
<par>
...
<group id="Credits" region="Slide" begin="slide4.begin+10s" end="slide4.end">
<rectangle begin="0s" end="Credits.end" size="240 140">
<material color="0.6 0.8 0.8" filled="true" transparency="0.2"/>
</rectangle>
<group id="CreditsTextBegin" begin="0s" dur="9s"/>
<group id="CreditsTextEnd" begin="CreditsTextBegin.end" end="Credits.end"/>
</group>
</par>
</body>
</xmt-o>
Add text objects to the nested group elements The text has a white
shadow which is accomplished by offsetting an identical text string
with a different color.
The duration of the text strings is clipped to the containing group.
The duration is set to indefinite to allow it to play as long as
the parent is active.
The text strings contain special characters. The XML document is
defined with UTF-8 encoding thus the special characters need to
be edited with an editor which supports UTF-8.
<?xml version="1.0" encoding="UTF-8"?>
<xmt-o ...>
<head> ... </head>
<body>
<par>
...
<group ...>
...
<group ... dur="9s">
<string id="CreditsTextBegin1" dur="indefinite"
textLines=""IBM® XMT-? Tutorial";
"by";
"IBM® TJ Watson";
"Research ©2003"">
<material color="0.9 1.0 1.0" filled="true" />
<fontStyle family=""SANS"" justify="MIDDLE; MIDDLE" size="22" style="BOLD" />
</string>
<string id="CreditsTextBegin1" dur="indefinite"
textLines=""IBM® XMT-? Tutorial";
"by";
"IBM® TJ Watson";
"Research ©2003"">
<material color="0.1 0.2 0.2" filled="true" />
<fontStyle family=""SANS"" justify="MIDDLE; MIDDLE" size="22" style="BOLD" />
</string>
</group>
<group ... end="Credits.end">
<string id="CreditsTextEnd1" dur="indefinite" textLines=""THE"; "END"">
<material color="0.9 1.0 1.0" filled="true"/>
<fontStyle family=""SERIF"" justify="MIDDLE; MIDDLE" size="60" style="BOLD"/>
</string>
<string id="CreditsTextEnd1" dur="indefinite" textLines=""THE"; "END"">
<material color="0.1 0.2 0.2" filled="true"/>
<fontStyle family=""SERIF"" justify="MIDDLE; MIDDLE" size="60" style="BOLD"/>
</string>
</group>
</group>
</par>
</body>
</xmt-o>
 |
Add text in the picture title to replace the last picture's text.
<xmt-o ...>
<head> ... </head>
<body>
<par>
...
<string id="text4" ... end="Credits.begin+1.5"/>
...
</string>
<string id="text5" region="Title" begin="Credits.begin" end="Credits.end"
textLines=""MPEG-4 Authored in XMT-?"">
<transformation>
<animateMotion begin="text5.begin" dur="2s" from="0 18" to="0 0"/>
</transformation>
<use xlink:href="#matDef"/>
<use xlink:href="#fontDef"/>
</string>
...
</par>
</body>
</xmt-o>
The following is the complete XMT-O file used for this exercise:
IBMSlideShow8.xml
Here is a snap shot of the exercise:
In the next exercise, you will add
transitions to the groups containing the credits.
|