Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 2

Qt-interest Archive, February 2007
Opengl Stereoscopic View


Message 1 in thread

 I am trying to create a stereo view using QGLContext.  My code is as
follows:

QGLContext *cx;
QGLFormat f;
f.setStereo( TRUE );
QGLFormat::setDefaultFormat( f );
cx->setFormat( f );
if ( !cx->create() )
    printf("FALSE \n");
if ( !cx->format().stereo() )
    printf("FALSE \n");



when this is ran create() for the rendering context always returns FALSE as
does
stereo().  This graphics card is capable of supporting stereo view.  Any
suggestions would be appreciated.

Shannon

Message 2 in thread

Shannon Blyth wrote:
> I am trying to create a stereo view using QGLContext.  My code is as 
> follows:
> 
> QGLContext *cx;
> QGLFormat f;
> f.setStereo( TRUE );
> QGLFormat::setDefaultFormat( f );
> cx->setFormat( f );
> if ( !cx->create() )
>     printf("FALSE \n");
> if ( !cx->format().stereo() )
>     printf("FALSE \n");
> 
> 
> 
> when this is ran create() for the rendering context always returns FALSE 
> as does
> stereo().  This graphics card is capable of supporting stereo view.  Any
> suggestions would be appreciated.
> 
> Shannon

Take a look at this thread: 
http://lists.trolltech.com/qt-interest/2006-12/thread00672-0.html

I had the same issue as you can see which was resolved by trolltech 
after I submitted a bug report. This affects also Qt 4.2.2, but they 
told me the fix is going to go into the next maintenance release. If you 
have an nvidia card you could check with NV Pixel Format 
(http://developer.nvidia.com/object/nvpixelformat.html) (if and) which 
pfd provides a working stereo and then request it via the qt mechanism, 
if that does not work or your card is different then you could file a 
bug report unless someone from trolltech can clarify whether you are 
affected by the same issue.

regards,
--st

--
 [ signature omitted ]