3D Image Pair Display need example of page flipping
  3 / 3    
[quote name='SimWright' post='1105617' date='Aug 18 2010, 12:01 PM']The code looks ok.

What graphics card are you using? It needs to be a Quadro version that uses a G80 GPU or later.

Do you have the NVIDIA stereo driver enabled? I might not be using the correct name because we don't install it - the part of the 3D Vision software that is used to display DirectX games in stereo. I think this has to be disabled for the OpenGL quad-buffered stereo to work.

I'm not up to date on the version of C++ Builder that you are using but I did run into a problem when I first started developing stereo apps with C++ Builder version 1.0. An application may only set the pixel format of a window one time. Once a window's pixel format is set, it cannot be changed. I was using the Builder VCL panel component for my window and the pixel format was being set before I had control. I had to write my own custom panel component so that I could be the one to set the pixel format.[/quote]

nVIDIA GeForce 9800 GT 550MHz - 512MB DDR3 SDRAM 256bit - PCI Express 2.0 - HD-15, DVI, HDMI

As far as I know, the stereo driver is enabled because the NVIDIA programs fly. In the NVIDIA Control Panel, "Enable stereoscopic 3D" is enabled. I disabled it and PFD_STEREO still did not persist.

I'm creating the window with CreateWindow()...

WNDCLASS wndclass;

wndclass.style = 0;
wndclass.lpfnWndProc = (WNDPROC)MainWndProc;
wndclass.cbClsExtra = 0;
wndclass.cbWndExtra = 0;
wndclass.hInstance = hInstance;
wndclass.hIcon = LoadIcon (hInstance, szAppName);
wndclass.hCursor = LoadCursor (NULL,IDC_ARROW);
wndclass.hbrBackground = (HBRUSH)(COLOR_WINDOW+1);
wndclass.lpszMenuName = szAppName;
wndclass.lpszClassName = szAppName;

if (!RegisterClass(&wndclass))
return FALSE;

ghWnd = CreateWindow(szAppName, "Generic OpenGL Sample", WS_POPUP | WS_CLIPSIBLINGS | WS_CLIPCHILDREN, 0, 0, Screen->Width, Screen->Height, NULL, NULL, hInstance, NULL);

if (!ghWnd)
return FALSE;

ShowWindow(ghWnd, SW_SHOWNORMAL);

UpdateWindow(ghWnd);

while (1)
{
MSG msg;

while (PeekMessage(&msg, NULL, 0, 0, PM_NOREMOVE) == TRUE)
{
if (GetMessage(&msg, NULL, 0, 0))
{
TranslateMessage(&msg);
DispatchMessage(&msg);
}
else
return TRUE;
}
drawScene();
}

I saw another post on another forum talking about setting PixelFormat Stereo mode first time only. I believe this is the case. It just seems like I'm missing something silly... :( I am calling the PixelFormat code from the WM_CREATE event in the message loop...
[quote name='SimWright' post='1105617' date='Aug 18 2010, 12:01 PM']The code looks ok.



What graphics card are you using? It needs to be a Quadro version that uses a G80 GPU or later.



Do you have the NVIDIA stereo driver enabled? I might not be using the correct name because we don't install it - the part of the 3D Vision software that is used to display DirectX games in stereo. I think this has to be disabled for the OpenGL quad-buffered stereo to work.



I'm not up to date on the version of C++ Builder that you are using but I did run into a problem when I first started developing stereo apps with C++ Builder version 1.0. An application may only set the pixel format of a window one time. Once a window's pixel format is set, it cannot be changed. I was using the Builder VCL panel component for my window and the pixel format was being set before I had control. I had to write my own custom panel component so that I could be the one to set the pixel format.



nVIDIA GeForce 9800 GT 550MHz - 512MB DDR3 SDRAM 256bit - PCI Express 2.0 - HD-15, DVI, HDMI



As far as I know, the stereo driver is enabled because the NVIDIA programs fly. In the NVIDIA Control Panel, "Enable stereoscopic 3D" is enabled. I disabled it and PFD_STEREO still did not persist.



I'm creating the window with CreateWindow()...



WNDCLASS wndclass;



