|
Hi Guillermo,
Thanks for the reply.
No, all the capabilites are set.
When I say "fails to work" I mean that
after the reparenting of the branch group the PickObject.pickClosest(x, y)
fails to return anything but null when an attempt is made to pick the
object (whereas in its prior position the picking worked fine).
However, I have now discovered that the picking will
eventually start to work again:
1. If the branch group and its sub-graph are 'glued'
(added) to another branch group already containing its own subgraph, then only
after the new 'parent' has been translated (etc) will the picking start to find
the new child as normal.
2. If the branch group and its sub-graph are 'glued'
(added) to a transform group containing its own subgraph, then the new 'child'
can only be picked if it is possible to line the two Shape3Ds, from the
respective sub-graphs, up with the view point. If the successfully picked
child is now translated (etc) it can be picked as normal, without any special
alignment in the future.
So it seems that there is some kind of 'registration' problem
with the newly reparented branch group, even though it is definitely
attached to the scene graph and detected by the renderer - it is visible on
screen, and can be transformed with its new parent.
I'm continuing to search my own code for
errors...
Have you or anyone else experienced this before?
Cheers, Tim
|
- [JAVA3D] Picking (for a change!) Tim Uren
- Re: [JAVA3D] Picking (for a change!) Guillermo E. Gutierrez
- Tim Uren
