Hello All

Can anyone give me a solution (or a workaround) to this problem? My Java3d
application models a landscape that the user can walk or fly over. The controls
for this are based on the Behavior provided with the (old) GearTest example in
the download and then adapted by me. This is very similar to the KeyBehavior
class I think was posted here a while ago. The only difference in my code is
that I test the height (y) component to ensure it lies above the landscape
elevation grid. So the Behavior class basically follows this process:

Receive input from user (KeyPress or MouseEvent)
Process event and set translation (Vector3f) accordingly.
Check y component of Vector3f and alter if necessary (i.e if y < landscape
height --> y = landscape height)
Update ViewPlatform TransformGroup with new location (Vector3f).

This works well for around 20-->50 movements in any direction, but then the
error below appears. I understand what it means, but I don't understand why I'm
getting it! I had a look in the "Known bugs" but can't find anything obvious...
I have also tried to catch the Exception within the Behavior code but can't 
seem to do it. Help! This error occurs both with the OpenGL and DirectX 
(much faster) implementations of Java3D. My computer is running Windows
95, 300MHz, 64M RAM, with a ATI XPERT 128 (32M) graphics card.

Error:
javax.media.j3d.BadTransformException: non-congruent transform above
ViewPlatform
at javax.media.j3d.ViewPlatformRetained.setViewPlatformTransform(Compiled Code)
at javax.media.j3d.ViewPlatformRetained.evaluateViewPlatformTransform(Compiled
 Code)
at javax.media.j3d.Traverser.getViewPlatformTransforms(Compiled Code)
at javax.media.j3d.Traverser.run(Compiled Code)

Thanks in advance,

Keith

*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*

  Keith Morrison
  GIS Officer
  Department of Geography
  University of Edinburgh
  Drummond Street
  Edinburgh EH8 9XP
  Scotland, UK

  Telephone +44 (0) 131 650 2540
  http://www.geo.ed.ac.uk/
  http://www.geo.ed.ac.uk/~kwm/

*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*

=====================================================================
To subscribe/unsubscribe, send mail to [EMAIL PROTECTED]
Java 3D Home Page: http://java.sun.com/products/java-media/3D/

Reply via email to