Hi,all,
Now i want to remove /add a object in the BG,
first I creat a scence as following:
BG
|
Tg1
|
BG11
|
BG21
|
OBJ1
and I set the capacility of BG1 as ALLOW_CHILDREN_EXTEND|ALLOW_CHILDREN_WRITE,
set the capacility of BG21 as ALLOW_DETACH.
then I use the method in the eventProcess :
BG11.addChild(BG21) to add the OBJ1,
BG21.detach() to remove the OBJ1.
the following error message is produce:
javax.media.j3d.CapabilityNotSetException: Group: no capability to append children
javax.media.j3d.CapabilityNotSetException: Group: no capability to write children
who can give me some suggestion? I am looking forward your reply and any advice will
be appreciated.
Thanks a lot.
WU Fang-sheng
{.n+zw^bڽ.&jwbnu觶ܨ~^,j }@T
DDzwjX^צj)mXǫ6j˧rاr[z)w*z^