import-bot (20211) [Avatar] Offline
#1
[Originally posted by paulcohen]

I'm trying to integrate J3Dtree
(http://www.tornadolabs.com/News/J3dTree_Home/j3dtree_home.html)into some of
the examples so I can visualize the scenegraph. Quite handy as I have done it
on some other example code.

I'm having a problem with the CameraNavigating demo.
When I try m_J3dTree.recursiveApplyCapability(this.getWorld().getSceneRoot()
); [the J3dTree example uses a BranchGraph parameter here] I keep getting
"Null object" errors, yet when I evaluate the expression in the debugger it
works ok. Funny thing is it sometimes does'nt as well.
If I try m_J3dTree.recursiveApplyCapability( flyView.getRoot() ); it seems to
recurse ok, but then the scenegraph tree population seems to only go as far as
the Locale.

I then try and poulate the scenegraph tree with m_J3dTree.updateNodes(
this.getWorld() );

Has anyone else tried using this? Or can anyone see anything obviously wrong?
import-bot (20211) [Avatar] Offline
#2
Re: J3dTree and J3Dui
[Originally posted by author]

I am aware of j3dTree but never used it since I've got my own primitive
version (see example FancyApp). Nothing in your description jumps out as me
as being blatantly wrong, or would help to narrow down the problem to J3DTree,
j3dui, or java 3d itself.

One thought... I do know that the j3dui MultiShape class creates dummy group
nodes with no children. Is there a possibility that j3dtree is failing in
instances where a group has no children? (Note, however, that I don't think
MultiShape is used in the CameraNavigating example.)

--jon

> I'm trying to integrate J3Dtree
> (http://www.tornadolabs.com/News/J3dTree_Home/j3dtree_home.html)into some of
> the examples so I can visualize the scenegraph. Quite handy as I have done it
> on some other example code.
>
> I'm having a problem with the CameraNavigating demo.
> When I try m_J3dTree.recursiveApplyCapability(this.getWorld().getSceneRoot()
> ); [the J3dTree example uses a BranchGraph parameter here] I keep getting
> "Null object" errors, yet when I evaluate the expression in the debugger it
> works ok. Funny thing is it sometimes does'nt as well.
> If I try m_J3dTree.recursiveApplyCapability( flyView.getRoot() ); it seems to
> recurse ok, but then the scenegraph tree population seems to only go as far as
> the Locale.
>
> I then try and poulate the scenegraph tree with m_J3dTree.updateNodes(
> this.getWorld() );
>
> Has anyone else tried using this? Or can anyone see anything obviously wrong?