Hello,
today I have tried to make use of the MultiCore core. Below you can see the modified createScenegraph function from the 07materials tutorial. #ifdef OSG_BUILD_ACTIVE #include <OSGMultiCore.h> #else #include <OpenSG/OSGMultiCore.h> #endif OSG::NodeTransitPtr createScenegraph(void) { OSG::NodeRecPtr root = OSG::Node::create(); OSG::MultiCoreRecPtr multi_core = OSG::MultiCore::create(); root->setCore(multi_core); OSG::SimpleMaterialRecPtr simpleMaterial = OSG::SimpleMaterial::create(); simpleMaterial->setDiffuse(OSG::Color3f(1,0,0)); simpleMaterial->setAmbient(OSG::Color3f(0.2, 0.2, 0.2)); simpleMaterial->setTransparency(0.0); OSG::NodeCoreRecPtr sphere = OSG::makeSphereGeo(2,6); OSG::MaterialGroupRecPtr mg = OSG::MaterialGroup::create(); mg->setMaterial(simpleMaterial); multi_core->addCore(mg); multi_core->addCore(sphere); return OSG::NodeTransitPtr(root); } This does not work, i.e. the material is not respected. So either my expectation about the MultiCore is wrong or a subtle error is at work. So, how do I correctly use the MultiCore core? Best, Johannes ------------------------------------------------------------------------------ Introducing Performance Central, a new site from SourceForge and AppDynamics. Performance Central is your source for news, insights, analysis and resources for efficient Application Performance Management. Visit us today! http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk _______________________________________________ Opensg-users mailing list Opensg-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/opensg-users