Jump to content
DX'Cellent

2D 'flat' glass images from video footage


johnparker007
 Share

Recommended Posts

Hey guys :)

I've just been experimenting with a youtube video, I was able to get this perspective/aspect correct image (as if it were scanned) from a single frame.  This was using perspective tool, then scale in just the single axis required to correct aspect ratio...

Corrected image:image.thumb.png.38547bd57ea1790a721ee76c8561cd53.png

Source image (youtube video frame):
image.thumb.png.5b21b29d7dcf66e668b461f5813fc09f.png

I was wondering, is this what you guys sometimes do when getting a layout source image assembled - grab a bunch of these then scale and stitch them together to end up with a 2d video 'scans' of the machine glasses?

I was watching 1080p videos of fruit machines on youtube, and it got me thinking that the information for high res layouts is technically there, just in a somewhat painful to extract format! 

Edited by johnparker007
  • Like 1

Arcade Simulator
Pre-alpha installer: http://arcadesimulator.net
Known Issues: https://tinyurl.com/yz4uom2e
Donation info: https://tinyurl.com/yzvgl4xo

Fruit Machine Database 
Initial google sheets WIP: https://tinyurl.com/2c5znxzz

Link to comment
Share on other sites

1 hour ago, johnparker007 said:

Hey guys :)

I've just been experimenting with a youtube video, I was able to get this perspective/aspect correct image (as if it were scanned) from a single frame.  This was using perspective tool, then scale in just the single axis required to correct aspect ratio...

Corrected image:image.thumb.png.38547bd57ea1790a721ee76c8561cd53.png

Source image (youtube video frame):
image.thumb.png.5b21b29d7dcf66e668b461f5813fc09f.png

I was wondering, is this what you guys sometimes do when getting a layout source image assembled - grab a bunch of these then scale and stitch them together to end up with a 2d video 'scans' of the machine glasses?

I was watching 1080p videos of fruit machines on youtube, and it got me thinking that the information for high res layouts is technically there, just in a somewhat painful to extract format! 

It can be done from screenies if YouTube vids I think I made one using parts of it, double blue chip for

instance I nabbed the seven segs from one 

its the same principle as getting photos and stitching them together like I did with utter nuter , someone with better skills would produce a far more accurately balanced layout as in all parts the same lit than I did.

  • Thanks 1
Link to comment
Share on other sites

Ah cool, good to know it's a standard technique :)   Yeah it's a tricky one with the lighting, I tried equalising then tweaking brightness/contrast down, seems to level it out a bit ready for an 'unlit' glass image... but getting the different stitched together parts to have even brightness, that does definitely add more complexity.

It's an interesting problem, trying to get back to a evenly lit 1:1 ratio complete 2d scan from a bunch of unevenly lit 3d frames :)  

image.thumb.png.44844c822695abbb09d6c9f9bdf0d2d3.png
 

Arcade Simulator
Pre-alpha installer: http://arcadesimulator.net
Known Issues: https://tinyurl.com/yz4uom2e
Donation info: https://tinyurl.com/yzvgl4xo

Fruit Machine Database 
Initial google sheets WIP: https://tinyurl.com/2c5znxzz

Link to comment
Share on other sites

I have the original PSD files of all my layouts (All hand drawn for full resolution), which are all flat before being put in a cab. If you want to experiment with any, let me know, and I will send you the PSD file. You can separate all the layers you need.

Golden 2's (SRU)
Lucky 2's (SRU)
Eachway Nudger (SRU)
Pool Play (EM)
Sidewinder (AceVideo)
Double Top (SRU)
Bonus Shuffle (Sys 80)
Bar 7 (Sys 80)
Clickity Click (Sys 80)
Hi Lights (MPU2)
Rock On (MPU2)
Spot Light (MPU2)
Bouncer (Sys 80)
Club Vegas (Sys 80)

 

  • Thanks 1

Treat every day like your last, because one day it will be!

Link to comment
Share on other sites

Thanks @Amusements :)   I'm just looking into it a little for the moment, but I may take you up one of your flat PSDs at some point to try some tests with, thanks very much for the offer :)

(As the AI upscaling technique may not work well on some lower res layouts on the bottom glass panel, since it's already heavily vertically 'squashed' for the pseudo-3d perspective of the source MFME layout image).

I'm thinking that theoretically once I've 'auto-flattened' an existing MFME layout so it can be used for the 3d panels, I could somehow write something to take a high res flat scan (or flat redraw), and auto map that into place (and potentially auto-lamp it) - giving a much higher fidelity source texture on the existing 3d layout.

I've still got a couple of big chunks of work left to do on the converter to auto-flatten and AI upscale the source layouts, but then investigating this idea further might be a cool side-quest, to further enhance the visuals ;)

In the 3d engine, whilst the glass panels can be viewed from any angle:image.png.22767032f677856b5f8092b0ed56bbdf.png

...they are stored internally as perfectly flat:image.png.23325e310dc4acb3a93a1c93de5ff0aa.png

Edited by johnparker007
  • Like 1

Arcade Simulator
Pre-alpha installer: http://arcadesimulator.net
Known Issues: https://tinyurl.com/yz4uom2e
Donation info: https://tinyurl.com/yzvgl4xo

Fruit Machine Database 
Initial google sheets WIP: https://tinyurl.com/2c5znxzz

Link to comment
Share on other sites

 Share

×
×
  • Create New...