Hi Carsten,
2010/5/26 Carsten Neumann <carsten_neum...@gmx.net>: > 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? Not right now, but I will take a lot at it. > 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); > thanks a lot! It works. > 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 ;) The SceneGraphPrinter sounds very interesting, but I hadn't heard anything of it before. I guess it would be very helpful to get those hints on the homepage in a sort of "debugging" section at the end of the Tutorial or at the "How To" site. Best regards, Constantin ------------------------------------------------------------------------------ _______________________________________________ Opensg-users mailing list Opensg-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/opensg-users