It is currently Mon Sep 06, 2010 6:07 pm




Post new topic Reply to topic  [ 95 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6, 7  Next
 Le Cauchemar - native stereo 3D support 
Author Message
Cross Eyed!
User avatar

Joined: Sat Apr 26, 2008 6:23 pm
Posts: 150
Location: Casablanca, Morocco
Post 
Hi, quick question:

Do most S-3D gamers use Vista now, or is XP still popular for whatever reason?

I ask because native iZ3D support will be easier to add if it can make use of 'span mode', which doesn't seem to be possible on Vista:

"This capability has been disabled in Windows Vista, due to the way WDDM and DRM handle the Hardware Abstraction Layer. The way Windows communicates with the video hardware has changed in such a way that it's now impossible to write a driver that supports Span mode."

How popular is the Matrox DualHead2Go (like steelhed uses)? I gather it effectively gives you back span mode on Vista 8) But maybe that's not useful to many people if the nVidia stereo drivers don't provide a side-by-side mode...

I'm very keen to add iZ3D support but I'm worried that my schedule won't allow me do it using 'proper' dual-monitor rendering (ie. a separate D3D 'device' for each output).


:idea: :shock: Could the iZ3D drivers themselves include an option to convert a side-by-side stereo pair into an iZ3D dual output?? That would be AWESOME!


Thanks for any info,
phil


Fri Jul 11, 2008 7:47 pm
Profile WWW
Golden Eyed Wiseman! (or woman!)
User avatar

Joined: Wed May 16, 2007 1:30 pm
Posts: 1370
Location: Europe
Post 
You realy want every output in, right :)

I use XP, but don't own the Iz3D. At some point there will be the need to upgrade to vi$ta :(
I don't know, if it will be next year or later or even more early. However I think a dualboot option is still relativly polpular. My brother has it and some applications (games) run faster on it!

_________________
Play Nations at WAR with this code to get 5.000$ as a Starterbonus:
ayqz1u0s
http://mtbs3d.com/naw/

AMD x2 4200+ 2gb Dualchannel
GF 7900gs for old CRT with Elsa Revelator SG's
currently 94.24 Forceware and 94.24 Stereo with XP sp2!


Sat Jul 12, 2008 6:54 am
Profile WWW
Cross Eyed!
User avatar

Joined: Sat Apr 26, 2008 6:23 pm
Posts: 150
Location: Casablanca, Morocco
Post 
Thanks for the info. Yes, I want to squeeze-in every S-3D format I can before I run out of time. iZ3D certainly seems to be a popular one, so it needs to be in there really.

I've sent my NDA form to them again (I messed-up the first time)... I'm hoping they'll give me what I need to add a side-by-side iZ3D mode. If that's successful, we'll be able to split it onto the iZ3D's two monitor inputs using XP span mode or whatever other method might be available.
Just to be certain - the iZ3D monitors don't have any way of accepting a stereo pair on a single input do they? :?:

I really don't think I'll have time to add any true dual-output modes though - I get the impression there would be a tonne of work involved. Does anyone happen to have experience with doing that in Direct3D? :?:

Anyway, I'll let you know how it goes :D


Mon Jul 14, 2008 7:38 pm
Profile WWW
Certif-Eyed!

Joined: Tue Jul 31, 2007 8:52 am
Posts: 632
Location: Canada
Post 
You don't need two D3D devices for multihead output. Look it up on msdn.

EDIT : I'll try to give you some tips. I got some limited experience with it in DirectX 9 so I'll explain for Direct3D 9.
Multihead is explained here : http://msdn.microsoft.com/en-us/library/bb147217.aspx

You declare an array like this :

D3DPRESENT_PARAMETERS presentParameters[2];

That way you can set parameters for the two heads. It only works on fullscreen.

You need two windows and two window handles so :

presentParameters[0].hDeviceWindow = firstHandle;
presentParameters[1].hDeviceWindow = secondHandle;

Something like that.

When you call CreateDevice, for the handle of the focus window, you use the handle of the window that will handle window messages. I'll give some sample code below to show a way to create the device.