wndclass.style = 0;

wndclass.lpfnWndProc = (WNDPROC)MainWndProc;

wndclass.cbClsExtra = 0;

wndclass.cbWndExtra = 0;

wndclass.hInstance = hInstance;

wndclass.hIcon = LoadIcon (hInstance, szAppName);

wndclass.hCursor = LoadCursor (NULL,IDC_ARROW);

wndclass.hbrBackground = (HBRUSH)(COLOR_WINDOW+1);

wndclass.lpszMenuName = szAppName;

wndclass.lpszClassName = szAppName;



if (!RegisterClass(&wndclass))

return FALSE;



ghWnd = CreateWindow(szAppName, "Generic OpenGL Sample", WS_POPUP | WS_CLIPSIBLINGS | WS_CLIPCHILDREN, 0, 0, Screen->Width, Screen->Height, NULL, NULL, hInstance, NULL);



if (!ghWnd)

return FALSE;



ShowWindow(ghWnd, SW_SHOWNORMAL);



UpdateWindow(ghWnd);



while (1)

{

MSG msg;



while (PeekMessage(&msg, NULL, 0, 0, PM_NOREMOVE) == TRUE)

{

if (GetMessage(&msg, NULL, 0, 0))

{

TranslateMessage(&msg);

DispatchMessage(&msg);

}

else

return TRUE;

}

drawScene();

}



I saw another post on another forum talking about setting PixelFormat Stereo mode first time only. I believe this is the case. It just seems like I'm missing something silly... :( I am calling the PixelFormat code from the WM_CREATE event in the message loop...

#31
Posted 08/18/2010 04:13 PM   
[quote name='SimWright' post='1105617' date='Aug 18 2010, 12:01 PM']The code looks ok.

What graphics card are you using? It needs to be a Quadro version that uses a G80 GPU or later.

Do you have the NVIDIA stereo driver enabled? I might not be using the correct name because we don't install it - the part of the 3D Vision software that is used to display DirectX games in stereo. I think this has to be disabled for the OpenGL quad-buffered stereo to work.

I'm not up to date on the version of C++ Builder that you are using but I did run into a problem when I first started developing stereo apps with C++ Builder version 1.0. An application may only set the pixel format of a window one time. Once a window's pixel format is set, it cannot be changed. I was using the Builder VCL panel component for my window and the pixel format was being set before I had control. I had to write my own custom panel component so that I could be the one to set the pixel format.[/quote]

nVIDIA GeForce 9800 GT 550MHz - 512MB DDR3 SDRAM 256bit - PCI Express 2.0 - HD-15, DVI, HDMI

As far as I know, the stereo driver is enabled because the NVIDIA programs fly. In the NVIDIA Control Panel, "Enable stereoscopic 3D" is enabled. I disabled it and PFD_STEREO still did not persist.

I'm creating the window with CreateWindow()...

WNDCLASS wndclass;

wndclass.style = 0;
wndclass.lpfnWndProc = (WNDPROC)MainWndProc;
wndclass.cbClsExtra = 0;
wndclass.cbWndExtra = 0;
wndclass.hInstance = hInstance;
wndclass.hIcon = LoadIcon (hInstance, szAppName);
wndclass.hCursor = LoadCursor (NULL,IDC_ARROW);
wndclass.hbrBackground = (HBRUSH)(COLOR_WINDOW+1);
wndclass.lpszMenuName = szAppName;
wndclass.lpszClassName = szAppName;

if (!RegisterClass(&wndclass))
return FALSE;

ghWnd = CreateWindow(szAppName, "Generic OpenGL Sample", WS_POPUP | WS_CLIPSIBLINGS | WS_CLIPCHILDREN, 0, 0, Screen->Width, Screen->Height, NULL, NULL, hInstance, NULL);

if (!ghWnd)
return FALSE;

ShowWindow(ghWnd, SW_SHOWNORMAL);

UpdateWindow(ghWnd);

while (1)
{
MSG msg;

while (PeekMessage(&msg, NULL, 0, 0, PM_NOREMOVE) == TRUE)
{
if (GetMessage(&msg, NULL, 0, 0))
{
TranslateMessage(&msg);
DispatchMessage(&msg);
}
else
return TRUE;
}
drawScene();
}

