Re: [osg-users] OverlayNode and Uniform Update Callback

2011-02-23 Thread Alexandre Amalric
Hi osg-users, It seems that the overlay::OverlayData::_camera prevents attached subgraph callback to be called. In future version, is it possible to attach an update callback to the overlay::OverlayData::_camera node, by creating a new function like : void

Re: [osg-users] OverlayNode and Uniform Update Callback

2011-02-22 Thread Alexandre Amalric
Hi Sergey, My overlay node isn't under a camera node, but is it possible that the overlay projection mecanism is using a camera with subgraph attached to it and so the update traversal doesn't reach the subgraph ?? Best regards, 2011/2/21 Sergey Polischuk pol...@yandex.ru Hi, Alexandre. If

[osg-users] OverlayNode and Uniform Update Callback

2011-02-21 Thread Alexandre Amalric
Hi osg-users, I recently tried to attach a fragment shader to a node and set it as an overlay subgraph. My shader is using a uniform that I want to update, so I attached a derived osg::Uniform::Callback to it but this one is never called. When the same node is added to the scenegraph and not

Re: [osg-users] OverlayNode and Uniform Update Callback

2011-02-21 Thread Sergey Polischuk
Hi, Alexandre.If your overlay subgraph is under osg camera, then update traversals dont reach there, they stop at camera node.You can try to add this uniform to stateset of some node before camera in scene graph, so it will be updated and shouldn't break anything.Cheers, Sergey.21.02.2011, 17:57,