try this code: x = evt.getX(); y = evt.getY();
dx = x - x_last; dy = y - y_last; double scaleValue = 1.0; if (dy < 0) scaleValue = ((-scaleFactor_*Math.abs(dy))/(scaleFactor_*Math.abs(dy)+1))+1; else scaleValue = scaleFactor_*dy+1; transformX.set(scaleValue); set this transform3D to the viewing plateform Regards Renaud --- "Nitin.Jain" <[EMAIL PROTECTED]> a écrit : > Hi, > > I'm using the View.setScreenScale(scale) method for > generating the zooming > effect in my application. I'm not able to figure out > a way to produce a > constant zooming effect. How to convert a linear > mouse drag values into the > "scale" parameter, which is a multiplication factor. > The zooming-in and > zooming-out effect do not get performed at the same > speed. > > Thanks in advance, > Nitin > > =========================================================================== > 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!? -- Une adresse @yahoo.fr gratuite et en français ! Yahoo! Mail : http://fr.mail.yahoo.com =========================================================================== 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".