I saw another post on another forum talking about setting PixelFormat Stereo mode first time only. I believe this is the case. It just seems like I'm missing something silly... :( I am calling the PixelFormat code from the WM_CREATE event in the message loop...
[quote name='SimWright' post='1105617' date='Aug 18 2010, 12:01 PM']The code looks ok.



What graphics card are you using? It needs to be a Quadro version that uses a G80 GPU or later.



Do you have the NVIDIA stereo driver enabled? I might not be using the correct name because we don't install it - the part of the 3D Vision software that is used to display DirectX games in stereo. I think this has to be disabled for the OpenGL quad-buffered stereo to work.



I'm not up to date on the version of C++ Builder that you are using but I did run into a problem when I first started developing stereo apps with C++ Builder version 1.0. An application may only set the pixel format of a window one time. Once a window's pixel format is set, it cannot be changed. I was using the Builder VCL panel component for my window and the pixel format was being set before I had control. I had to write my own custom panel component so that I could be the one to set the pixel format.



nVIDIA GeForce 9800 GT 550MHz - 512MB DDR3 SDRAM 256bit - PCI Express 2.0 - HD-15, DVI, HDMI



As far as I know, the stereo driver is enabled because the NVIDIA programs fly. In the NVIDIA Control Panel, "Enable stereoscopic 3D" is enabled. I disabled it and PFD_STEREO still did not persist.



I'm creating the window with CreateWindow()...



WNDCLASS wndclass;



wndclass.style = 0;

wndclass.lpfnWndProc = (WNDPROC)MainWndProc;

wndclass.cbClsExtra = 0;

wndclass.cbWndExtra = 0;

wndclass.hInstance = hInstance;

wndclass.hIcon = LoadIcon (hInstance, szAppName);

wndclass.hCursor = LoadCursor (NULL,IDC_ARROW);

wndclass.hbrBackground = (HBRUSH)(COLOR_WINDOW+1);

wndclass.lpszMenuName = szAppName;

wndclass.lpszClassName = szAppName;



if (!RegisterClass(&wndclass))

return FALSE;



ghWnd = CreateWindow(szAppName, "Generic OpenGL Sample", WS_POPUP | WS_CLIPSIBLINGS | WS_CLIPCHILDREN, 0, 0, Screen->Width, Screen->Height, NULL, NULL, hInstance, NULL);



if (!ghWnd)

return FALSE;



ShowWindow(ghWnd, SW_SHOWNORMAL);



UpdateWindow(ghWnd);



while (1)

{

MSG msg;



while (PeekMessage(&msg, NULL, 0, 0, PM_NOREMOVE) == TRUE)

{

if (GetMessage(&msg, NULL, 0, 0))

{

TranslateMessage(&msg);

DispatchMessage(&msg);

}

else

return TRUE;

}

drawScene();

}



I saw another post on another forum talking about setting PixelFormat Stereo mode first time only. I believe this is the case. It just seems like I'm missing something silly... :( I am calling the PixelFormat code from the WM_CREATE event in the message loop...

#32
Posted 08/18/2010 04:13 PM   
This space intentionally left blank.
This space intentionally left blank.

#33
Posted 08/18/2010 04:15 PM   
This space intentionally left blank.
This space intentionally left blank.

#34
Posted 08/18/2010 04:15 PM   
[quote name='rghoover' post='1105622' date='Aug 18 2010, 11:13 AM']nVIDIA GeForce 9800 GT 550MHz - 512MB DDR3 SDRAM 256bit - PCI Express 2.0 - HD-15, DVI, HDMI[/quote]

That graphics card will not do OpenGL stereo - you need a Quadro card. Technically the GeForce's probably can still do stereo (I've used them years ago with a SoftQuadro mod to the driver), but NVIDIA blocks that capability in the driver so that you have to purchase the more expensive Quadro card.
[quote name='rghoover' post='1105622' date='Aug 18 2010, 11:13 AM']nVIDIA GeForce 9800 GT 550MHz - 512MB DDR3 SDRAM 256bit - PCI Express 2.0 - HD-15, DVI, HDMI



