[osg-users] Uniforms per MasterCamera in a ThreadPerContext threading model

2012-10-15 Thread Anish Thomas
Hi, I need to render the same geodes in multiple views (one master-camera per view). The geode rendering is controlled by uniforms whose values change based on the camera's attributes. Each master camera can move independently. With a 'ThreadPerContext' threading model, how can I supply

Re: [osg-users] Uniforms per MasterCamera in a ThreadPerContext threading model

2012-12-05 Thread Anish Thomas
Hi Robert, I did try that and the final rendering was messed up. The shader uniform that controls the color was changed in each view's cull traversal like so: osgUtil::CullVisitor* cv = static_castosgUtil::CullVisitor*(nv); StateSet* ss = cv-getCurrentCamera()-getOrCreateStateSet(); Uniform*