Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Java 3D > Re: Implementin...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 3 of 4 Topic 804 of 832
Post > Topic >>

Re: Implementing direct mouse dragging

by Miss Elaine Eos <Misc@[EMAIL PROTECTED] > Jan 10, 2008 at 06:13 AM

In article 
<7bc88e7f-fc92-4218-873f-0874643fced5@[EMAIL PROTECTED]
>,
 Sebastian Paul <sebpaul79.work@[EMAIL PROTECTED]
> wrote:
> I could somehow calculate the factor so that the translation
> synchronizes with the mouse cursor.

This is the "correct" solution, and the whole reason the factor exists.  
Obviously, if you scale the image or change view parameters, you need a 
different factor.

Btw, you can calculate the factor for orthographic projection, but you'd 
need to do some trig -- it's similar to when the view params change or 
the image scales, but you have to update it "live."

-- 
Please take off your pants or I won't read your e-mail.
I will not, no matter how "good" the deal, patronise any business which
sends
unsolicited commercial e-mail or that advertises in discussion newsgroups.
 




 4 Posts in Topic:
Implementing direct mouse dragging
Sebastian Paul <sebpau  2007-12-21 03:04:50 
Re: Implementing direct mouse dragging
Alexander Gran <delete  2008-01-04 23:43:56 
Re: Implementing direct mouse dragging
Miss Elaine Eos <Misc@  2008-01-10 06:13:43 
Re: Implementing direct mouse dragging
Sebastian Paul <sebpau  2008-02-05 07:11:47 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Jul 25 17:34:10 CDT 2008.