Andreas Zieringer wrote:
looks ok but

// core of the cg_node
if (rebuild == false)
     _cgMatGroup = MaterialGroup::create();

...

where do you set the new core?

something like

beginEditCP(materialgroupnode);
     materialgroupnode->setCore(_cgMatGroup);
endEditCP(materialgroupnode);

I set the core once in another function of my class, which creates the scenegraph-topology:

[...]
NodePtr cgNode = Node::create();
createMaterial(par, false);
beginEditCP(cgNode, Node::CoreFieldMask);
{
        cgNode->setCore(_cgMatGroup);
}
endEditCP(cgNode, Node::CoreFieldMask);
[...]

The MaterialGroup (_cgMatGroup) is a member of this class. Do I have to re-set the core, even if I just change the material inside this core?

Thanks for your help,
Timo


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to