rem: OSGNodePtr tnode = OSGNode::create(); tr = OSGTransform::create();
add: NodePtr tnode = Node::create(); tr = Transform::create();
context: int main (int argc, char **argv){    // GLUT init    osgInit(argc, argv);    glutInit(&argc, argv);    glutInitDisplayMode( GLUT_RGB | GLUT_DEPTH | GLUT_DOUBLE);    glutCreateWindow("OpenSG");    // glutKeyboardFunc(key);    // glutReshapeFunc(resize);    glutDisplayFunc(display);           // glutMouseFunc(mouse);       // glutMotionFunc(motion);         glutIdleFunc(display);    glMatrixMode( GL_PROJECTION );    glLoadIdentity();    gluPerspective( 60, 1, 0.1, 10 );    glMatrixMode( GL_MODELVIEW );    glLoadIdentity();    gluLookAt( 3, 3, 3,  0, 0, 0,   0, 0, 1 );        glEnable( GL_DEPTH_TEST );    // glEnable( GL_LIGHTING );    // OSG    OSGNodePtr g1;    g1 = osgMakePlane( 2, 2, 2, 2 );        OSGNodePtr g2 = OSGNode::create();    osgBeginEditCP(g2);    g2->setCore( g1->getCore() );    osgEndEditCP(g2);    // Transform    OSGNodePtr tnode = OSGNode::create();    tr = OSGTransform::create();    osgBeginEditCP(tnode);    tnode->setCore( tr );    tnode->addChild( g2 );    osgEndEditCP(tnode);    OSGNodeCorePtr tcr =         OSGFieldContainerFactory::the().createNodeCore("Group");    OSGNodePtr pcr =         OSGFieldContainerFactory::the().createNode("Node");    //    root = OSGNode::create();    OSGGroupPtr gr = OSGGroup::create();    osgBeginEditCP(root);    root->setCore( gr );    root->addChild( g1 );    root->addChild( tnode );    osgEndEditCP(root);    dact = new OSGDrawAction;        glutMainLoop();        return 0;}