Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - coordinate

Pages: [1]
1
Support / Re: How to delete all children with texture from an object3d
« on: October 14, 2013, 02:26:31 pm »
Extremely grateful if you can add removeChildren method.

I have another question that I have found "removeAllObjects" in "World" class.

When I add object3d A to object3d B, I have to add A to world too.

Does this mean that when I remove object3d A from object3d B, I have to remove A from world too?

(I use jpct first-time. I am not familiar with "world". In osg and jme, there is no "world", just node tree.)

2
Support / Re: How to delete all children with texture from an object3d
« on: October 14, 2013, 11:37:56 am »
I used to use scene graph library like openscenegraph.

After i add amount of children to a node, i can remove them all with one method like removeChildren.

I don't understand is when i add children in jpct:
Code: [Select]
private void addChildren(Object3D obj) {
    obj.addChild(new Object3D()); // add child A
    obj.addChild(new Object3D()); // add child B
    ... ...
}

How can i remove all children in another function.
Code: [Select]
private void removeChildren(Object3D obj) {
    // i can not get all children from obj.
}

Thanks for your reply.

3
Support / How to delete all children with texture from an object3d
« on: October 14, 2013, 02:38:10 am »
I find "removeChild" method, but it can only remove one child.

And "clearObject" method is not work too.

So how can I delete all children (and their texture) from an object3d one-time.

Thanks.

Pages: [1]