Hi ,

Thank you very much for a quick help.

I am getting "restd" on the console. But I am getting more "restd" on console.

Here I am giving how I coded


Code:
 if(AnimationTime==0)
{
//I need to reset Animation
MatrixTrans[0]->accept( ftv );  //this case I will reset acp->reset()
}
if(AnimationTime>=250) //an example
{
//I want to stop animation
MatrixTrans[0]->accept( ftv );  //this case I will pause acp->setPause(true);
}



Here i am giving part of my OSG file for your reference



Code:
MatrixTransform {
  DataVariance STATIC
  name "__VIZARD_NODE__"
  nodeMask 0xffffffff
  cullingActive TRUE
  description {
    "# osgmaxexp material data
Name    03 - Default
Map     Diffuse 0       1       images\\back_light_001.jpg
"
    "# osgmaxexp material data
Name    02 - Default
Map     Diffuse 0       1       images\\Untitled-1 copy.jpg
"
    "# osgmaxexp material data
Name    initialShadingGroup
"
    "# osgmaxexp material data
Name    Material #474
"
    "# osgmaxexp material data
Name    03 - Default
Map     Diffuse 0       1       images\\back_light_001.jpg
"
    "# osgmaxexp material data
Name    02 - Default
Map     Diffuse 0       1       images\\Untitled-1 copy.jpg
"
    "# osgmaxexp material data
Name    Material #536
"
    "# osgmaxexp material data
Name    Material #538
"
    "# osgmaxexp material data
Name    03 - Default
Map     Diffuse 0       1       images\\back_light_001.jpg
"
    "# osgmaxexp material data
Name    02 - Default
Map     Diffuse 0       1       images\\Untitled-1 copy.jpg
"
    "# osgmaxexp material data
Name    initialShadingGroup
"
    "# osgmaxexp material data
Name    Material #474
"
    "# osgmaxexp material data
Name    17 - Default
"
    "# osgmaxexp material data
Name    sidi_reper
"
    "# osgmaxexp material data
Name    17 - Default
"
    "# osgmaxexp material data
Name    sidi_reper
"
    "# osgmaxexp material data
Name    17 - Default
"
    "# osgmaxexp material data
Name    sidi_reper
"
    "# osgmaxexp material data
Name    Material #568
"
  }
  StateSet {
    UniqueID StateSet_0
    rendering_hint DEFAULT_BIN
    renderBinMode INHERIT
    GL_LIGHTING ON
  }
  referenceFrame RELATIVE
  Matrix {
    1 0 -0 0
    0 1 -0 0
    -0 -0 1 0
    0 0 -0 1
  }
  num_children 4
  MatrixTransform {
    DataVariance DYNAMIC
    name "pasted__pTorus1_group24"
    nodeMask 0xffffffff
    cullingActive TRUE
    UpdateCallbacks {
      AnimationPathCallback {
        pivotPoint 0 0 -0
        timeOffset 0
        timeMultiplier 1
        AnimationPath {
          LoopMode LOOP
          ControlPoints {
            0 -1.32351279258728 4.04340267181396 2.8874454498291 -0 -0 0 1 0 0 
0................................................................................................................................................................

}
MatrixTransform {
    DataVariance DYNAMIC
    name "group24_pasted__pPlane1"
    nodeMask 0xffffffff
    cullingActive TRUE
    UpdateCallbacks {
      AnimationPathCallback {
        pivotPoint 0 0 -0
        timeOffset 0
        timeMultiplier 1
        AnimationPath {
          LoopMode LOOP
          ControlPoints {
            0 1.53228306770325 3.10806107521057 3.49369859695435 -0 -0 0 1 0 0 
0......................................
}
MatrixTransform {
    DataVariance DYNAMIC
    name "polySurface735"
    nodeMask 0xffffffff
    cullingActive TRUE
    UpdateCallbacks {
      AnimationPathCallback {
        pivotPoint 0 0 -0
        timeOffset 0
        timeMultiplier 1
        AnimationPath {
          LoopMode LOOP
          ControlPoints {
            0 -1.99133944511414 4.00629949569702 -0.80544114112854 -0 -0 0 1 0 
0 0........................................
}




I am using OSG.3.0.1.

Can you please help me how to stop and restart animation.
... 

Thank you!

Cheers,
Koduri

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=48917#48917




_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to