It is currently Fri May 24, 2013 3:19 am



Reply to topic  [ 2 posts ] 
 Issues with reverse stereo blitting 
Author Message
One Eyed Hopeful

Joined: Tue Jan 26, 2010 4:26 am
Posts: 3
Using the GDC09 pdf from http://www.mtbs3d.com/phpBB/viewtopic.php?f=60&t=4026, I attempted to reverse stereo blit the backbuffer to a stereo image. Here's what I did:

Code:
// Set destination rectangle as double backbuffer's one
   backBufferRect.left=0;
   backBufferRect.top=0;
   backBufferRect.right=gImageWidth;
   backBufferRect.bottom=gImageHeight;
   
   stereoImageRect.left=0;
   stereoImageRect.top=0;
   stereoImageRect.right=2*gImageWidth;
   stereoImageRect.bottom= gImageHeight;

   //turn on reverse blit
   NvAPI_Stereo_ReverseStereoBlitControl(gStereoHandle, true);

   m_d3dDevice->GetBackBuffer(0, 0, D3DBACKBUFFER_TYPE_MONO, &gBackBuf);

   //reverse blit
   if(FAILED(m_d3dDevice->StretchRect(gBackBuf,&backBufferRect,gStereoImage,&stereoImageRect, D3DTEXF_LINEAR)))
   {
      MessageBox( NULL, "StretchRect Failed", "Error!", 0);
   }
   //turn off reverse blit
   NvAPI_Stereo_ReverseStereoBlitControl(gStereoHandle, false);


where gStereoImage is a OffscreenPlainSurface in the DEFAULT video memory pool.
Though I am a Direct3D noob, looking at the 3D vision pdf I sort of expected stretchRect to fail because of its limitations, and so it did... Am I missing something?


Thu Jun 03, 2010 6:56 am
Profile
One Eyed Hopeful

Joined: Wed May 11, 2011 9:16 pm
Posts: 1
Hello,

I am trying to do a similar thing, except that my applications hooks on to a running directx application.

Were you able to get this working?


Wed May 11, 2011 9:58 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 2 posts ] 

Who is online

Users browsing this forum: Bing [Bot] and 2 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:  
cron
Powered by phpBB® Forum Software © phpBB Group
Designed by STSoftware.