Code:
if(FAILED(object->CreateDevice(D3DADAPTER_DEFAULT, D3DDEVTYPE_HAL, firstHandle, behaviorFlags, &presentParameters[0], &device)))
   {
      MessageBox(firstHandle, "CreateDevice() with one adapter failed!", "Error : initDirect3D()", MB_OK);
      running = false;
   }

   if (device != NULL)
   {
      device->GetDeviceCaps(&deviceCaps);

      if ( deviceCaps.NumberOfAdaptersInGroup != 2 )
      {
         MessageBox(_firstHandle, "Your hardware does not support two adapters.\n"
                        "Make sure you have two devices connected to your\n"
                        "video card and that multi-head output is activated\n"
                        "in your video card drivers.", "Error : checkDeviceCaps()", MB_OK);
         running = false;
      }
   }

   if (running)
   {
      if(device != NULL)
      {
         device->Release();
         device = NULL;
      }
      
      HRESULT hr;
      

      hr = object->CreateDevice(D3DADAPTER_DEFAULT, D3DDEVTYPE_HAL, firstHandle, behaviorFlags  | D3DCREATE_ADAPTERGROUP_DEVICE, &presentParameters[0], &device);
      if(FAILED(hr))
      {
         if ( hr == D3DERR_DEVICELOST )
            MessageBox(_firstHandle, "CreateDevice() with two adapters failed!\nD3DERR_DEVICELOST", "Error : initDirect3D()", MB_OK);
         else if ( hr == D3DERR_INVALIDCALL )
            MessageBox(_firstHandle, "CreateDevice() with two adapters failed!\nD3DERR_INVALIDCALL", "Error : initDirect3D()", MB_OK);
         else if ( hr == D3DERR_NOTAVAILABLE )
            MessageBox(_firstHandle, "CreateDevice() with two adapters failed!\nD3DERR_NOTAVAILABLE", "Error : initDirect3D()", MB_OK);
         else if ( hr == D3DERR_OUTOFVIDEOMEMORY )
            MessageBox(_firstHandle, "CreateDevice() with two adapters failed!\nD3DERR_OUTOFVIDEOMEMORY", "Error : initDirect3D()", MB_OK);

         running = false;
      }
   }

   if (running)
   {
      device->GetBackBuffer(0, 0, D3DBACKBUFFER_TYPE_MONO, &m_pRenderSurf[0]);
      device->GetBackBuffer(1, 0, D3DBACKBUFFER_TYPE_MONO, &m_pRenderSurf[1]);
   }


When there's a reset needed, you will need to reset the two.

Code:
device->Reset(&presentParameters[0]);
device->Reset(&presentParameters[1]);

_________________
CPU : Intel Core 2 Duo E6750
RAM : 4x1024MB OCZ
Video card : Gigabyte ATI Radeon HD 4850 1GB
OS : Windows 7, Vista 64 and XP
Displays (in use) : iZ3D 22"
Displays (in storage) : hp p1230, VR920, Another Eye2000, eD glasses

Image


Tue Jul 15, 2008 2:54 am
Profile
Cross Eyed!
User avatar

Joined: Sat Apr 26, 2008 6:23 pm
Posts: 150
Location: Casablanca, Morocco
Post 
COOOOL! :D Thanks for the help Tril! That's really good news for me.

I've got the iZ3D info now as well, so I'll get started on iZ3D and dual-monitor stereo modes very soon :D

...plus column-sequential (very easy), and that should be the complete set! :twisted:


Tue Jul 15, 2008 4:17 pm
Profile WWW
Cross Eyed!
User avatar

Joined: Sat Mar 10, 2007 6:05 am
Posts: 106
Location: Russia
Post 
If you want support windowed mode, you should also when switch to windowed mode recreate device and use D3D swapchains.

_________________
Stereoscopic Steam Group: Join now
Image


Tue Jul 15, 2008 4:58 pm
Profile
Cross Eyed!
User avatar

Joined: Sat Apr 26, 2008 6:23 pm
Posts: 150
Location: Casablanca, Morocco
Post 
Ok, thanks KindDragon :D


Tue Jul 15, 2008 6:56 pm
Profile WWW
Cross Eyed!
User avatar

Joined: Sat Apr 26, 2008 6:23 pm
Posts: 150
Location: Casablanca, Morocco
Post 
Hi,

Version 19.0 improves the rain splashes in stereoscopic modes (brightness, synchronisation), and also has improved shadows.

http://download.programmerart.org

Cheers, see ya later
phil


Fri Jul 25, 2008 8:21 am
Profile WWW
Cross Eyed!
User avatar

Joined: Sat Apr 26, 2008 6:23 pm
Posts: 150
Location: Casablanca, Morocco
Post 
Hi,

Version 20.0 adds the multihead dual-monitor stereoscopic mode.
Tril and KindDragon, thanks again for teaching me how to do this! :D

http://download.programmerart.org

iZ3D mode will be in the next version - I'll get started on that tomorrow.

Cheers,
phil


Last edited by phil on Sun Aug 17, 2008 3:39 pm, edited 1 time in total.



Sat Aug 16, 2008 7:31 pm
Profile WWW
Cross Eyed!
User avatar

Joined: Sat Apr 26, 2008 6:23 pm
Posts: 150
Location: Casablanca, Morocco
Post 
Hi,

I've now uploaded v20.1 which adds iZ3D support. Thanks to BlackQ for letting me have the necessary info.

I don't have an iZ3D monitor to test with, so if you try this mode please let me know whether it works or not :lol:
As always, if there are any problems - anything special you have to do to get it working properly - I'd be very grateful for the feedback.

This version also adds a column-sequential mode.

http://download.programmerart.org

