Displaying on Multiple monitors
Displaying on Multiple monitors
Displaying on Multiple monitors
Displaying on Multiple monitors
Displaying on Multiple monitors
Displaying on Multiple monitors Displaying on Multiple monitors Displaying on Multiple monitors Displaying on Multiple monitors Displaying on Multiple monitors Displaying on Multiple monitors Displaying on Multiple monitors Displaying on Multiple monitors
Displaying on Multiple monitors Displaying on Multiple monitors
Displaying on Multiple monitors
Go Back  Xtreme Visual Basic Talk > > > > Displaying on Multiple monitors


Reply
 
Thread Tools Display Modes
  #1  
Old 07-03-2006, 02:42 PM
Planescape Planescape is offline
Regular
 
Join Date: Nov 2004
Posts: 91
Default Displaying on Multiple monitors


I've got a two monitor setup on my comp and I was wondering how you would go about displaying something on both. Is there a particular bit in DirectX that will allow to e.g. Display a green screen on the left monitor and a blue one on the right?
Reply With Quote
  #2  
Old 07-09-2006, 05:28 AM
RcSepp RcSepp is offline
Regular
 
Join Date: Oct 2004
Posts: 55
Default Maybe with two devices

I'm pretty new to Direct3D and I (unfortunately) haven't got two monitors. But I would try this:
1. Get the screensize of both screens (by screen.getbounds...) and apply this size to your Form.
2. Set two pictureboxes each filling one screen.
3. Open two devices by:
Code:
d3dDevice1 = New Direct3D.Device(0, Direct3D.DeviceType.Hardware, pic1, flags, d3dpp)
d3dDevice2 = New Direct3D.Device(0, Direct3D.DeviceType.Hardware, pic2, flags, d3dpp)
4. Read how to handle multiple devices here:
http://www.codesampler.com/dx9src/dx...ltiple_devices

(I've never tried this, so please don't count on it)
Reply With Quote
  #3  
Old 07-09-2006, 05:39 AM
Planescape Planescape is offline
Regular
 
Join Date: Nov 2004
Posts: 91
Default

Thanks for the reply, i've been searching around and I did read that you can't do it atleast not fullscreen because DirectX only supports one fullscreen monitor at a time. Not sure how true that is, i'll take a look report back
Reply With Quote
  #4  
Old 07-21-2006, 05:26 AM
ShadowWolf ShadowWolf is offline
Centurion
 
Join Date: Jan 2006
Location: Finland
Posts: 114
Default

Quote:
Originally Posted by Planescape
Thanks for the reply, i've been searching around and I did read that you can't do it atleast not fullscreen because DirectX only supports one fullscreen monitor at a time. Not sure how true that is, i'll take a look report back
Don't know if this means much but I'm 99% sure dual monitors can not be used by dx at once (ever seen a program/game do this?). Faking it all could ofcourse be an option as long as speed is not essential. In that case I would do this:

1) Set up a normal device, just like always
2) Use a 2nd form as the base for the 2nd monitor (scale it to fit it)
3) Create a offscreen surface (never done this in dx9, but I bet it can be done since I did it all the time in dx7)
4) Draw all the things you want on the second monitor on the offscreen surface and (if it exists, like in dx7) use BltToDC to draw to the 2nd form. If there is no BltToDC then you might need to lock the pixels and copy it all pixel by pixel which will cut your fps to about..... 4 or 5
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
Displaying on Multiple monitors
Displaying on Multiple monitors
Displaying on Multiple monitors Displaying on Multiple monitors
Displaying on Multiple monitors
Displaying on Multiple monitors
Displaying on Multiple monitors Displaying on Multiple monitors Displaying on Multiple monitors Displaying on Multiple monitors Displaying on Multiple monitors Displaying on Multiple monitors Displaying on Multiple monitors
Displaying on Multiple monitors
Displaying on Multiple monitors
 
Displaying on Multiple monitors
Displaying on Multiple monitors
 
-->