Hello and thank you for your answer.

Why do i have to register the effect?
When i remove this line nothing is changed.

Isnt the following enough ?
ref_ptr<MyEffect> effect = new MyEffect(model.get());
effect->addChild(model.get());
group->addChild(effect);

The model has to be passed to MyEffect's constructor, because it is
needed to initialize technique's passes.

Thank you for your time.
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to