Re: [osg-users] Shadow Map and threading mode

2008-03-21 Thread Wojciech Lewandowski
J-S,

I have found few minutes to do the test again at work. Only thing I changed 
was the drivers. I went back to antique 94.24 version.

Test WORKS with these drivers.

Only case when it fails is when I run on two monitors. But two monitor 
issues are even worse than multithreading issues and here I am almost 99% 
sure, fault is in the drivers part. I don't event want to talk about all the 
problems with dual view I had in the past ;-)

Cheers,
Wojtek

- Original Message - 
From: Jean-Sébastien Guay [EMAIL PROTECTED]
To: OpenSceneGraph Users osg-users@lists.openscenegraph.org
Sent: Thursday, March 20, 2008 2:28 PM
Subject: Re: [osg-users] Shadow Map and threading mode


 Hello Wojtek,

 I did the test at home. I have really crappy machine there. WinXP Athlon 
 XP
 1700 and AGP GeForce 6200 (drivers ver 169.28). And guess what ? It works
 ;-).

 Hmmm. I wonder if I went back to similar drivers here and tried it... I
 might try that early next week (I have a deadline to meet today, and
 tomorrow is off in Canada for Easter).

 Thanks for continuing your testing! I'm still not discounting the
 possibility that it's a combination of something to tweak in OSG *and*
 some driver weirdness that causes this, but at least we're getting some
 data about the problem (and I'm relieved to not be the only one seeing 
 it).

 J-S
 -- 
 __
 Jean-Sebastien Guay[EMAIL PROTECTED]
http://www.cm-labs.com/
 http://whitestar02.webhop.org/
 ___
 osg-users mailing list
 osg-users@lists.openscenegraph.org
 http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org 

___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Shadow Map and threading mode

2008-03-20 Thread Jean-Sébastien Guay
Hello Wojtek,

 I did the test at home. I have really crappy machine there. WinXP Athlon XP 
 1700 and AGP GeForce 6200 (drivers ver 169.28). And guess what ? It works 
 ;-).

Hmmm. I wonder if I went back to similar drivers here and tried it... I 
might try that early next week (I have a deadline to meet today, and 
tomorrow is off in Canada for Easter).

Thanks for continuing your testing! I'm still not discounting the 
possibility that it's a combination of something to tweak in OSG *and* 
some driver weirdness that causes this, but at least we're getting some 
data about the problem (and I'm relieved to not be the only one seeing it).

J-S
-- 
__
Jean-Sebastien Guay[EMAIL PROTECTED]
http://www.cm-labs.com/
 http://whitestar02.webhop.org/
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Shadow Map and threading mode

2008-03-20 Thread Jean-Sébastien Guay
Hello Wojtek,

 I have found few minutes to do the test again at work. Only thing I changed 
 was the drivers. I went back to antique 94.24 version.
 Test WORKS with these drivers.

Nice, more data!

 Only case when it fails is when I run on two monitors. But two monitor 
 issues are even worse than multithreading issues and here I am almost 99% 
 sure, fault is in the drivers part. I don't event want to talk about all the 
 problems with dual view I had in the past ;-)

That may be a problem because we're always in multiscreen mode here, 
both simulators and developers. On Windows XP we use horizontal span 
mode, but on Vista it doesn't exist anymore so we use DualView...

It's a bit disturbing to see that the behaviour is so wildly different 
from one driver to another. I'd have thought that if games work (and all 
games have shadows nowadays) then we'd be able to make it work too, but 
I guess it might be up to better support for DirectX than for OpenGL in 
the drivers...

J-S
-- 
__
Jean-Sebastien Guay[EMAIL PROTECTED]
http://www.cm-labs.com/
 http://whitestar02.webhop.org/
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Shadow Map and threading mode

2008-03-18 Thread Jean-Sébastien Guay
Hi Wojtek,

 I was on vactions. But if you are still interested I did the test you
 wanted. 

