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 Transitions

This exercise will demonstrate how to transition between objects. Transitions are used to make the change from one picture to another more fluid.

To create transitions define your transitions by adding <transition> elements to the <head> section of the document.

Transitions are governed by their type and subtype. The transitions used in this example are a few of the standardized SMPTE transitions.

<xmt-o ...> 
  <head> 
    ...
    <transition id="transBoxWipe"     type="boxWipe"     subtype="bottomRight"       dur="2s"/>
    <transition id="transfourBoxWipe" type="fourBoxWipe" subtype="cornersOut"        dur="2s"/>
    <transition id="transSnakeWipe"   type="snakeWipe"   subtype="topLeftHorizontal" dur="2s" />
    ...
  </head>
  <body> ... </body>
</xmt-o>

The transition is used by specifying the transIn attribute on the media object. The transOut attribute can be specified to indicate a transition to be used for the removal of the media object.

The timing is adjusted to allow for overlapping of the pictures. Since the transitions last 2 seconds the picture will begin 2 seconds before the previous picture ended. The durations are changed 12 seconds to compensate for the overlap.

<xmt-o ...> 
  <head> ... </head>
  <body> 
    <par>
      ...
      <img ... begin="0s"            dur="12s"/>
      <img ... begin="slide1.end-2s" dur="12s"        transIn="transBoxWipe"/>
      <img ... begin="slide2.end-2s" dur="12s"        transIn="transfourBoxWipe"/>
      <img ... begin="slide3.end-2s" dur="indefinite" transIn="transSnakeWipe"/>
      ...
    </par>
  </body>
</xmt-o>

The following is the complete XMT-O file used for this exercise:

IBMSlideShow7.xml

Here is a snap shot of the exercise:


In the next exercise, you will add credits at the end using groups and various graphic objects.

 

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