No, I have a completely different problem. Your problem can be solved by inverting the transform.
I want to translate and have the object maintain its relationship to the mouse. That is, if I click on an object, then translate t othe right, I want the object to stay under the mouse. Not just "move right some amount" like it does in all the examples. -nathan --- Andre Bialojahn <[EMAIL PROTECTED]> wrote: > > I'm working on a 3D interface that involves both > moving the > > viewing platform as well as moving objects in the > virtual world. > > Same here. > > > Is there a simple way to say "what point in 3D > space is at x,y on the > > screen, at a depth of d meters?" -- I guess the > best way is just to take the > > Canvas3D.getImagePlateToVworld() result, and use > it to transform a > > point3d(x,y,d)? Would that even do what I want? > > I haven't had a look at the localToVWorld-Transform > mentioned in > PickResult, but it might already do what you want. > > I'm not sure that I properly understood your > problem, but I assume > you've already have had a look at PickCanvas, > pickClosest() and the > accompanying PickMouseBehaviors? > A bit embarrassing about the latter is that they > don't work right, > when you modified the VP (f.e. rotated a model). The > mouse's motion > *will* translate into a modification of the picked > object's TG, but > the direction in which the object moves might turn > out to be - ehm - > "surprisingly interesting". ;-) > > Exactly this is one of my current problems, too. > If you should find any hint on solving this, I'd be > interested in > a short cc:ed pointer. > > Regards, > Andr� > > =========================================================================== > 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". __________________________________ Do you Yahoo!? Yahoo! Photos: High-quality 4x6 digital prints for 25� http://photos.yahoo.com/ph/print_splash =========================================================================== 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".
