Skip to main content

Freezing interpolations

3 replies [Last post]
nugues
Offline
Joined: 2006-02-17
Points: 0

I have a program that has two viewpoints: one that is fixed in the scene and another one that is attached to a moving object. I want to switch from one to another. The fixed viewpoint is similar to the default one in SimpleUniverse.
The moving viewpoint is attached to another BranchGroup where it is animated by an interpolator.

I can switch from the fixed viewpoint to the moving one but not the reverse. After reversing to the fixed viewpoint, all the moving objects freeze after a few seconds.
Going again to the moving viewpoint causes the loss of some interpolated objects...

Any idea of what is wrong in the code.

Pierre

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
nugues
Offline
Joined: 2006-02-17
Points: 0

In fact, we have partly solved it by increasing the bounding sphere. I am not sure it is a bug.

What is strange is that moving the viewpoint to an interpolated object and returning to the old static one has modified the BoundingSphere radius or coordinates. We still have lost one interpolated object...

nugues
Offline
Joined: 2006-02-17
Points: 0

One more thing:
The program, called Carsim, is intended to generate 3D scenes from texts describing car accidents. It can be tested as a webstart application here (Go to demo):
www.lucas.lth.se/lt

You can reproduce the buggy behavior by clicking the button "Inside behavior" to move into the vehicle and again to restore the first viewpoint.
We can make the source code available.

Pierre

kcr
Offline
Joined: 2004-03-17
Points: 0

If you believe that this is a Java 3D bug, please file an Issue and attach the test program that shows the bug. For information on filing an Issue, see:

https://java3d.dev.java.net/#Reporting_Issues

-- Kevin