Jump to content



Photo
- - - - -

Dual Monitor support..


  • Please log in to reply
92 replies to this topic

#1 Rawd

Rawd

    Pinball Wizard

  • VIP
  • 4,313 posts
  • Location:Edmonton, Canada

  • Flag: Canada

  • Favorite Pinball: Triple Strike



Posted 19 April 2011 - 04:09 PM

This topic has come up in many threads, and probably has threads of its own, but I wanted to maybe get everyone's heads together on this, and see if we can come up with a solution once and for all.

Today's options:

Pinserver: I had trouble getting this installed and working. I think Moogster had some success and was able to get EM reels working on monitor 2.

UVP: Only works for rom based tables, does not support EM reels, and causes slow down on some pc's

Rosve's software (B2S): Works well, but is a pain to compile your exe, and causes slowdown on some pc's due to the way it communicates with VP. You can create nice backglass animations with this software. (EDIT) B2S has been improved upon since this post, and it seems to run very smooth now)

ManofWar software: I tried his VP compile with dual monitor support and the software crashed everytime.


It seems to me that we need something integrated directly into VP. Any additional software gets confusing for authors and players, and it can slow down performance. Do any of the Dev's know why ManofWar's compile did not work?

I remember someone saying that VP can't support 2 monitors because it runs DirectX7. Is this true? Is this why we have make workaround software? Is it an incredible task to compile VP with DirectX9?

I wish I knew more about the software and programming in general to help... but I just figured another thread on the issue might get people motivated to finally find a solution for this issue.

VP needs more EM's!! smile.gif

Edited by Rawd, 27 September 2011 - 08:18 PM.


 


#2 maceman

maceman

    Home Pinball Machine Collector/ Restorer

  • VIP
  • 2,271 posts
  • Location:Canada, Eh!

  • Flag: Canada

  • Favorite Pinball: ....**Haunted House**....



Posted 19 April 2011 - 04:19 PM

I think we would want it compiled with DX11 to best optimize the newer cards, no?

Anyways- good post, and i agree! I wish I knew programming and could help...
________________________________________________________________________________
Canada Eh!
hm_avatar.pngss_avatar.jpg MODS ys_avatar5.jpggenie_avatar.pngj2o_avatar.png

#3 Bob5453

Bob5453

    I'm taking a nap

  • VIP
  • 3,896 posts
  • Location:Near Dayton, Ohio USA

  • Flag: United States of America

  • Favorite Pinball: Any table I can play while sitting in a rocking chair




  • Trophies:

Posted 19 April 2011 - 04:20 PM

I would buy a new computer for this option. Arcade mode would be the cat's meow. Whoever could add this to VP would be go down in history like Rudolph the Red Nose Reindeer.

Posted Image

You have discovered an Easter egg. Pat yourself on the back.


#4 Manofwar

Manofwar

    Hobbyist

  • VP Dev Team
  • PipPip
  • 49 posts

  • Flag: Spain

  • Favorite Pinball: Attack from Mars

Posted 22 June 2011 - 09:13 PM

Hello everyone.

Rawd, the problems of the version of VP I did (rev. 137), I think that can be solved by changing lines 370 and 371 of pinimage.cpp file like this:

original
CODE
370 //hr = (*m_DDCreate)(&g_pvp->monitor_guid, (VOID **)m_vpDD.ElementAt(1), IID_IDirectDraw7, NULL);
371 hr = (*m_DDCreate)(NULL, (VOID **)m_vpDD.ElementAt(1), IID_IDirectDraw7, NULL);


modified
CODE
370 hr = (*m_DDCreate)(&g_pvp->monitor_guid, (VOID **)m_vpDD.ElementAt(1), IID_IDirectDraw7, NULL);
371 //hr = (*m_DDCreate)(NULL, (VOID **)m_vpDD.ElementAt(1), IID_IDirectDraw7, NULL);


Regards

#5 wildman

wildman

    Pinball Fan

  • Platinum Supporter
  • 617 posts
  • Location:massachusetts

  • Flag: United States of America

  • Favorite Pinball: all

Posted 22 June 2011 - 09:25 PM

He lives...nice to hear from you.....thanks Manofwar nice too see ya agian otvclap.gif dblthumb.gif Worship.gif Worship.gif



 


#6 mameman23

mameman23

    Pinball Fan

  • Silver Supporter
  • 506 posts
  • Location:Farmington Hills, MI

  • Flag: United Kingdom

  • Favorite Pinball: Dr Who, robocop

Posted 23 June 2011 - 02:36 AM

