Main Restorations Software Audio/Jukebox/MP3 Everything Else Buy/Sell/Trade
Project Announcements Monitor/Video GroovyMAME Merit/JVL Touchscreen Meet Up Retail Vendors
Driving & Racing Woodworking Software Support Forums Consoles Project Arcade Reviews
Automated Projects Artwork Frontend Support Forums Pinball Forum Discussion Old Boards
Raspberry Pi & Dev Board controls.dat Linux Miscellaneous Arcade Wiki Discussion Old Archives
Lightguns Arcade1Up Try the site in https mode Site News

Unread posts | New Replies | Recent posts | Rules | Chatroom | Wiki | File Repository | RSS | Submit news

  

Author Topic: Editing Mame's Scanlines.PNG Effect??  (Read 9708 times)

0 Members and 1 Guest are viewing this topic.

lettuce

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1900
  • Last login:December 31, 2021, 01:46:10 pm
  • Make It So!
Editing Mame's Scanlines.PNG Effect??
« on: August 10, 2008, 05:04:35 am »
Is it possible to edit the scanlines.png file what mame uses for one of its effects? Im basically using mame with the setting for prescale set to 2 rather than the default 1, in conjuction with the 'scanlines.png' effect, although this give an almost 99% authentic scanline effect on my monitor, ive noticed that the black pixels inbetween each active pixel (scanline) are not quite thick enough. So i was woundering if it was possible to increase the thickness of the scanline by another row of pixels across the screen thus giving an 100% authentic look?

lettuce

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1900
  • Last login:December 31, 2021, 01:46:10 pm
  • Make It So!
Re: Editing Mame's Scanlines.PNG Effect??
« Reply #1 on: August 11, 2008, 04:57:24 pm »
Anyone?

Ginsu Victim

  • Yeah, owning a MAME cab only leads to owning real ones. MAME just isn't good enough. It's a gateway drug.
  • Trade Count: (+10)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 10093
  • Last login:May 08, 2023, 02:40:58 pm
  • Comanche, OK -- USA
Re: Editing Mame's Scanlines.PNG Effect??
« Reply #2 on: August 11, 2008, 05:02:49 pm »
It's a PNG, so it's easy to edit. Just take it into an image editor and increase the size of the image, or increase the thickness of the lines.

lettuce

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1900
  • Last login:December 31, 2021, 01:46:10 pm
  • Make It So!
Re: Editing Mame's Scanlines.PNG Effect??
« Reply #3 on: August 12, 2008, 11:58:22 am »
I was just woundering if there was a quick and esay way to do that, it would take forever to make each scanline on the PNG a pixel thicker

Ginsu Victim

  • Yeah, owning a MAME cab only leads to owning real ones. MAME just isn't good enough. It's a gateway drug.
  • Trade Count: (+10)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 10093
  • Last login:May 08, 2023, 02:40:58 pm
  • Comanche, OK -- USA
Re: Editing Mame's Scanlines.PNG Effect??
« Reply #4 on: August 12, 2008, 12:19:18 pm »
Just try increasing the size slightly. A pixel or two bigger, then try it.

lettuce

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1900
  • Last login:December 31, 2021, 01:46:10 pm
  • Make It So!
Re: Editing Mame's Scanlines.PNG Effect??
« Reply #5 on: August 12, 2008, 03:37:05 pm »
Ok, ive now noticed that when u add the scanline effect, it seems to washout the colours, and the bightness or contrast doesnt seem to be as bright. I have tried changing the brightness, contrasts and gamma settings in mame, but cant get it anywhere near as it looks without the scanline effect on. Any ideas why this happens?. I know the scanline png has white and grey lines going down, would it make a difference if these white lines where not white and instead transparent??

Ginsu Victim

  • Yeah, owning a MAME cab only leads to owning real ones. MAME just isn't good enough. It's a gateway drug.
  • Trade Count: (+10)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 10093
  • Last login:May 08, 2023, 02:40:58 pm
  • Comanche, OK -- USA
Re: Editing Mame's Scanlines.PNG Effect??
« Reply #6 on: August 12, 2008, 03:59:38 pm »
Maybe try flipping it negative?

nipsmg

  • Trade Count: (+2)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1738
  • Last login:Yesterday at 04:23:31 pm
  • ROONEY!! ERRGH!!
    • Arcadia
Re: Editing Mame's Scanlines.PNG Effect??
« Reply #7 on: August 12, 2008, 04:24:15 pm »
This is VERY easy to do.

In photoshop, make an image that is ONE PIXEL wide by TWO tall.

Zoom in as far as you can.

Select the Gray you want, and paint one of the pixels gray.

Select all.

Edit -> Make Pattern.  call it "scanlines"


Create a new image 32x32
Fill using the pattern you created.


You can create a 1x3 pixel image if you want a thicker black/white.

lettuce

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1900
  • Last login:December 31, 2021, 01:46:10 pm
  • Make It So!
Re: Editing Mame's Scanlines.PNG Effect??
« Reply #8 on: August 12, 2008, 04:59:28 pm »
This is VERY easy to do.

In photoshop, make an image that is ONE PIXEL wide by TWO tall.

Zoom in as far as you can.

Select the Gray you want, and paint one of the pixels gray.

Select all.

Edit -> Make Pattern.  call it "scanlines"


Create a new image 32x32
Fill using the pattern you created.


You can create a 1x3 pixel image if you want a thicker black/white.


I cannot find the 'make pattern' option? Also would this remove the washed out effect thats you seem to get with the scanlines.png file?

nipsmg

  • Trade Count: (+2)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1738
  • Last login:Yesterday at 04:23:31 pm
  • ROONEY!! ERRGH!!
    • Arcadia
Re: Editing Mame's Scanlines.PNG Effect??
« Reply #9 on: August 12, 2008, 05:06:39 pm »
Sorry about that, it's not make pattern, it's DEFINE pattern. :-/

Edit menu. 


Quote
Also would this remove the washed out effect thats you seem to get with the scanlines.png file?
I have no idea.. I'm just telling you how you can create the PNG file.  you'll have to experiment with the overlay yourself.

lettuce

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1900
  • Last login:December 31, 2021, 01:46:10 pm
  • Make It So!
Re: Editing Mame's Scanlines.PNG Effect??
« Reply #10 on: August 12, 2008, 05:19:19 pm »
ok done that and named the patter scan, but how do i apply the pattern to the 32x32 image?