Re: [osg-users] UserData

2009-05-30 Thread Robert Osfield
Hi Guy, This is how I'd do it. First up you can't multiple buffer UserData directly, so to do the multi-buffer you'll need to create your own multibuffer UserData class subclassed from osg::Referenced. Second to decide between the two buffers you can use the current osg::RenderInfo that is

[osg-users] UserData

2009-05-29 Thread Guy Volckaert
Hi, What's the best way to pass user data to all nodes and drawables. For example, lets assumes I have 2 cameras (left right). Each camera points to the same scene. When rendering the left camera, I want the the nodes and drawables to use userdata1, and when rendering the right camera I want