Refresh my memory, what will dual monitor support get us? Got any examples?
Certainy interested in the possibility in building something different to make use of it.
Thanks
PM me for any CNC needs.
Find me on Facebook....Xtreme Pinball
Doctor Who Cabinet Build Thread Here
Tron Cabinet Build Thread Here
Big Bang Bar Build Thread Here
Mameman's cnc fun

#7 tamoore

tamoore

    Enthusiast

  • VIP
  • 378 posts

  • Flag: United States of America

  • Favorite Pinball: Whirlwind

  • PS3 Gamer Tag: G33KFR34K


Posted 23 June 2011 - 09:54 AM

QUOTE (mameman23 @ Jun 22 2011, 10:36 PM) <{POST_SNAPBACK}>
Refresh my memory, what will dual monitor support get us? Got any examples?
Certainy interested in the possibility in building something different to make use of it.
Thanks



I don't know what the 'official' line is, but I would think dual monitor support would give you exactly that...

The ability to put any and all objects from VP on either monitor.

Think of the second playfield in Banzai Run, or fully active and incorporated back glasses, etc.

It would be a big deal.
I am, therefore I run.

#8 rascal

rascal

    two-faced as they come

  • VIP
  • 1,379 posts
  • Location:Indiana USA

  • Flag: United States of America

  • Favorite Pinball: Bally Eight Ball



Posted 23 June 2011 - 11:02 AM

QUOTE (mameman23 @ Jun 22 2011, 09:36 PM) <{POST_SNAPBACK}>
Refresh my memory, what will dual monitor support get us? Got any examples?
Certainy interested in the possibility in building something different to make use of it.
Thanks

Basically it would move the backglass to a second monitor and allow the objects enabled for the backglass in VP to run on a second screen. Lights, LightSeq, EMReels, Textboxes, Timers, and Decals would be able to run on a second monitor.

@Manofwar - Nice to hear from you, please stay! dblthumb.gif I downloaded revision 137, I couldn't compile in VS 2008 without errors. I jumped up to revision 139 which was the last revision that had second screen support and VS 2008 compile fixes. I changed your recommended lines of code, compiled it, and still it crashes. I ran it in the Debugger and it crashes with the following message.


The debugger points to line 423 of pin3d.cpp. The line reads as follows.
CODE
m_pDD = *g_pvp->m_pdd.m_vpDD.ElementAt(m_idDD);


From the call stack it points to this.
CODE
> VPinball.exe!Pin3D::InitDD(HWND__ * const hwnd=0x000d0772, const bool fFullScreen=true, const int screenwidth=0,
const int screenheight=0, const int colordepth=16, const int refreshrate=0) Line 423 + 0x1e bytes C++


Don't know if this is helpful to you, but I would love to help you figure this out if I can.

Edited by rascal, 23 June 2011 - 11:06 AM.

Posted Image


#9 Manofwar

Manofwar

    Hobbyist

  • VP Dev Team
  • PipPip
  • 49 posts

  • Flag: Spain

  • Favorite Pinball: Attack from Mars

Posted 23 June 2011 - 06:37 PM

Thank you all for the welcome.

Support for 2 monitors work as described by Rascal

Rascal, try this:

1. Sets the screen for the backglass to the right of the desktop.
2. Open VPinball, go to Preferences, Video Options, click Enable Second Monitor, click OK.
4. Open a table, save it and close it.
5. Open the table and play.

Tell me if you have a graphics card with dual output. or two cards.

Regards

#10 rascal

rascal

    two-faced as they come

  • VIP
  • 1,379 posts
  • Location:Indiana USA

  • Flag: United States of America

  • Favorite Pinball: Bally Eight Ball



Posted 23 June 2011 - 08:14 PM

Glad your back Manofwar! dblthumb.gif There have been a lot of advancements to the VP project, but sadly no two screen displays yet (since yours that is). I really hope that we can figure this out so that it can be added to the newest build.

I followed your steps above. My second monitor was originally on the left of my primary screen. I moved it to the right in the windows settings. This is what you meant correct?


I put a check in Enable Second Monitor. Clicked OK and actually closed and opened VP again.

Then I opened a new table, saved it, closed and opened VP again.
Then played the table.
Same error as I posted in my above post. sad.gif
I tried a couple of other things like moving the second monitor to the top and back to the left and bottom, with no luck.
Closing and opening the table and things like that. Now sometimes the table would render and run, but only on one screen as before. Other times the program would crash with the same error as I posted and same debug messages. However, it never managed to do two screens.

Now I'll list my hardware for you. Don't laugh guys, us poor folk make due with what we have. smile.gif

Window XP Pro SP3
AMD Athlon™ 64 Processor 3200+ 2.21 GHz
1.00 GB of RAM
I have a dual output video card (1 card with two outputs).
It's a NVIDIA GeForce 7600 GS with 256 MB video RAM.