That graphics card will not do OpenGL stereo - you need a Quadro card. Technically the GeForce's probably can still do stereo (I've used them years ago with a SoftQuadro mod to the driver), but NVIDIA blocks that capability in the driver so that you have to purchase the more expensive Quadro card.

#35
Posted 08/18/2010 04:24 PM   
[quote name='rghoover' post='1105622' date='Aug 18 2010, 11:13 AM']nVIDIA GeForce 9800 GT 550MHz - 512MB DDR3 SDRAM 256bit - PCI Express 2.0 - HD-15, DVI, HDMI[/quote]

That graphics card will not do OpenGL stereo - you need a Quadro card. Technically the GeForce's probably can still do stereo (I've used them years ago with a SoftQuadro mod to the driver), but NVIDIA blocks that capability in the driver so that you have to purchase the more expensive Quadro card.
[quote name='rghoover' post='1105622' date='Aug 18 2010, 11:13 AM']nVIDIA GeForce 9800 GT 550MHz - 512MB DDR3 SDRAM 256bit - PCI Express 2.0 - HD-15, DVI, HDMI



That graphics card will not do OpenGL stereo - you need a Quadro card. Technically the GeForce's probably can still do stereo (I've used them years ago with a SoftQuadro mod to the driver), but NVIDIA blocks that capability in the driver so that you have to purchase the more expensive Quadro card.

#36
Posted 08/18/2010 04:24 PM   
[quote name='SimWright' post='1105632' date='Aug 18 2010, 12:24 PM']That graphics card will not do OpenGL stereo - you need a Quadro card. Technically the GeForce's probably can still do stereo (I've used them years ago with a SoftQuadro mod to the driver), but NVIDIA blocks that capability in the driver so that you have to purchase the more expensive Quadro card.[/quote]

DOH! So, it's back to DirectX, eh? Well, I've still got time... ;)
[quote name='SimWright' post='1105632' date='Aug 18 2010, 12:24 PM']That graphics card will not do OpenGL stereo - you need a Quadro card. Technically the GeForce's probably can still do stereo (I've used them years ago with a SoftQuadro mod to the driver), but NVIDIA blocks that capability in the driver so that you have to purchase the more expensive Quadro card.



DOH! So, it's back to DirectX, eh? Well, I've still got time... ;)

#37
Posted 08/18/2010 04:29 PM   
[quote name='SimWright' post='1105632' date='Aug 18 2010, 12:24 PM']That graphics card will not do OpenGL stereo - you need a Quadro card. Technically the GeForce's probably can still do stereo (I've used them years ago with a SoftQuadro mod to the driver), but NVIDIA blocks that capability in the driver so that you have to purchase the more expensive Quadro card.[/quote]

DOH! So, it's back to DirectX, eh? Well, I've still got time... ;)
[quote name='SimWright' post='1105632' date='Aug 18 2010, 12:24 PM']That graphics card will not do OpenGL stereo - you need a Quadro card. Technically the GeForce's probably can still do stereo (I've used them years ago with a SoftQuadro mod to the driver), but NVIDIA blocks that capability in the driver so that you have to purchase the more expensive Quadro card.



DOH! So, it's back to DirectX, eh? Well, I've still got time... ;)

#38
Posted 08/18/2010 04:29 PM   
This page list the Quadro boards that support OpenGL stereo.

[url="http://www.nvidia.com/object/quadro_pro_graphics_boards.html"]http://www.nvidia.com/object/quadro_pro_graphics_boards.html[/url]
This page list the Quadro boards that support OpenGL stereo.



http://www.nvidia.com/object/quadro_pro_graphics_boards.html

#39
Posted 08/18/2010 04:32 PM   
This page list the Quadro boards that support OpenGL stereo.

[url="http://www.nvidia.com/object/quadro_pro_graphics_boards.html"]http://www.nvidia.com/object/quadro_pro_graphics_boards.html[/url]
This page list the Quadro boards that support OpenGL stereo.



http://www.nvidia.com/object/quadro_pro_graphics_boards.html

#40
Posted 08/18/2010 04:32 PM   
  3 / 3    
Scroll To Top