Hello Constantin, Constantin Müller wrote: > I want to setup the Tutorial - "Without Simple Scene Manager" from > OpenSG 1.8 with OpenSG 2.0, but it doesn't work.
have you looked at Examples/Tutorial/11withoutSSM_complete.cpp in the 2.0 source tree? > The Backgrounds and Viewports seem to be, what I expect it to be, but > the Torus is missing in the scene. > > Perhaps someone of you guys could tell me, what I missed. OSG::NodeTransitPtr createScenegraph() { OSG::NodeRecPtr torus = OSG::makeTorus(1,5,8,16); leftCamBeacon = OSG::Node::create(); rightCamBeacon = OSG::Node::create(); lightBeacon = OSG::Node::create(); OSG::TransformRecPtr leftCamTrans, rightCamTrans, lightTrans; leftCamTrans = OSG::Transform::create(); rightCamTrans = OSG::Transform::create(); lightTrans = OSG::Transform::create(); you never set these Transform cores on the nodes above. Try this instead: OSG::TransformRecPtr leftCamTrans, rightCamTrans, lightTrans; leftCamTrans = OSG::Transform::create(); rightCamTrans = OSG::Transform::create(); lightTrans = OSG::Transform::create(); OSG::NodeRecPtr torus = OSG::makeTorus(1,5,8,16); leftCamBeacon = OSG::makeNodeFor(leftCamTrans); rightCamBeacon = OSG::makeNodeFor(rightCamTrans); lightBeacon = OSG::makeNodeFor(lightTrans); Cheers, Carsten PS: Using SceneGraphPrinter from Source/System/FieldContainer/Misc/OSGFieldContainerUtils.h is quite handy for this, it shows immediately that there are nodes without cores in the tree ;) ------------------------------------------------------------------------------ _______________________________________________ Opensg-users mailing list Opensg-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/opensg-users