IBM MPEG-4 XMT-O Tutorial IBM MPEG-4 Technologies
IBM MPEG-4 Technologies
Overview
Presentation
Images
Text
Definitions
Regions
Animation
Transition
Credits
Transition credits
Video

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="&quot;IBM® XMT-? Tutorial&quot;;
                             &quot;by&quot;;
                             &quot;IBM® TJ Watson&quot;;
                             &quot;Research ©2003&quot;">
            <material color="0.9 1.0 1.0" filled="true" />
            <fontStyle family="&quot;SANS&quot;" justify="MIDDLE; MIDDLE" size="22" style="BOLD" />
          </string>
          <string id="CreditsTextBegin1" dur="indefinite"
                  textLines="&quot;IBM® XMT-? Tutorial&quot;;
                             &quot;by&quot;;
                             &quot;IBM® TJ Watson&quot;;
                             &quot;Research ©2003&quot;">
            <material color="0.1 0.2 0.2" filled="true" />
            <fontStyle family="&quot;SANS&quot;" justify="MIDDLE; MIDDLE" size="22" style="BOLD" />
          </string>
        </group>
        <group ... end="Credits.end">
          <string id="CreditsTextEnd1" dur="indefinite" textLines="&quot;THE&quot;; &quot;END&quot;">
            <material color="0.9 1.0 1.0" filled="true"/>
            <fontStyle family="&quot;SERIF&quot;" justify="MIDDLE; MIDDLE" size="60" style="BOLD"/>
          </string>
          <string id="CreditsTextEnd1" dur="indefinite" textLines="&quot;THE&quot;; &quot;END&quot;">
            <material color="0.1 0.2 0.2" filled="true"/>
            <fontStyle family="&quot;SERIF&quot;" 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="&quot;MPEG-4 Authored in XMT-?&quot;">
        <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.

 

  IBM Home | Research Home | MPEG-4 Technologies | alphaWorks | © Copyright IBM Corp. 1998, 2006. All Rights Reserved.