Of course I am interested. :-) Thanks for testing. Seems like the more 
recent nVidia drivers give problems when switching threading modes, and 
older ones are OK. Unfortunately I am on Vista so using old drivers 
usually gives me other problems :-(

Anyways, I think we'll chalk it down to a driver bug until more 
information is available. Thanks again for testing.

J-S
-- 
__
Jean-Sebastien Guay[EMAIL PROTECTED]
http://www.cm-labs.com/
 http://whitestar02.webhop.org/
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Shadow Map and threading mode

2008-03-11 Thread Raymond de Vries
Hi J-S,

Do you have an example which I can try. Then I can give it a try here, 
on a couple of machines.

Bye
Raymond




Jean-Sébastien Guay wrote:
 Hi all,

 So since no one has replied, I gather no one else has had any problems 
 changing the threading mode when shadows are enabled (for example, in 
 the osgshadow example)?

 J-S


   
 Hello,

 I was wondering if there were any known problems related to using 
 osgShadow::ShadowMap and changing the threading mode.

 In the osgshadow example (SVN), if I change the threading mode (I added 
 a threading handler to it) my graphics driver crashes.

 In our own software based on OSG 2.2 and using a CompositeViewer, on 
 some machines the problem is more interesting (after a fashion): when 
 the threading mode is changed, the shadow stops moving with the mobile 
 object which causes it (i.e. it stays where it was when the threading 
 mode changed, apparently not updating anymore).

 On my own machine it just crashes as well, like the SVN version, but on 
 others that's what happens. I haven't double-checked on those machines 
 what happens with the osgshadow example though.

 So, I just want to know if I should expect it to work or if that's 
 something that's expected not to work for now.

 This is on Windows (XP / Vista), nVidia 7900 and 8800 cards.

 Thanks,

 J-S
 


   

___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Shadow Map and threading mode

2008-03-11 Thread Jean-Sébastien Guay
Hello Raymond,

 Do you have an example which I can try. Then I can give it a try here, 
 on a couple of machines.

You can just add

 viewer.addEventHandler( new osgViewer::ThreadingHandler() );

to the osgshadow example (around where the other handlers are added) and 
comment this line:

 //viewer.setThreadingModel(osgViewer::Viewer::SingleThreaded);

You'll see that even when the viewer starts in a mode other than 
SingleThreaded, it runs fine. Press 'm' - in my case that makes my 
graphics driver crash (graphics driver has stopped responding and has 
recovered message in the system tray). Does it do that for you?

I appreciate your testing. Thanks,

J-S
-- 
__
Jean-Sebastien Guay[EMAIL PROTECTED]
http://www.cm-labs.com/
 http://whitestar02.webhop.org/
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Shadow Map and threading mode

2008-03-11 Thread Alberto Luaces
El Tuesday 11 March 2008 13:59:12 Jean-Sébastien Guay escribió:
 You can just add

  viewer.addEventHandler( new osgViewer::ThreadingHandler() );

 to the osgshadow example (around where the other handlers are added) and
 comment this line:

  //viewer.setThreadingModel(osgViewer::Viewer::SingleThreaded);

 You'll see that even when the viewer starts in a mode other than
 SingleThreaded, it runs fine. Press 'm' - in my case that makes my
 graphics driver crash (graphics driver has stopped responding and has
 recovered message in the system tray). Does it do that for you?

Works fine in Linux, nVidia 7600 GS [169.07] (Linux 2.6.22-3-amd64 #1 SMP 
x86_64):

Threading model 'CullThreadPerCameraDrawThreadPerContext' selected.
Threading model 'SingleThreaded' selected.
Threading model 'CullDrawThreadPerContext' selected.
Threading model 'DrawThreadPerContext' selected.
Threading model 'CullThreadPerCameraDrawThreadPerContext' selected.
Threading model 'SingleThreaded' selected.
Threading model 'CullDrawThreadPerContext' selected.
Threading model 'DrawThreadPerContext' selected.
Threading model 'CullThreadPerCameraDrawThreadPerContext' selected.
Threading model 'SingleThreaded' selected.
Threading model 'CullDrawThreadPerContext' selected.

___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Shadow Map and threading mode

2008-03-11 Thread Jean-Sébastien Guay
Hello Alberto,

 Works fine in Linux, nVidia 7600 GS [169.07] (Linux 2.6.22-3-amd64 #1 SMP 
 x86_64):
 
 Threading model 'CullThreadPerCameraDrawThreadPerContext' selected.
 Threading model 'SingleThreaded' selected.
 Threading model 'CullDrawThreadPerContext' selected.
 Threading model 'DrawThreadPerContext' selected.
 Threading model 'CullThreadPerCameraDrawThreadPerContext' selected.
 Threading model 'SingleThreaded' selected.
 Threading model 'CullDrawThreadPerContext' selected.
 Threading model 'DrawThreadPerContext' selected.
 Threading model 'CullThreadPerCameraDrawThreadPerContext' selected.
 Threading model 'SingleThreaded' selected.
 Threading model 'CullDrawThreadPerContext' selected.

Interesting. I'll wait to see if someone can test on Windows too.

Thanks for testing,

J-S
-- 
__
Jean-Sebastien Guay[EMAIL PROTECTED]
http://www.cm-labs.com/
 http://whitestar02.webhop.org/
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Shadow Map and threading mode

2008-03-10 Thread Jean-Sébastien Guay
Hi all,

So since no one has replied, I gather no one else has had any problems 
changing the threading mode when shadows are enabled (for example, in 
the osgshadow example)?

J-S


 Hello,
 
 I was wondering if there were any known problems related to using 
 osgShadow::ShadowMap and changing the threading mode.
 
 In the osgshadow example (SVN), if I change the threading mode (I added 
 a threading handler to it) my graphics driver crashes.
 
 In our own software based on OSG 2.2 and using a CompositeViewer, on 
 some machines the problem is more interesting (after a fashion): when 
 the threading mode is changed, the shadow stops moving with the mobile 
 object which causes it (i.e. it stays where it was when the threading 
 mode changed, apparently not updating anymore).
 
 On my own machine it just crashes as well, like the SVN version, but on 
 others that's what happens. I haven't double-checked on those machines 
 what happens with the osgshadow example though.
 
 So, I just want to know if I should expect it to work or if that's 
 something that's expected not to work for now.
 
 This is on Windows (XP / Vista), nVidia 7900 and 8800 cards.
 
 Thanks,
 
 J-S


-- 
__
Jean-Sebastien Guay[EMAIL PROTECTED]
http://www.cm-labs.com/
 http://whitestar02.webhop.org/
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org