Hi,

Im working on an osg application which need to show some information
about osgObject from the Node like name in an TreeView.

I start browsing the loaded model  with the Debuger to find the 
Information i need.

First i load via ReaderWriterDXF and dxf-file into ReadResult Object.
If i watch that result-object in the debuger i can easy find 
under -> _ptr->MatrixTransform->Transform->Geode->_childrean 
the first object and its name.

I write that result into an osgNode File, in which i can find my names as well.
(view in editor, osg file attached) 
If i load that model with readNodeFile().
an browse the ref_ptr(osg::Node) node  object
i cannot find nothing just one osg::Object no MatrixTransformation 
but the rendered result is the same !!

im working on that all day *cry* pleazz help me somebody 
how can i acces those information, where is the MatrixTransformation
Object gone.


Thank you.

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



MatrixTransform {
  UniqueID MatrixTransform_0
  nodeMask 0xffffffff
  cullingActive TRUE
  referenceFrame RELATIVE
  Matrix {
    1 0 0 0
    0 1 0 0
    0 0 1 0
    -1 -1 -1 1
  }
  num_children 1
  MatrixTransform {
    nodeMask 0xffffffff
    cullingActive TRUE
    referenceFrame RELATIVE
    Matrix {
      1 0 0 0
      0 1 0 0
      0 0 1 0
      0 -4.63257e-008 0 1
    }
    num_children 1
    Group {
      name "Meshes"
      nodeMask 0xffffffff
      cullingActive TRUE
      num_children 2
      Geode {
        name "Meshes"
        nodeMask 0xffffffff
        cullingActive TRUE
        num_drawables 1
        Geometry {
          useDisplayList TRUE
          useVertexBufferObjects FALSE
          PrimitiveSets 1
          {
            DrawArrays TRIANGLES 0 24
          }
          VertexArray Vec3Array 24
          {
            2 2 0
            2 2 0
            2 2 0
            2 1e-006 0
            2 1e-006 0
            2 1e-006 0
            0 1e-006 0
            0 1e-006 0
            0 1e-006 0
            0 2 0
            0 2 0
            0 2 0
            2 2 2
            2 2 2
            2 2 2
            2 0 2
            2 0 2
            2 0 2
            0 1e-006 2
            0 1e-006 2
            0 1e-006 2
            0 2 2
            0 2 2
            0 2 2
          }
          NormalBinding PER_VERTEX
          NormalArray Vec3Array 8
          {
            0 0 0
            0 0 0
            0 0 0
            0 0 0
            0 0 0
            0 0 0
            0 0 0
            0 0 0
          }
          ColorBinding OVERALL
          ColorArray Vec4Array 1
          {
            0.866 0.866 0.866 1
          }
        }
      }
      Geode {
        name "Meshes"
        nodeMask 0xffffffff
        cullingActive TRUE
        num_drawables 1
        Geometry {
          useDisplayList TRUE
          useVertexBufferObjects FALSE
          PrimitiveSets 1
          {
            DrawArrays QUADS 0 24
          }
          VertexArray Vec3Array 24
          {
            0 2 0
            0 1e-006 0
            2 1e-006 0
            2 2 0
            2 0 2
            0 1e-006 2
            0 2 2
            2 2 2
            2 1e-006 0
            2 0 2
            2 2 2
            2 2 0
            0 1e-006 0
            0 1e-006 2
            2 0 2
            2 1e-006 0
            0 2 0
            0 2 2
            0 1e-006 2
            0 1e-006 0
            0 2 2
            0 2 0
            2 2 0
            2 2 2
          }
          NormalBinding PER_VERTEX
          NormalArray Vec3Array 6
          {
            0 0 1
            0 0 -1
            -1 5e-007 -5e-007
            5e-007 1 -0
            1 0 -0
            0 -1 0
          }
          ColorBinding OVERALL
          ColorArray Vec4Array 1
          {
            0.866 0.866 0.866 1
          }
        }
      }
    }
  }
}
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to