   [java] java3d collision avoidance / terrain following
  I''m looking to implement a 3d walkthrough and I''m having some trouble understanding how to implement collision avoidance. Let me first say that I''ve worked with Java a few years, Java3D for a few months, but never done any collision detection type stuff before.I''ve done reading online through stuff such as the collision explanations and implementation on j3d.org (read through it several times actually). I understand theoretically how it works, but I''m not sure how I need to structure my code to actually implement it. I went through the manual implementation on j3d somewhat (structured my scene graph the way it is explained there, set up variables, etc) but I''m sort of lost where to go from there.I''ve tried just plugging in the collision/terrain/navigation code from the j3d code repository, but nothing seems to happen. I also tried the 3dchat.org implementation with no success.What I would like is to have keyboard navigation capabilities (and collision avoidance and terrain following of course), and also like it to work with imported models using the Starfire 3DS Loader. If anyone has done this and can show me how to go about doing it or point me to some online material that shows an actual somewhat complete implementation, it would be appreciated. I''d prefer free materials, but I suppose if someone could recommend a good book for this, that would be nice, too. I''m having a hard time googling much information about this stuff... thanks. 
  go to this link...http://www.javagaming.org/cgi-bin/JGNetForums/YaBB.cgi?board=xith3d;action=display;num=1075920495and check out the demo.. he also has source code. it should be what you''re looking for. Good luck and I hope it helpsCthulhu ;  That looks like it can help, thanks.I''ve heard the name Xith3D before but never checked it out. Does anyone think it would be better to implement this in that rather than regular old Java3d? It looks rather nice... Once again, I''m just going to do a walkthrough type thing of a model. ;  I''ve found Xith3d to be pretty close to j3d so porting your existing code should be negligible. While xith3d does cover some bugs of j3d and has it''s own bugs.. it is at least being actively developed which, I believe, j3d is not at this time. ;  Java3D doesn''t include any collision avoidance   system, however it has a well working collision detection   system. But using it in order to perform terrain following would really be a waste of ressource, it would require a lot of computations for what i think can be done on a much more efficient way.About J3D.org''s navigation utilities, i can''t help you out. But i would like to give you the advice to search a bit more and try to make it work, it could be very beneficial to spend a bit more time on it. You''ve surely forgot to do something! ;-)However, if you don''t get it working, here are 2 ressources that can *maybe* help you:1. A brief tutorial including basic terrain following http://www.newview.co.uk/javatutorial/purple1.htm2. An open source project with terrain followinghttp://arabian.sourceforge.net/I hope it can help, cheers! 