Timo Wallrath wrote:
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?
Hi,
re-setting the core is not necessary changing the material is enough. I
have no idea why this doesn't work for you. I do something similar in my
code without any problems. Can you send us a small example to reproduce
this?
Andreas
--
Andreas Zieringer [EMAIL PROTECTED]
Fraunhofer IGD - A4 phone +49 (0)6151 155 289
Fraunhoferstr. 5 fax +49 (0)6151 155 196
D-64283 Darmstadt www.igd.fhg.de/www/igd-a4
-------------------------------------------------------
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