[osg-users] [3rdparty] getshape() on geometry return Null pointer ?

2012-03-12 Thread vincent Sauvage
Hi, i construct some geometry (with setVertexArray, addPrimitiveSet, ...) when i call getshape() from this geometry, it return me null pointer ? could anyone tell me why ? Thank you! Cheers, vincent -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.ph

[osg-users] display problem with transparency

2012-03-12 Thread vincent Sauvage
Hi, i have 2 transparents spheres, one inside another. The smallest one (inside) has a texture. My pb is: when moving camera, the smallest sphere disappear. (Spheres et lights have always the same position) Is there some constraint in osg with transparency? ( maximum number of transparent obj

Re: [osg-users] SetScale and AnimationPathCallback PB

2011-02-24 Thread vincent sauvage
Hi, maybe was it obvious ... maybe not,? so i share a solution ... (i found after reading AnimationPathCallback source code) i used ControlPoint constructor with 3 parameter (third is scale) even if scale doesen't hange from one control point to another : for each control point i : ControlPoin

[osg-users] SetScale and AnimationPathCallback PB

2011-02-24 Thread vincent sauvage
Hi, i scaled one node et associated an animationPatchCallBack to it. It seems that AnimationPathCallback cancels the scaling since the node (a pat) is transformed by the CB but is not scaled anymore. ? ... ref_ptr apCallBack = new osg::AnimationPathCallback( animationPath.get() ); noeud->setUpd

[osg-users] unexecpted result with SetHomePosition

2011-02-11 Thread vincent sauvage
Hi, my question concern setHomePosition of MatrixManipulator and subclasses. Parameters are quite explicite and in therory first one indicate position of camera, the seond parametre = target of camera ? Am i wrong... i surely forget some detail since : in practice, position and direction of ca

Re: [osg-users] When / howto stop or remove animation path

2011-02-08 Thread vincent sauvage
in fact, while i was writing last reply, i found one solution : void CB_AnimationPonctuelle::operator() (osg::Node *node, osg::NodeVisitor *nv){ if (getPause()) { traverse(node, nv); return; } osg::AnimationPathCallback::operator()(node,nv);

Re: [osg-users] When / howto stop or remove animation path

2011-02-08 Thread vincent sauvage
Hi, thank you, robert, for the advice. i actually subclass AnimationPathCallback and rewrite operator as folows : void CB_AnimationPonctuelle::operator() (osg::Node *node, osg::NodeVisitor *nv){ osg::AnimationPathCallback::operator()(node,nv);// méthode originale (de la classe

[osg-users] When / howto stop or remove animation path

2011-02-07 Thread vincent sauvage
Hi, i use animation path for moving a geode from one point to another ,(from its position to a target position acquired by picking) It works but , once the animation has finished (target position is reached), il seems that callback is still running ... and the result is i can move anymore t