Andrew,
I've
not had any problems using KeyNavigator (other than the documented ones). I
can't think why you would be "thrashing". I take it you mean the HD is
thrashing. How much physical RAM have you got? 64 MB is a practical minimum for
Java 3D. What kind of scene are you manipulating?
Sorry
I can't be of more help,
Daniel
Selman
-----Original Message-----
From: Discussion list for Java 3D API [mailto:[EMAIL PROTECTED]]On Behalf Of Andrew R. Thomas-Cramer
Sent: 15 October 1999 13:40
To: [EMAIL PROTECTED]
Subject: KeyNavigatorBehavior and thrashing
I'm getting thrashing when I use KeyNavigatorBehavior.I've tried turning off mouse navigation, decreasing the bounds in the bounding leaf, and using an ordinary bounds instead of a bounding leaf. Thrashing still occurs.Does anyone happen to know of a problem with KeyNavigatorBehavior with J3D 1.1.2, or an error in my approach below?Bounds behaviorBounds = new BoundingSphere( new Point3d(), 2000.0 );
...if ( bRotate && bTranslate && bZoom ) {
KeyNavigatorBehavior behavior = new KeyNavigatorBehavior( vpTrans );
m_bgNavBehavior.addChild( behavior );BoundingLeaf boundingLeaf = new BoundingLeaf( behaviorBounds );
m_bgNavBounds.addChild( boundingLeaf );
behavior.setSchedulingBoundingLeaf( boundingLeaf );
}//===========================================================
// Add the new bounds to the view branch.
//===========================================================
try {
if ( null == super.platformGeometry ) {
super.setPlatformGeometry( new PlatformGeometry() );
}
super.platformGeometry.setCapability( javax.media.j3d.Group.ALLOW_CHILDREN_EXTEND );
super.platformGeometry.addChild( m_bgNavBounds );
super.platformGeometry.compile();
}
catch ( javax.media.j3d.RestrictedAccessException e ) {
// No-op: platformGeometry already compiled. Probably already existed.
}
//===========================================================
// Add the new behaviors to requested content branch.//===========================================================
newBehaviorParent.addChild( m_bgNavBehavior );
