Hi Everyone, I'm relatively new to Java3D and have a question regarding moving objects (or the view) in parallel projections using the mouse. All of the examples I can find that deal with translating objects seem to use scale factors for the translation, which act to scale the original mouse movement (so they scale a change in pixel coordinates into an offset in 3D scene coordinates which is then put into a Transform3D and multiplied by the current matrix of the object or view in question). I realise that in a perspective projection this is a very reasonable approach, but in a parallel projection, it ought to be possible to arrange a translation so that the movement of the mouse exactly corresponds to the movement on the screen (ie: so that the mouse movement corresponds, pixel-for-pixel, to the movement of the object, and the object isn't "too slow" or "too fast").
Can somebody please point me at an example which does this kind of parallel-view panning? Also, is there a reference somewhere which discusses the image plate? I tried to create the above behaviour by converting mouse coordinates into image plate coordinates, and then finally into world coordinates (using the transforms available for this from the Canvas3D class). I then translated the object by the calculated amount in world space. However, this yielded some very strange behaviour, and not at all what I had expected. Thanks, Jonathan Merritt. =========================================================================== 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".
