"Theron, Jannie" wrote:
>
> I just have another question on the KeyNavigatorBehaviour that you may have
> an idea of. If I use it together with my own mousebehaviour it seems like
> the application builds up "lag" and just slows down. It looks like the
> thread is locking some resources to keep my mousebehaviour from affecting
> the scenegraph. I am writing my own keyboardbehaviour but am wondering why
> that happened.
Before writing your own, you might want to take a look at the code in
the j3d.org code repository. This is a re-write of the Halden VR center
code for general use. Instead of using behaviours it works directly
from AWT events on the Canvas. It also does lots of other nifty things
like transitions between locations etc. It is *much* smoother than the
Java3D based behaviours. Currently it is mouse only, no keyboard, but
the kbd shouldn't take much to hack in. It presents standard VRML style
navigation.
The code can be found at http://www.j3d.org/code.html
*HOWEVER* Do _not_ attempt to download it from CVS. The machine is
currently very screwed. You'll have to wait until the end of the week
once I've rebuilt the machine. If you desparately need the code then
email me privately and I'll zip up my working copy and send it to you.
--
Justin Couch http://www.vlc.com.au/~justin/
Freelance Java Consultant http://www.yumetech.com/
Author, Java 3D FAQ Maintainer http://www.j3d.org/
-------------------------------------------------------------------
"Humanism is dead. Animals think, feel; so do machines now.
Neither man nor woman is the measure of all things. Every organism
processes data according to its domain, its environment; you, with
all your brains, would be useless in a mouse's universe..."
- Greg Bear, Slant
-------------------------------------------------------------------
===========================================================================
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".