Re: [PyOpenGL-Users] small bug: tkScale() and `distance' < 0
Brought to you by:
mcfletch
From: Mike C. F. <mcf...@ro...> - 2003-05-01 02:28:34
|
Okay, I just fixed this one. I didn't do anything fancy, just limited total scaling to within 1:1000 through 1000:1 of current scale. I'm unable to provoke the situation of pushing past the focus point with the current code, though I could imagine having it occur just through successively scaling in so that the scale just disappears entirely (i.e. the floating-point value becomes so small as to be effectively 0), but if you're zooming in that far, well, expect problems. Enjoy all, Mike Maciej Kalisiak wrote: >There's a small bug/feature in the Opengl class' tkScale() method. There is no >guarantee that "0.01 * (event.y - self.ymouse)" will be < 1... in fact, if you >move the mouse fast enough, it is possible for it to be larger than 1, giving >`scale' < 0. This causes the eye point to whip past the centerpoint (i.e., the >point being looked at) and look at it from behind. > > _______________________________________ Mike C. Fletcher Designer, VR Plumber, Coder http://members.rogers.com/mcfletch/ |