Hi Pascal,
>Where can in find source code of KeyNavigatorBehavior an KeyNavigator classes,
>because i have try to make my own keyboard behavior, it works but it isn't
smooth than build in behavior (what is the secret ?).
>
You can find the file
java3d-utils-src.jar
under the installation directory, unzip it using,
jar xvf java3d-utils-src.jar
The two files are under
src/com/sun/j3d/utils/behaviors/keyboard
>And why KeyNavigatorBehavior consume 100% of cpu even they are no action (i use
NT).
Because KeyNavigatorBehavior use non passive
public WakeupOnElapsedFrames(int frameCount, boolean passive)
as one of its wakeup criteria. So the rendering system run
continuously even though there is no activity. It could be
rewritten without using WakeupOnElapsedFrames() at all.
- Kelvin
-----------
Java3D Team
Sun Microsystems Inc.
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".