feature for the irrlicht dx9 driver MMS

You discovered a bug in the engine, and you are sure that it is not a problem of your code? Just post it in here. Please read the bug posting guidelines first.
Post Reply
sdi2001

feature for the irrlicht dx9 driver MMS

Post by sdi2001 »

Hi to all,

sorry my real username is sdi2000 but where is my password? :oops: i don´t know... anyway
i have implement a nice feature for the irrlicht engine directx9 driver.
NOW the irrlicht engine supports multimonitor support. =)
you can download the *.h and *.cpp files here...


http://www.sdi-syndrom.de/download/spec ... et_mms.zip


a main for the hello_world demo is included.
Only the stencil buffer support works not really correct.
I hope this is a usefull feature... like (Microsoft Flight Simulator)
Testet with 4 monitors... on ATI x300 and GF 5900 with ULI chipset...

nice day... :D
pls test it with some video Adapters
MrPotatoes
Posts: 38
Joined: Mon Nov 07, 2005 5:55 am

Post by MrPotatoes »

dude that is pretty sweet. if you can get that for OpenGL as well i'd be wicked happy :D :D :D
sdi2001

for opengl =) irrlicht already support it

Post by sdi2001 »

hi MrPotatoes,

irrlicht already support multimonitors with opengl...
only what you must do is...
opengl tut:
1. change you video settings (right click on desktop)
enable spanning mode!! (only for ogl!!!!) read the demo main in the downloadeable zip file.

2. set the irrlicht opengl driver to the resolution if u want on both monitors if u want 1024x768 on both use 2048x768 as resolution

3. make sure that u have enable the fullscreen mode in the driver

and now the easy part
in the renderloop call the viewport redefinition.

//for the first monitor
driver->setViewport(core::rect<s32>(0,0,1024,768));
driver->drawAll();

//for the second monitor
driver->setViewport(core::rect<s32>(1024,0,2048,768));
driver->drawAll();

thats it for gl....

the implementation for dx is a little bit diffrent, but important!!!
in dx mode you must set as resolution only of one monitor not the span res. (poop my en is baaaaad =)

ogl:
2048x768

dx:
1024x768
dx use it for all monitors... it is the implementation... make it better =)


and now render baby =)
Post Reply