<?xml version="1.0" encoding="utf-8"?>
<m3danim length="10">
  <video-clips>
    <random-movie-clip-playlist name="clips1" length="10" clip-length="3.33"/>
    <random-movie-clip-playlist name="clips2" length="10" clip-length="3.33"/>
    <random-movie-clip-playlist name="clips3" length="10" clip-length="3.33"/>
  </video-clips>
  <render-targets>
    <render-target texture="shadow" size="1024"/>
  </render-targets>
  <viewports>
    <viewport name="shadow" world="shadow">
      <projection-transform>
        <orthogonal/>
      </projection-transform>
    </viewport>
    <viewport name="menu" world="menu">
      <projection-transform>
        <menu-screen/>
      </projection-transform>
    </viewport>
  </viewports>
  <worlds>
    <world name="shadow">
      <container>
        <text text-id="disc.title" font-weight="bold" font-name="Arial Black" font-size="40" align="center" valign="center" font-color="#FF000000">
          My first self-encoded DVD!
        </text>
        <transforms>
          <scale x="2.0" y="2.0"/>
        </transforms>
      </container>
    </world>
    <world name="menu">
      <trianglestrip>
        <xyz>
          0.5   -0.5  0.0
          -0.5  -0.5  0.0
          0.5   0.5   0.0
          -0.5  0.5   0.0
        </xyz>
        <texcoord>
          1 0 0 0 1 1 0 1
        </texcoord>
        <texture static-src="background.png"/>
        <transforms>
          <translate x="0.5" y="0.5"/>
          <scale x="1.640625" y="1.2"/>
        </transforms>
      </trianglestrip>
      <container>      
        <container>
          <text text-id="disc.title" font-weight="bold" font-name="Arial Black" font-size="40" align="center" font-top-color="#FFFFFFFF" font-bottom-color="#FFFFFFFF">
            Testing DISC.TITLE Testing
          </text>
          <transforms>
             <translate x="0.0015625" y="-0.002084"/>
          </transforms>
        </container>
        <transforms>
          <translate x="0.5" y="0.1"/>
        </transforms>
      </container>
      <container>
        <rect>
          <texture video-clip="clips1"/>
          <transforms>
            <scale x="0.12890625" y="-0.171875"/>
          </transforms>
        </rect>
        <trianglestrip>
          <xyz>
            .5   -.5  0.0
            -.5  -.5  0.0
            .5   .5   0.0
            -.5  .5   0.0
          </xyz>
          <texcoord>
            1 0 
			0 0 
			1 1 
			0 1
          </texcoord>
          <texture static-src="frame.png"/>
          <transforms>
            <scale x="0.3125" y="0.4166666666"/>
          </transforms>
        </trianglestrip>      
        <transforms>
          <translate x="0.5" y="0.5"/>           
        </transforms>
      </container>
      <container>
        <rect>
          <texture video-clip="clips2"/>
          <transforms>
            <scale x="0.12890625" y="-0.171875"/>
          </transforms>
        </rect>
        <trianglestrip>
          <xyz>
            .5   -.5  0.0
            -.5  -.5  0.0
            .5   .5   0.0
            -.5  .5   0.0
          </xyz>
          <texcoord>
            1 0 
			0 0 
			1 1 
			0 1
          </texcoord>
          <texture static-src="frame.png"/>
          <transforms>
            <scale x="0.3125" y="0.4166666666"/>
          </transforms>
        </trianglestrip>
        <transforms>
          <translate x="0.2" y="0.5"/>
        </transforms>
      </container>
      <container>
        <rect>
          <texture video-clip="clips3"/>
          <transforms>
            <scale x="0.12890625" y="-0.171875"/>
          </transforms>
        </rect>
        <trianglestrip>
          <xyz>
            .5   -.5  0.0
            -.5  -.5  0.0
            .5   .5   0.0
            -.5  .5   0.0
          </xyz>
          <texcoord>
            1 0 0 0 1 1 0 1
          </texcoord>
          <texture static-src="frame.png"/>
          <transforms>
            <scale x="0.3125" y="0.4166666666"/>
          </transforms>
        </trianglestrip>
        <transforms>
          <translate x="0.8" y="0.5"/>
        </transforms>
      </container>

   
      <container>		  
			  <trianglestrip>
          <xyz>
            .5   -.5  0.0
            -.5  -.5  0.0
            .5   .5   0.0
            -.5  .5   0.0
          </xyz>
          <texcoord>
            1 0 0 0 1 1 0 1
          </texcoord>
          <texture static-src="mainmenu-button.png"/>          
          <transforms>
            <scale x="0.384375" y="0.179166"/>
          </transforms>
			  </trianglestrip>
			  <container>			
				  <container>
            <text text-id="button.play" font-weight="bold" font-name="Arial Black" font-size="19" align="center" vertical-align="baseline" font-color="#FF000000"> 
              Play
            </text>
          </container>
          <container>
            <text text-id="button.play" font-weight="bold" font-name="Arial Black" font-size="19" align="center" vertical-align="baseline" font-color="#FFFFFFFF">
              Play
            </text>
            <transforms>
              <translate x="-0.0015625" y="-0.002084"/>
            </transforms>
          </container>
          <transforms>
            <translate x="0.0078125" y="-0.043125"/>
          </transforms>
        </container>
        <transforms>
          <translate x="0.3" y="0.85" />
        </transforms>
      </container>

      <container>
        <trianglestrip>
          <xyz>
            .5   -.5  0.0
            -.5  -.5  0.0
            .5   .5   0.0
            -.5  .5   0.0
          </xyz>
          <texcoord>
            1 0 0 0 1 1 0 1
          </texcoord>
          <texture static-src="mainmenu-button.png"/>
          <transforms>
            <scale x="0.384375" y="0.179166"/>
          </transforms>
        </trianglestrip>
        <container>
          <container>
            <text text-id="button.scenes" font-weight="bold" font-name="Arial Black" font-size="19" align="center" vertical-align="baseline" font-color="#FF000000">
              Scenes
            </text>
          </container>
          <container>
            <text text-id="button.scenes" font-weight="bold" font-name="Arial Black" font-size="19" align="center" vertical-align="baseline" font-color="#FFFFFFFF">
              Scenes
            </text>
            <transforms>
              <translate x="-0.0015625" y="-0.002084"/>
            </transforms>
          </container>
          <transforms>
            <translate x="0.0078125" y="-0.043125"/>
          </transforms>
        </container>
        <transforms>
          <translate x="0.7" y="0.85" />
        </transforms>
      </container>    
    </world>
  </worlds>
  <initial-render-instructions>
    <render-to clear-color="#00FFFFFF" texture="shadow" viewport="shadow"/>
  </initial-render-instructions>
  <render-instructions>    
    <render-to clear-color="#FF00FFAA" buffer="back" viewport="menu"/>
  </render-instructions>
</m3danim>
