RE: [Pyopengl-users] patch to trackball.py
Brought to you by:
mcfletch
From: Alastair (L. T. <liq...@op...> - 2001-09-05 17:28:18
|
Hi Tarn, On 05 Sep 2001 10:44:17 -0500, Tarn Weisner Burton wrote: > I applied some of your changes, but not all. One thing that worries me is > the line > > phi = 2.0 * math.asin(t) Hehe .. It must have been the comment I wrote below that threw you :) Actually, I was debugging something and I forgot to remove it. That was basically from the SGI code that implemented the trackball. The original trackball.py was right (at least to my little trig knowledge). You can ignore that line. So the bit should go : t = max(min(t, 1.0), -1.0) scale = 1.0/math.sqrt(a[0]**2 + a[1]**2 + a[2]**2) q = [math.sqrt(1.0-t**2)] + map(lambda x, y: x*y, a, [t*scale]*3) > In the future please submit patches via the Patch Tracker at the sourceforge > page. Also you can always check the current status of code to see if a bug > has already been fixed using the CVS browser. Yeah, thanks for the suggestion. I will check the CVS code next time. In fact I only had a look at the trackball.py code today and was in a rush to get it working. > Yep. Look at the documentation. The array functions have slightly > difference prototypes that the spec so this might be the cause. Thanks for the pointer. I'll take a look at the documentation again. Cheers, Alastair. > > thanks, > Tarn Weisner Burton > > > _______________________________________________ > Pyopengl-users mailing list > Pyo...@li... > https://lists.sourceforge.net/lists/listinfo/pyopengl-users -- ________________________________________________________________________ Alastair Tse -=- https://www.liquidx.net/ -=- al...@cs... ___ -=- li...@op... /__/\ - opengl for ascii -=- icq - 118396999 \__\/ " I'm sorry, our software is perfect. The problem must be you." -- Dogbert |