Adding a foreground node causes a Bus Error

Hi, I have a scenegraph that has a Foreground node in it like this:
Root branchgroup > Foreground Node > BranchGroup > Shape3D with Geometry.

Adding it to the scenegraph causes a Bus error. It doesn’t matter if I’m using View.FIXED_POSITION or just VIEW.NORMAL. When the app starts, everything loads fine, and I see the first frame just fine (actually, it says FPS 2, so probably the second or third frame), even the geometry in the forground node, but then instantly it crashes with an exception or anything, just a Bus error.

I even commented out the code that moves the view, it still crashes. Help? This is an essential piece to my game. :’(

Found the problem, apparently it’ll do this if there’s no Appearance object in the Shape3D. But a new problem has arisen, if I do anything besides a View.VIEW_NORMAL I won’t be able to see the geometry at all.

I have, however, seemed to have found the problem… but this should probably be put in another thread.

[quote]Found the problem, apparently it’ll do this if there’s no Appearance object in the Shape3D. But a new problem has arisen, if I do anything besides a View.VIEW_NORMAL I won’t be able to see the geometry at all.

I have, however, seemed to have found the problem… but this should probably be put in another thread.
[/quote]
The VIEW_NORMAL/VIEW_FIXED_POSITION/VIEW_FIXED arn’t there just for fun, the greatly alter the behaviour of the Foreground node. You could almost have three seperate classes (I don’t believe this is nessesary however). If you switch the mode of the Foreground object, you have to reposition it, it is that simple.

Regarding the BUS error bug, can you please submit a small test case?

Will.

I’m not sure where/how I’d submit the test case, but it should happen if you try to add a Shape3D with any geometry, and not adding Appearance to the Shape3D (then adding the shape3d to a bg, which is added to the foreground node).