Jump to content

  • Log In with Google      Sign In   
  • Create Account


3D Virtual 1980 Pac-Man Machine


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
3 replies to this topic

#1 L1ght3d   Members   -  Reputation: 101

Like
0Likes
Like

Posted 13 April 2014 - 07:45 PM

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:

978qo8.jpg

 

 

 



Sponsor:

#2 Tom Sloper   Moderators   -  Reputation: 9450

Like
0Likes
Like

Posted 13 April 2014 - 08:31 PM

The real problem, which game engine can get MAME window and convert it i


This is not a Game Design question. Moving to For Beginners.
-- Tom Sloper
Sloperama Productions
Making games fun and getting them done.
www.sloperama.com

Please do not PM me. My email address is easy to find, but note that I do not give private advice.

#3 dejaime   Crossbones+   -  Reputation: 4002

Like
2Likes
Like

Posted 13 April 2014 - 09:36 PM

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:

http://www.mamedev.org/source/

 

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 (http://rbelmont.mameworld.info/?page_id=163). 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, 23 April 2014 - 05:34 PM.


#4 spazzarama   Members   -  Reputation: 683

Like
0Likes
Like

Posted 14 April 2014 - 03:02 AM

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.


Justin Stenning | Blog | Book - Direct3D Rendering Cookbook (using C# and SharpDX)

Projects: Direct3D Hook, EasyHookAfterglow, C#raft

@spazzarama

 




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS