From: Gary P. <gar...@gm...> - 2010-06-07 21:59:43
|
On Mon, Jun 7, 2010 at 10:29 AM, Gary Pajer <gar...@gm...> wrote: > On Sat, Jun 5, 2010 at 8:56 AM, Symion <kn...@ip...> wrote: > >> On 5/06/2010 2:52 AM, Gary Pajer wrote: >> >> On Thu, Jun 3, 2010 at 6:12 PM, Guy K. Kloss <g....@ma...>wrote: >> >>> On Fri, 04 Jun 2010 04:08:46 Gary Pajer wrote: >>> > If I remove the line containing scene.range the original program works >>> > fine. I'm using python-visual from the Ubuntu repository. >>> > Can someone else try it? I'd be especially interested to know if it >>> > crashes using the respository version, but works using Bruce's >>> home-made >>> > version. >>> >> >> > > >> I think you have to declare scene.range Before you can use it. >> >> #---------------------------------- >> from visual import * >> scene.range = 10 >> sphere() >> scene.range = scene.range * 3. >> >> works fine! >> > > > Not for me. It no longer segfaults. But now a window pops up containing a > yellow sphere, and a split second later the sphere is replaced by yellow > garbage. The window responds to rotation mouse gestures, but not zooms. > > Point of interest #1: the original code worked fine under WinXP. > Point of interest #2: it was not necessary to declare scene.range in > WinXP. > Something else: I don't know which version of visual I was using when I > was using WinXP. > > Bruce, if I'm not mistaken you are relocating, and therefore probably very > busy. But whenever it's comfortable, I'd appreciate it if you can try my > code on your home-grown build, and, if you still have it available, your > from-Ubuntu-repository build in order to see if it works on one but not on > the other. If it does, any pointers on building on Ubuntu would be > appreciated. > > Thanks very much, > gary > Oops. Symion's fix does work. I accidentally tried the fix on an old version of my test program which contained some other garbage that filled the window with ... well, garbage. Thanks, Symion -gary |