Re: [osg-users] multiple views + instancing

2017-11-15 Thread Robert Osfield
Hi David, You could write a custom subclass of osg::Geometry and override the drawImplementation an do the cull and dispatch of the primitives and instance count for each time the geometry is drawn, but do so in a thread safe way such as my computing all the dynamic data on the fly. The

Re: [osg-users] multiple views + instancing

2017-11-15 Thread David Heitbrink
I am using osg 3.4.0. I am in a position where I could switch to a newer build. -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=72392#72392 ___ osg-users mailing list

[osg-users] multiple views + instancing

2017-11-15 Thread David Heitbrink
Right now I having problems setting unique uniforms and num instances on a per view basis (camera). Right now I am using hardware instancing, with a scene with 1000's of relatively complex objects, but only a handful of actual models. I was able to encode index's to textures + position and