Re: [osg-users] Program attribute cannot me removed

2014-06-30 Thread Pierre Landes
Hi Robert, Thanks for the advice. Also, the setting of a default Program on top of my scene did the trick for me. :) Cheers, Pierre. -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=60057#60057 __

Re: [osg-users] Program attribute cannot me removed

2014-06-29 Thread Pierre Landes
Hi everyone, I ran into the very same problem, which seems to remain in the svn/trunk branch of the project at least. Follows as attachment a small program showing the issue: it only consists of a basic scene where one should be able to turn an overriding shader program on and off with the up

Re: [osg-users] Last frames modelview matrix

2014-06-24 Thread Pierre Landes
Actually, the modelview matrices I get (from CullVisitor::getModelViewMatrix() inside the operator()(Node*, NodeVisitor*) of a cull callback) do seem correct. It is just that I may not fully grasp what they actually contain at that point in the code. I thus have a couple of additional questions:

Re: [osg-users] Multiple update callbacks per node (bug in Callback?)

2014-06-23 Thread Pierre Landes
Hi Robert, This change did the trick for me so far. Actually, I was a bit worried about the possibility it would conflict with the way NodeVisitors (and most specifically the CullVisitor) currently worked. I am glad it is apparently not the case. Thanks for the feedback. :) Cheers, Pierre ---

[osg-users] [3rdparty] Multiple update callbacks per node (bug in Callback?)

2014-06-21 Thread Pierre Landes
Hi everyone, Be warned, this is a newbie question. I am currently trying to add several update callbacks (their execution order is irrelevant) to a same node, and all my attempts miserably failed. I tried to rely on nested callbacks, but to no avail. I must be missing something obvious... so any

Re: [osg-users] Last frames modelview matrix

2014-06-21 Thread Pierre Landes
Hi, Sorry to resurrect this old topic but I am stuck on the same problem (storing the model-view-projection matrix of the last frame in a uniform for each drawable of my scene). I derived the NodeCallback class and cast the nodevisitor passed to its operator() to a CullVisitor. The said nodec