Hi Yefei,

I just noticed your post. Robert told you everything. You may try duplicating of wglMakeCurrent.

But I doubt this is the same issue if Producer really runs in SingleThreaded mode. You may check this with VS Debugger. See menu Debug / Windows / Threads panel. SingleThreaded app should show one main thread. MultiThreaded app will have more of them. For threaded app there is usually one main thread + one or two worker thread for each view + number of opengl shadow threads for each application thread (this may depend on the drivers). I am not sure about DB Pager, tough. There is a chance that you may find aditional thread for the pager.

Hi Yefei,

Could you try the osgViewer from the SVN version of the OSG?  There is
a workaround written by Wojiech Lewandowski that calls wglMakeCurrent
twice to fix a problem when running multiple windows across multiple
display, multi-threaded under WindowsXP with NVidia drivers.  The
submission reads:

 From Wojiech Lewandowski, Workaround for wglMakeCurrent bug in
NVidia drivers by
 calling wglMakeCurrent twice.

 This bug has been reported to NVidia, confirmed and fixed by NVidia
but awaits verifiaction and release if a driver
 which fixes this bug.

Also have a look through the last few weeks email discussion on this
topic.  I'd guess the same workaround would would for
Producer/osgProducer i.e. call makeCurrent twice.

Robert.



On Thu, May 29, 2008 at 11:17 PM, Yefei He <[EMAIL PROTECTED]> wrote:
Hello, folks,

   Some time ago there was a discussion here about osgviewer
rendering junk when running in multi-threaded mode on newer
GeForce video cards and multi-core CPUs. One solution was to
use single-threaded mode instead. This works on my own Windows
XP box as well, but when I tried osgProducerViewer, it seems
to render junk regardless of what threading mode I'm using. I
tried setting the environmental variable OSG_CAMERA_THREADING
to SingleThreaded to make it run in single threaded mode. At
least that's what I think as the way to turn the producer
viewer into single-threaded mode. Has anybody encountered
this as well? Found solutions? My set up has a Intel Core2
Quad Q9300 and two GeForce 9800GX2 cards, although right now
there are only two displays connected to a single video card.

   Cheers,

   Yefei



_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to