Jump to content
LaunchBox Community Forums

Recommended Posts

Posted

To get this to work the way I wanted I used invaders.png from Mr. Do's arcade. You can find it in the "Old Artwork" section of that site.

Put it into your artwork-->invaders folder. Bezel.png should already be there if you downloaded the bezels through LaunchBox.

Edit default.lay to look like this:

<!-- invaders.lay -->

<mamelayout version="2">
	<element name="bezel">
    		<image file="bezel.png" />
  	</element>
	<element name="backdrop_m">
		<image file="invaders.png" />
	</element>
	<element name="overlay_m">
		<rect>
			<bounds left="0" top="0" right="224" bottom="260" />
			<color red="1" green="1" blue="1" />
		</rect>
		<rect>
			<bounds left="0" top="184" right="224" bottom="240" />
			<color red="0.125" green="1" blue="0.125" />
		</rect>
		<rect>
			<bounds left="16" top="240" right="134" bottom="260" />
			<color red="0.125" green="1" blue="0.125" />
		</rect>
		<rect>
			<bounds left="0" top="34" right="224" bottom="60" />
			<color red="1" green="0.125" blue="0.125" />
		</rect>
	</element>
	
	<group name="backdrop_only">
		<element ref="backdrop_m">
			<bounds left="4.625" top="0" right="11.375" bottom="9" />
		</element>
	</group>
	<group name="bezel_only">
		<element ref="bezel">
			<bounds left="0" top="0" right="16" bottom="9" />
		</element>
	</group>
	
	
	<view name="Upright_Artwork">		
		<screen index="0">
			<bounds left="4.625" top="0" right="11.375" bottom="9" />
			<color alpha="1.0" />
		</screen>
		<element ref="overlay_m" blend="multiply">
			<bounds left="4.625" top="0" right="11.375" bottom="9" />
		</element>
		<collection name="Overlay">
			<element ref="overlay_m" blend="multiply">
				<bounds left="4.625" top="0" right="11.375" bottom="9" />
			</element>
		</collection>
		<collection name="Backdrop">
		<group ref="backdrop_only" blend="add">
				<bounds left="4.625" top="0" right="11.375" bottom="9" />
				<color alpha="0.5" />
				<orientation rotate="270" />
		</group>
		<group ref="bezel_only" blend="add">
				<bounds left="0" top="0" right="16" bottom="9" />
				<color alpha="1.0" />
			</group>
		</collection>
	</view>
</mamelayout>

Enjoy!

 

invaders.jpg

  • 2 months later...
Posted (edited)

This specific game is a bit tricky to make it show-up correctly in MAME due to the "color  overlay" that MAME uses to display the red and green color portions of the graphics. Its all a combination of the color overlay, the blending, and the correct placement of the elements in the view in the .lay file.

That said its probably easier to share my version of the above artwork (invaders.zip) that supports two views Framed & Unframed and also a Glass on-off option under Video Options>Screen #0 for anyone that would like to use it as is or modified to his own needs.

invaders.zip

below is the lay file used in the above zip in-case some one wants it for reference: 

<!-- invaders.lay -->

<mamelayout version="2">

<!-- Elements sector -->

	<element name="Artwork_1">
		<image file="art1.png"/>
	</element>

	<element name="Logo_Art">
		<image file="logo_art.png"/>
	</element>
	
	<element name="Backdrop">
		<image file="backdrop.png" />
	</element>

	<element name="Screen_Bezel">
		<image file="vert_screen_bezel.png"/>
	</element>

	<element name="Screen_Glass_Bezel">
		<image file="vert_glass_bezel.png"/>
	</element>

	<element name="Screen_Glass_Full">
		<image file="vert_glass_full.png"/>
	</element>

	<element name="Screen_Mask">
		<image file="vert_screen_mask.png"/>
	</element>

	<element name="Overlay">
		<rect>
			<bounds left="0" top="0" right="224" bottom="260" />
			<color red="1" green="1" blue="1" />
		</rect>
		<rect>
			<bounds left="0" top="184" right="224" bottom="240" />
			<color red="0.125" green="1" blue="0.125" />
		</rect>
		<rect>
			<bounds left="16" top="240" right="134" bottom="260" />
			<color red="0.125" green="1" blue="0.125" />
		</rect>
		<rect>
			<bounds left="0" top="32" right="224" bottom="62" />
			<color red="1" green="0.125" blue="0.125" />
		</rect>
	</element>


<!-- View sector -->
<!-- View 1 -->

	<view name="Full">
		<screen index="0">
			<bounds x="478" y="0" width="966" height="1080"/>
		</screen>

		<element ref="Overlay" blend="multiply">
			<bounds x="477" y="0" width="965" height="1080" />
		</element>

		<element ref="Backdrop">
			<bounds x="477" y="0" width="965" height="1080" />
			<color alpha="0.3" />
		</element>

		<collection name="Glass">
			<element ref="Screen_Glass_Full">
				<bounds x="478" y="0" width="966" height="1080"/>
			</element>
		</collection>

		<element ref="Screen_Mask" blend="multiply">
			<bounds x="478" y="0" width="966" height="1080"/>
		</element>

		<element ref="Artwork_1">
			<bounds x="0" y="0" width="1920" height="1080"/>
		</element>
	</view>


<!-- View 2 -->

	<view name="Framed">
		<screen index="0">
			<bounds x="526" y="33" width="869" height="1005"/>
		</screen>

		<element ref="Overlay" blend="multiply">
			<bounds x="526" y="33" width="869" height="1005"/>
		</element>

		<element ref="Backdrop">
			<bounds x="526" y="33" width="869" height="1005"/>
			<color alpha="0.3" />
		</element>

		<collection name="Glass">
			<element ref="Screen_Glass_Bezel">
				<bounds x="478" y="0" width="966" height="1080"/>
			</element>
		</collection>

		<element ref="Screen_Bezel">
			<bounds x="478" y="0" width="966" height="1080"/>
		</element>

		<element ref="Logo_Art">
			<bounds x="885" y="1048" width="150" height="30"/>
		</element>

		<element ref="Artwork_1">
			<bounds x="0" y="0" width="1920" height="1080"/>
		</element>
	</view>

</mamelayout>

It is tested with MAME 0.285 and a modified raster.ini file as below

# DIRECT3D POST-PROCESSING OPTIONS 

distortion                0.15

to fit the screen curve.


Hope that is helpful. 😄

Edited by Tsik

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...