The trackball deliberately uses a proportional zoom, for a linear zoom you'll need to roll your own trackball.
However, I caution against this, and linear zoom doesn't work well at all with models of different scales. If you models are always within a given range you can calibrate you zoom speed realative to this, but if you then throw in a model of very different scale the zoom speed will be inappropriate, either too slow or too fast. The zoom speed proportional radius doesn't have this problem.
And if you are having problems with wanting to push in through the center of the trackball then perhaps a tracball is the wrong type of camera manipulate for your app.
Robert.
On 9/20/06, Oliver Kutter <[EMAIL PROTECTED]> wrote:
Hi,
I am wondering why the trackball of the osgviewer is zooming non linear. When I'm zooming in (to the center of the loaded model), it seems to me that the zoom is getting slower and slower, until it passed the center of the model. Then it is accelerating. The same thing with zooming out. I thing the zoom is getting faster the more I zoom away from model.
Is this intended to be so? And can I change this anyhow to a linear zoom? Or do I have to implement my own trackball and when, what do have to change?
regards
Oliver
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/
_______________________________________________ osg-users mailing list [email protected] http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/
