<?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="text" size="1024"/>
  </render-targets>
  
  <viewports>
    <viewport name="menu" world="menu">
      <projection-transform>
        <menu-screen/>
      </projection-transform>
    </viewport>
    <viewport name="text" world="text">
      <projection-transform>
        <orthogonal/>
      </projection-transform>
    </viewport>
	
  </viewports>
  
	<worlds>

		<world name="text">
			<container>
				<text text-id="disc.title" font-weight="bold" font-name="Arial Bold" font-size="70" align="center" valign="center" font-top-color="#FFFFFFFF" font-bottom-color="#FFFFFFFF">
					My first self-encoded DVD!
				</text>
				<transforms>
					<scale x="1" y="1" />
					<!--translate y="-1.0"/-->
				</transforms>
			</container>
		</world>


		<world name="menu">
			<trianglestrip>
				<xyz>
					1.3203125	-0.1	1.0
					-0.3203125	-0.1	1.0
					1.3203125	1.1		1.0
					-0.3203125	1.1 	1.0
				</xyz>
				<texcoord absolute="false">
					1.0   	0
					0		0
					1.0   	1.0
					0	    1.0
				</texcoord>
				
				<texture static-src="background.png"/>
				<transforms>
					
				</transforms>
			</trianglestrip>
			
			<!-- Title -->
			<container>
				<trianglestrip>
					<xyz>
						1.3		1.0	1.0
						-0.3	1.0	1.0
						1.3		0.0 1.0
						-0.3	0.0	1.0
					</xyz>
					<texcoord>
						1.0   0.451171875
						0.0   0.451171875
						1.0   0.548828125
						0.0   0.548828125
					</texcoord>
					<texture render-target="text"/>

					<transforms>
						<!--translate y="0.6"/-->
						<scale y="0.15625"/>
					</transforms>				
				</trianglestrip>
				
				<trianglestrip>
					<xyz>
						1.3		1.0	1.0
						-0.3	1.0	1.0
						1.3		0.0 1.0
						-0.3	0.0	1.0
					</xyz>
					<texcoord>
						1.0   0.548828125
						0.0   0.548828125
						1.0   0.451171875
						0.0   0.451171875
					</texcoord>
					<texture render-target="text"/>
					<texcoord>
						1.0   1.0
						0.0   1.0
						1.0   0.0
						0.0   0.0
					</texcoord>
					<texture static-src="alphaTextMirrorOverlay.png"/>

					<shader pixelshader="textmirror" vertexshader="normal2Tex">
						<float name="maxtrans" value="0.5"/>
					</shader>
					<transforms>
						<translate y="0.083333"/>
						<scale y="0.15625"/>
					</transforms>				
				</trianglestrip>		
			</container>
			

			<container>
				<transforms>
					<translate x="0.5" y="0.47"/>
				</transforms>


				<container>
					<transforms>
						<translate x="-0.3"/>
						<scale x="0.8" y="0.8"/>
					</transforms>

					<trianglestrip>
						<xyz>
							0.16328125		-0.21770833333	0.0
							-0.16328125		-0.21770833333	0.0
							0.16328125		0.21770833333	0.0
							-0.16328125		0.21770833333	0.0
						</xyz>
						<texcoord>
							1.0   0.0
							0.0   0.0
							1.0   1.0
							0.0   1.0
						</texcoord>
						<texture video-clip="clips1"/>
						<transforms>
							
						</transforms>					
					</trianglestrip>			

					<trianglestrip>
						<xyz>
							0.2		-0.2666666666	0.0
							-0.2	-0.2666666666	0.0
							0.2		0.2666666666	0.0
							-0.2	0.2666666666	0.0
						</xyz>
						<texcoord>
							1.0   0.0
							0.0   0.0
							1.0   1.0
							0.0   1.0
						</texcoord>
						<texture static-src="border.png"/>
						<transforms>
						</transforms>					
					</trianglestrip>			
				</container>
				
				<container>
					<transforms>
						<translate x="-0.0"/>
						<scale x="0.8" y="0.8"/>
					</transforms>

					<trianglestrip>
						<xyz>
							0.16328125		-0.21770833333	0.0
							-0.16328125		-0.21770833333	0.0
							0.16328125		0.21770833333	0.0
							-0.16328125		0.21770833333	0.0
						</xyz>
						<texcoord>
							1.0   0.0
							0.0   0.0
							1.0   1.0
							0.0   1.0
						</texcoord>
						<texture video-clip="clips2"/>
						<transforms>
							
						</transforms>					
					</trianglestrip>			

					<trianglestrip>
						<xyz>
							0.2		-0.2666666666	0.0
							-0.2	-0.2666666666	0.0
							0.2		0.2666666666	0.0
							-0.2	0.2666666666	0.0
						</xyz>
						<texcoord>
							1.0   0.0
							0.0   0.0
							1.0   1.0
							0.0   1.0
						</texcoord>
						<texture static-src="border.png"/>
						<transforms>
						</transforms>					
					</trianglestrip>			
				</container>
			
				<container>
					<transforms>
						<translate x="0.3"/>
						<scale x="0.8" y="0.8"/>
					</transforms>

					<trianglestrip>
						<xyz>
							0.16328125		-0.21770833333	0.0
							-0.16328125		-0.21770833333	0.0
							0.16328125		0.21770833333	0.0
							-0.16328125		0.21770833333	0.0
						</xyz>
						<texcoord>
							1.0   0.0
							0.0   0.0
							1.0   1.0
							0.0   1.0
						</texcoord>
						<texture video-clip="clips3"/>
						<transforms>
							
						</transforms>					
					</trianglestrip>			

					<trianglestrip>
						<xyz>
							0.2		-0.2666666666	0.0
							-0.2	-0.2666666666	0.0
							0.2		0.2666666666	0.0
							-0.2	0.2666666666	0.0
						</xyz>
						<texcoord>
							1.0   0.0
							0.0   0.0
							1.0   1.0
							0.0   1.0
						</texcoord>
						<texture static-src="border.png"/>
						<transforms>
						</transforms>					
					</trianglestrip>			
				</container>		
			</container>

			
			<container>
				<transforms>
					<translate x="0.5" y="0.85"/>
				</transforms>
				<trianglestrip>
					<xyz>
						0.1		-0.13333333	0.0
						-0.1	-0.13333333	0.0
						0.1		0.13333333	0.0
						-0.1	0.13333333	0.0
					</xyz>
					<texcoord>
						1.0   0.0
						0.0   0.0
						1.0   1.0
						0.0   1.0
					</texcoord>
					<texture static-src="button_play.png"/>
					<transforms>
						<translate x="-0.15"/>
					</transforms>					
				</trianglestrip>			
				<trianglestrip>
					<xyz>
						0.1		-0.13333333	0.0
						-0.1	-0.13333333	0.0
						0.1		0.13333333	0.0
						-0.1	0.13333333	0.0
					</xyz>
					<texcoord>
						1.0   0.0
						0.0   0.0
						1.0   1.0
						0.0   1.0
					</texcoord>
					<texture static-src="button_chapter.png"/>
					<transforms>
						<translate x="0.15"/>
					</transforms>					
				</trianglestrip>			
			
			</container>
		
		</world>


	</worlds>
	<initial-render-instructions>
		<render-to clear-color="#00FFFFFF" texture="text" viewport="text"/>
	</initial-render-instructions>
	<render-instructions>    
		<render-to clear-color="#FF00FFAA" buffer="back" viewport="menu"/>
	</render-instructions>
</m3danim>
