Re: [osg-users] CullVisitor object not getting properly deleted

2016-05-27 Thread Rick Irons
Hi Robert, Your most recent changes addressed the crash we were encountering. Thanks for looking into this issue. Rick -Original Message- From: osg-users [mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Robert Osfield Sent: Friday, May 27, 2016 4:50 AM To:

Re: [osg-users] CullVisitor object not getting properly deleted

2016-05-27 Thread Robert Osfield
Hi Rick, Just tried, static_cast<> isn't usable in this instance thank to the use of virtual inheritance. So the solution I have gone for is refactor the RenderStageCache so that it uses a map in place of map, this means the cast happens when the map

Re: [osg-users] Imporstor and Shadows

2016-05-27 Thread Trajce Nikolov NICK
Hi Daniel, have a look here http://3dcgtutorials.blogspot.mk/2013/08/instancing-with-openscenegraph.html For this you can use hardware instancing. On Fri, May 27, 2016 at 10:07 AM, Robert Osfield wrote: > Hi Daniel, > > I don't think general purpose impostors are the

Re: [osg-users] Imporstor and Shadows

2016-05-27 Thread Robert Osfield
Hi Daniel, I don't think general purpose impostors are the best route these day. They were required when graphics hardware was much slower. For you high poly cars you'd be better off creating LOD's. Robert. On 27 May 2016 at 06:36, Daniel Schmid wrote: > Hi

Re: [osg-users] confused with setTextureAttributeAndModes

2016-05-27 Thread Robert Osfield
Hi Julien, The StateSet::set*AttributeAndModes(...) and there for convenience, so one doesn't have to remember which GL modes are associated with the attribute being set and to ensure that one line of code is enough to set things correctly rather then multiple lines. However, in modern OpenGL

Re: [osg-users] CullVisitor object not getting properly deleted

2016-05-27 Thread Robert Osfield
Hi Rick, As general note, use of a C pointer to scene graph objects include the CullVisitor should generally be avoided, it's only safe for small blocks of code where you know that the objects will remain in memory at all times during the block. Instead you should use ref_ptr<> to make sure it's