Re: [osg-users] threading and captureCurrentState

2010-08-05 Thread Wojciech Lewandowski
: PCJohn Sent: Thursday, August 05, 2010 12:41 AM To: OpenSceneGraph Users Subject: Re: [osg-users] threading and captureCurrentState Yes. There is. Oh. I see. Sorry for confusion, you call it attribute stack and that is a correct name for it. Anyway, there is State::_attributeMap

Re: [osg-users] threading and captureCurrentState

2010-08-05 Thread PCJohn
mailto:osg-users@lists.openscenegraph.org *Subject:* Re: [osg-users] threading and captureCurrentState Yes. There is. Oh. I see. Sorry for confusion, you call it attribute stack and that is a correct name for it. Anyway, there is State::_attributeMap that is composed

Re: [osg-users] threading and captureCurrentState

2010-08-04 Thread PCJohn
: Tuesday, August 03, 2010 4:38 PM To: OpenSceneGraph Users osg-users@lists.openscenegraph.org Subject: [osg-users] threading and captureCurrentState Hi, I see a threading issue when capturing current attributes in cull phase. My code placed in my derived ShadowTechnique::cull(): void MyShadowVolume

Re: [osg-users] threading and captureCurrentState

2010-08-04 Thread Wojciech Lewandowski
I see. Apologies for the misinformation. WL -- From: PCJohn pec...@fit.vutbr.cz Sent: Wednesday, August 04, 2010 9:33 AM To: OpenSceneGraph Users osg-users@lists.openscenegraph.org Subject: Re: [osg-users] threading and captureCurrentState Hi

Re: [osg-users] threading and captureCurrentState

2010-08-04 Thread Tim Moore
the side effect that OpenGL context often remains valid beetwen Render stages . Wojtek -- From: PCJohn pec...@fit.vutbr.cz Sent: Tuesday, August 03, 2010 4:38 PM To: OpenSceneGraph Users osg-users@lists.openscenegraph.org Subject: [osg-users

Re: [osg-users] threading and captureCurrentState

2010-08-04 Thread PCJohn
Hi Tim, Tim Moore wrote: On Wed, Aug 4, 2010 at 9:33 AM, PCJohn pec...@fit.vutbr.cz mailto:pec...@fit.vutbr.cz wrote: Hi, captureCurrentState name is misleading - it is not capturing state from OpenGL. It should be, maybe, getCurrentState. It is just taking last pushed

Re: [osg-users] threading and captureCurrentState

2010-08-04 Thread Tim Moore
On Wed, Aug 4, 2010 at 2:19 PM, PCJohn pec...@fit.vutbr.cz wrote: Hi Tim, Tim Moore wrote: On Wed, Aug 4, 2010 at 9:33 AM, PCJohn pec...@fit.vutbr.cz wrote: Hi, captureCurrentState name is misleading - it is not capturing state from OpenGL. It should be, maybe, getCurrentState. It

Re: [osg-users] threading and captureCurrentState

2010-08-04 Thread PCJohn
Yes. There is. Oh. I see. Sorry for confusion, you call it attribute stack and that is a correct name for it. Anyway, there is State::_attributeMap that is composed of AttributeStack structs and they have a member attributeVec that is serving as a stack of attributes.

[osg-users] threading and captureCurrentState

2010-08-03 Thread PCJohn
Hi, I see a threading issue when capturing current attributes in cull phase. My code placed in my derived ShadowTechnique::cull(): void MyShadowVolume::cull( osgUtil::CullVisitor cv ) { ref_ptr StateSet currentState = new StateSet; cv.getState()-captureCurrentState( *currentState );

Re: [osg-users] threading and captureCurrentState

2010-08-03 Thread Wojciech Lewandowski
, August 03, 2010 4:38 PM To: OpenSceneGraph Users osg-users@lists.openscenegraph.org Subject: [osg-users] threading and captureCurrentState Hi, I see a threading issue when capturing current attributes in cull phase. My code placed in my derived ShadowTechnique::cull(): void MyShadowVolume