Author |
Message |
Dennis
Rating: N/A Votes: 0 (Vote!) | Posted on Saturday, October 16, 2004 - 12:53 am: | |
After examining the NvSterEx example, I was able to create an application to display stereo image pairs. When you create a fullscreen D3DDevice and fill the Backbuffer with a fullscreen sized image and set the SIH_SWAP_EYES flag you get half screen width page flipping. This is a good start but I need full screen page flipping. I tried to create a D3DDevice that was twice the screen width but this failed. I do not know if it was a software limitation or a video card limit. If you have been able to create full screen width page flipping, how did you do it? |
Peter Wimmer
Rating: N/A Votes: 0 (Vote!) | Posted on Saturday, October 16, 2004 - 6:41 am: | |
Full screen pagefilpping works fine with the NVIDIA stereo driver. Let's say our screen resolution is set to 800 x 600 and we have a side-by-side image with a resolution of 1280 x 480 pixel (= 2* 640 x 480). In this case you must do the following to get a fullscreen pageflipped output: 1) Create 1600 x 600 helper surface, and stretchcopy the image to this surface. 2) Put the stereodescriptor in the helper surface. 3) Copy the helper surface into the backbuffer, don't care about the wrong size (see NvSterEx sample). 4) Flip backbuffer. That's it. |
Dennis Brittain
Rating: N/A Votes: 0 (Vote!) | Posted on Saturday, October 16, 2004 - 6:38 pm: | |
Peter, Thank you! The secret was that you CAN copy a surface wider than the backbuffer into the backbuffer. Normally you would never do something like this. The example did not reveal this crucial fact because the stereo.jpg sample image was only 734 pixels wide, and they were using a 800 pixel wide fullscreen display mode. Just search for "800" & "734" & ".jpg" in the source code and you will find where to change the sample to be able to get Hi-res fullscreen. I was able to get 1280x1024@100hz working fine. Dennis |
Mishin Vladimir (Steep_sheep) New member Username: Steep_sheep
Post Number: 1 Registered: 12-2006
Rating: N/A Votes: 0 (Vote!) | Posted on Sunday, December 10, 2006 - 9:10 pm: | |
Can send somebody to me StereoBLT API? My e-mail: Steep_Sheep(a)ukr.net Many thanks for help! |