Sign in to follow this  

3D Virtual 1980 Pac-Man Machine

Recommended Posts

L1ght3d    101
Hi everyone, I'm quite new here. c:
I need some suggestion. for my upcoming project
I'm working on a virtual world after being inspired by a book, Ready Player One by Ernest Cline...
The enviroment could be anything, like an arcade from 1980s. Where you could walk around and find an particular arcade machine and play it right away.
Get the idea?
This is how I'm doing to do it...
The program would automatically open a software called, "MAME" (Multiple Arcade Machine Emulator) and run in background. The program now will use the emulator window as the texture to use on the virtual monitor inside the game.
The real problem, which game engine can get MAME window and convert it in a realtime texture to use inside the virtual world?

This will be what it will look like, but with virtual monitor with realtime texture:





Share this post

Link to post
Share on other sites
DejaimeNeto    4221

MAME is open source, so you could simply look up its source code and find where its drawing happens.

You can browse this source code here:


Still, you'll soon realize it was built on a low level, and it won't be as simple as hooking up a global at initialization time. You'll have to go deeper than that, unfortunately.


You could also take a look at SDLMAME ( I haven't looked up its code, don't really know how much functionality it has, but I guess it would be more accessible than MAME itself...

Edited by dejaime

Share this post

Link to post
Share on other sites
Spazzarama    1643

The MAME source linked by @dejaime looks like it supports D3D 8/9, DirectDraw or GDI for drawing (on Windows OS). I don't know which and when etc.. but there are methods for capturing each of these if they are used.


Alternatively, a custom build of MAME that provides an appropriate extension point (if it doesn't already exist) for grabbing the render output. MAME does have support for recording video of gameplay or taking screenshots - you might be able to leverage this somehow.

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this