Confidentiality note:
The iZ3D stereo conversion code is not included in the source code released with the game install, nor is it present as text within the game executable.


Sun Aug 17, 2008 3:37 pm
Profile WWW
Petrif-Eyed
User avatar

Joined: Mon Feb 04, 2008 2:35 pm
Posts: 2108
Location: Kiev, ukraine
Post 
congratulations you sure know how to make a quad core crawl :) tried with iz3d and it froze so I used the regular iz3d drivers and that worked. However the game is like 3-5 fps on my core 2 quad 2.7 Ghz, nvidia 8600gts 256mb and 4 gb ram even in 2d mode. I've tried turning off most post effects but that didn't help much. Your previous versions were ok-ish in 2d. Can you add a genera quality setting like low med and high so you don't have to crawl through the menu for every setting?

_________________
Image
Image
Image
Image
Image
Image
Image


Sun Aug 17, 2008 5:49 pm
Profile ICQ YIM WWW
Cross Eyed!
User avatar

Joined: Sat Apr 26, 2008 6:23 pm
Posts: 150
Location: Casablanca, Morocco
Post 
:oops: Hmm, sorry about that, sounds like something has gone strangely wrong there. The framerate is good when I run it.

Someone did say something about having to disable the iZ3D drivers before running the game:
here (loosely translated from Japanese).

I'll get the iZ3D drivers tomorrow and test with them. Anyway, thanks for trying it! :)


Sun Aug 17, 2008 6:49 pm
Profile WWW
Petrif-Eyed
User avatar

Joined: Mon Feb 04, 2008 2:35 pm
Posts: 2108
Location: Kiev, ukraine
Post 
phil wrote:
:oops: Hmm, sorry about that, sounds like something has gone strangely wrong there. The framerate is good when I run it.

Someone did say something about having to disable the iZ3D drivers before running the game:
here (loosely translated from Japanese).

I'll get the iZ3D drivers tomorrow and test with them. Anyway, thanks for trying it! :)


no prob. I have to mention that the actual iz3d drivers run kinda weird on my machine so this problem could be unique to me.

_________________
Image
Image
Image
Image
Image
Image
Image


Sun Aug 17, 2008 7:19 pm
Profile ICQ YIM WWW
Golden Eyed Wiseman! (or woman!)
User avatar

Joined: Wed May 16, 2007 1:30 pm
Posts: 1370
Location: Europe
Post 
Hi I tested the new version on a different rig with 8800GTX and experienced it fluently the first time. It was bad on 7900 even in 2D mode and it had FPS around yuriy's mark in 3D mode.

I tested anaglyph, which looked ok, appart from all the ghosting and the bad colors.
And I played a little crosseyed (I think side-by-side2) on a single screen, but somehow it is iritating, that my left eye, which looks at the right screen can view more to the right than my right eye, which looks at the left screen.

I mean that I get not 100% overlap and the not overlapped things are in the wrong eye: My left eye can see much more left than the right eye and vice-versa.
But maybe that is only for crazy people like me with 12-15cm eye-seperation :lol:

Now to end with good stuff:
It is the first game I tried that can have so nice and high HDR settings. I didn't realy know what HDR was...

_________________
Play Nations at WAR with this code to get 5.000$ as a Starterbonus:
ayqz1u0s
http://mtbs3d.com/naw/

AMD x2 4200+ 2gb Dualchannel
GF 7900gs for old CRT with Elsa Revelator SG's
currently 94.24 Forceware and 94.24 Stereo with XP sp2!


Mon Aug 18, 2008 9:54 am
Profile WWW
Petrif-Eyed
User avatar

Joined: Mon Feb 04, 2008 2:35 pm
Posts: 2108
Location: Kiev, ukraine
Post 
LukePC1 wrote:
Hi I tested the new version on a different rig with 8800GTX and experienced it fluently the first time. It was bad on 7900 even in 2D mode and it had FPS around yuriy's mark in 3D mode.

I tested anaglyph, which looked ok, appart from all the ghosting and the bad colors.
And I played a little crosseyed (I think side-by-side2) on a single screen, but somehow it is iritating, that my left eye, which looks at the right screen can view more to the right than my right eye, which looks at the left screen.

I mean that I get not 100% overlap and the not overlapped things are in the wrong eye: My left eye can see much more left than the right eye and vice-versa.
But maybe that is only for crazy people like me with 12-15cm eye-seperation :lol:

Now to end with good stuff:
It is the first game I tried that can have so nice and high HDR settings. I didn't realy know what HDR was...


7900 and 8600 are almost the same thing so that makes sense. After that 8800 and 9600 are also basically the same (but much faster, that is).

_________________
Image
Image
Image
Image
Image
Image
Image


Mon Aug 18, 2008 10:34 am
Profile ICQ YIM WWW
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 95 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6, 7  Next


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB © phpBB Group.
Designed by Vjacheslav Trushkin for Free Forums/DivisionCore.