Second screen displays straight through VP would be the icing on the cake with all the new advancements lately. Again, I hope we can get this figured out.

Posted Image


#11 Manofwar

Manofwar

    Hobbyist

  • VP Dev Team
  • PipPip
  • 49 posts

  • Flag: Spain

  • Favorite Pinball: Attack from Mars

Posted 23 June 2011 - 08:24 PM


Try this compilation and the sample table.

http://www.mediafire...mdyehb2v4j16vvh

#12 Rawd

Rawd

    Pinball Wizard

  • VIP
  • 4,313 posts
  • Location:Edmonton, Canada

  • Flag: Canada

  • Favorite Pinball: Triple Strike



Posted 23 June 2011 - 09:06 PM

Nice to hear from you! I will try this test table on my cabinet and let you know. Thanks!



QUOTE (Manofwar @ Jun 23 2011, 02:24 PM) <{POST_SNAPBACK}>
Try this compilation and the sample table.

http://www.mediafire...mdyehb2v4j16vvh



 


#13 Bob5453

Bob5453

    I'm taking a nap

  • VIP
  • 3,896 posts
  • Location:Near Dayton, Ohio USA

  • Flag: United States of America

  • Favorite Pinball: Any table I can play while sitting in a rocking chair




  • Trophies:

Posted 23 June 2011 - 10:10 PM

Manofwar! This would be bigger than PinMame for me if you got this to work. That's the truth Ruth.

Thanks for your efforts!

Posted Image

You have discovered an Easter egg. Pat yourself on the back.


#14 Rawd

Rawd

    Pinball Wizard

  • VIP
  • 4,313 posts
  • Location:Edmonton, Canada

  • Flag: Canada

  • Favorite Pinball: Triple Strike



Posted 23 June 2011 - 10:27 PM

QUOTE (Manofwar @ Jun 23 2011, 02:24 PM) <{POST_SNAPBACK}>
Try this compilation and the sample table.

http://www.mediafire...mdyehb2v4j16vvh



It seems to be working great!!!!!!



Sorry for the shaky video.. I was excited!!! lol.

It looks like the backglass is a bit out of place, but I havent even looked at the backglass in the editor yet to see if it can be resized. I will play a little more tonight. THANKS FOR THIS!!!

Edited by Rawd, 23 June 2011 - 10:27 PM.


 


#15 Bob5453

Bob5453

    I'm taking a nap

  • VIP
  • 3,896 posts
  • Location:Near Dayton, Ohio USA

  • Flag: United States of America

  • Favorite Pinball: Any table I can play while sitting in a rocking chair




  • Trophies:

Posted 23 June 2011 - 10:35 PM

I think I just shat myself.

Posted Image

You have discovered an Easter egg. Pat yourself on the back.


#16 Manofwar

Manofwar

    Hobbyist

  • VP Dev Team
  • PipPip
  • 49 posts

  • Flag: Spain

  • Favorite Pinball: Attack from Mars

Posted 23 June 2011 - 10:49 PM

Thank you for testing, Rawd.

What graphics card do you have?

#17 Rawd

Rawd

    Pinball Wizard

  • VIP
  • 4,313 posts
  • Location:Edmonton, Canada

  • Flag: Canada

  • Favorite Pinball: Triple Strike



Posted 23 June 2011 - 10:54 PM

QUOTE (Manofwar @ Jun 23 2011, 04:49 PM) <{POST_SNAPBACK}>
Thank you for testing, Rawd.

What graphics card do you have?


Nvidia GTS250, running 2 monitors.

I have to go out for dinner, and then I have a meeting at work, but I am going to stay up late messing around with this VP build to see if I can get the second monitor to work with Triple Strike. Thanks again!

Edited by Rawd, 23 June 2011 - 10:56 PM.


 


#18 Manofwar

Manofwar

    Hobbyist

  • VP Dev Team
  • PipPip
  • 49 posts

  • Flag: Spain

  • Favorite Pinball: Attack from Mars

Posted 23 June 2011 - 11:00 PM

Just load the table and play.

#19 bbastyr

bbastyr

    Enthusiast

  • Charter Member
  • 226 posts
  • Location:Chicago

  • Flag: ---------

  • Favorite Pinball: Twilight Zone

Posted 23 June 2011 - 11:03 PM

QUOTE (Manofwar @ Jun 23 2011, 06:00 PM) <{POST_SNAPBACK}>
Just load the table and play.


I have two NVIDIA GTS250, and it works just fine

#20 Manofwar

Manofwar

    Hobbyist

  • VP Dev Team
  • PipPip
  • 49 posts

  • Flag: Spain

  • Favorite Pinball: Attack from Mars

Posted 23 June 2011 - 11:08 PM

Thanks, bbastyr.

Regards