Re: [osg-users] [osgPPU] Usage of osg::Uniform::Callback with osgPPU::ShaderAttribute ?

2010-12-09 Thread Peter Wrobrl
Hi, well, this code is properly updating my Uniform: osg::Uniform * uniform = new osg::Uniform( Vector , osg::Vec4f( 0.0f , 0.0f , 0.0f , 0.0f ) ) ; uniform - setUpdateCallback( new UniformCallback ) ; stateSet - addUniform( uniform ) ; So the update call back does reach the Uniform. My guess

Re: [osg-users] [osgPPU] Usage of osg::Uniform::Callback with osgPPU::ShaderAttribute ?

2010-12-03 Thread Art Tevs
Hi Peter, hmm, thats strange. Actually an update callback is always running over full osgPPU graph too. So it should reach node's stateset and hence also update a callback. What happens if you specifiy just an update callback for an osgPPU unit. Unit's are derived from osg::Node so you could

[osg-users] [osgPPU] Usage of osg::Uniform::Callback with osgPPU::ShaderAttribute ?

2010-11-23 Thread Peter Wrobrl
Hi, I have an osg::Uniform::Callback which is working fine with osg::Programm, but I don't get it working with osg::ShaderAttribute. The Uniform Value used in Constructor is correctly passed to my Shader, but the Values don't get update, as if the UpdateVisitor would not reach the Uniform.