Re: [osg-users] When must you use SingleThreaded threading model

2008-04-18 Thread Robert Osfield
Hi Paul, The osgdepthpartion example would be best rewritten as a Viewer with slave Cameras, rather than a CompositeViewer with multiple Views. The reason for this is that depth partition cameras are conceptually work on the same view, and are locked in sync with the view and projection matrix

Re: [osg-users] When must you use SingleThreaded threading model

2008-04-18 Thread Paul Martz
, 2008 8:20 PM To: OpenSceneGraph Users Subject: Re: [osg-users] When must you use SingleThreaded threading model Hi Paul, In a nutshell, if any code executed by the cull or draw threads (such as your own callbacks or custom nodes) isn't thread safe, then you must use SingleThreaded

Re: [osg-users] When must you use SingleThreaded threading model

2008-04-17 Thread Robert Osfield
Hi Jason, Some of these examples are probably single threaded purely from being overly conservative in the early days of osgViewer and the new threading models, others may require SingleThreaded because of assumptions made in the code which mean the code isn't thread safe. Robert. On Thu, Apr

Re: [osg-users] When must you use SingleThreaded threading model

2008-04-17 Thread Jean-Sébastien Guay
Hi Robert, Some of these examples are probably single threaded purely from being overly conservative in the early days of osgViewer and the new threading models, others may require SingleThreaded because of assumptions made in the code which mean the code isn't thread safe. If you remember

Re: [osg-users] When must you use SingleThreaded threading model

2008-04-17 Thread Robert Osfield
Hi J-S, On Thu, Apr 17, 2008 at 7:36 PM, Jean-Sébastien Guay [EMAIL PROTECTED] wrote: No solution was forthcoming when we investigated this, and the thread kind of died for lack of time from both of us. I think going through the examples and removing the explicit setting of SingleThreaded

Re: [osg-users] When must you use SingleThreaded threading model

2008-04-17 Thread Wojciech Lewandowski
] [mailto:[EMAIL PROTECTED] Behalf Of Robert Osfield Sent: Thursday, April 17, 2008 8:50 PM To: OpenSceneGraph Users Subject: Re: [osg-users] When must you use SingleThreaded threading model Hi J-S, On Thu, Apr 17, 2008 at 7:36 PM, Jean-Sébastien Guay [EMAIL PROTECTED] wrote: No solution

Re: [osg-users] When must you use SingleThreaded threading model

2008-04-17 Thread Paul Martz
Hi all -- Another one of the examples that forces SingleThreaded is osgdepthpartition. I keep intending to rewrite it using CompositeViewer with ordered view processing, but haven't gotten around to it yet. In a nutshell, if any code executed by the cull or draw threads (such as your own

Re: [osg-users] When must you use SingleThreaded threading model

2008-04-17 Thread Jean-Sébastien Guay
Hi Paul, In a nutshell, if any code executed by the cull or draw threads (such as your own callbacks or custom nodes) isn't thread safe, then you must use SingleThreaded. With all due respect, I would reword that: if any code executed by the cull or draw threads (such as your own callbacks