Ric,

I get similar results. The original pendulum script runs fine on my Mac (4 year 
old MacBook Pro OS 10.6) and the new version of Bill's hangs up on the same 
length error for glqwh '' .
I also ran two versions of the Oleg's Diagram script (one with setinvalid and 
one with direct paint) and they both performed identically. So whatever the 
issues were initially, the current version of J 6.02 and the current version of 
Mac OS 10.6 seem to work better with than they did in 2006 when Diagram was 
written. 

Cheers, bob

On -Jan8-2010, at -Jan8-20102:24 AM, Sherlock, Ric wrote:

> Bob,
> Thanks for the reference. Good to have it explained.
> 
> Interestingly I just ran the initial version I posted on a 2yr old iMac 
> running OSX 10.5.(6?). Seemed to work fine, as smooth as the display on 
> Windows anyway. Perhaps this is no longer an issue for current versions of 
> OSX? 
> 
> I put together another version using Oleg's advice on the page you referenced 
> that was similar to Bill's, although I integrated the pend_isi_paint because 
> I think it is good practise to provide a handler for the paint event. Running 
> both that version and Bill's I get an sys_timer error (something like a 
> length error for glqwh '' if I remember correctly) although they both run on 
> Windows.
> 
> Hopefully the move to GTK in J7.01 will help with some of these 
> cross-platform GUI issues!
> Ric
> 
>> -----Original Message-----
>> From: programming-boun...@jsoftware.com [mailto:programming-
>> boun...@jsoftware.com] On Behalf Of bob therriault
>> Sent: Friday, 8 January 2010 16:31
>> To: Programming forum
>> Subject: Re: [Jprogramming] Pendulum
>> 
>> Hi Ric,
>> 
>> I noticed that Oleg had a similar problem with Macs in his Diagram
>> script. http://www.jsoftware.com/jwiki/Scripts/Diagram  It sounds as
>> though setinvalid is a challenge for the Mac platform and he painted
>> directly instead.
>> 
>> Hope this helps,
>> 
>> bob
>> 
>> On -Jan7-2010, at -Jan7-20107:13 PM, Sherlock, Ric wrote:
>> 
>>> Thanks, Yes I had found the solar.ijs file and seen that the
>> reference to it was commented out (along with tank) in glview.ijs. On
>> second glance I saw that 'solar' is added again below, and sure enough
>> it is in the OpenGL demo too - and it works!
>>> 
>>> Regarding the jerkiness you see on your Mac for the pendulum
>> animation, does it improve if you change DT to say DT=: %200  ?
>>> 
>>>> From: Brian Schott
>>>> 
>>>> If the file solar.ijs is in the system/examples/graphics/opengl
>>>> directory, try putting it into the script glviews.ijs in the same
>>>> directory and fire it up. Otherwise, it may not be available to you
>>>> unless someone with a Mac (wink, wink) sends you a copy.
>>>> 
>>>> A simpler alternative might be to decomment the phrase solar.ijs in
>>>> glview.ijs (notice, no s in this one).
>>>> 
>>>> Other than that I can't remember if the file needed some tweaking.
>> But
>>>> let me know if you need more.
>>>> 
>>>> 
>>>> 
>>>> On Thu, Jan 7, 2010 at 8:03 PM, Sherlock, Ric wrote:
>>>>>> From: Brian Schott
>>>>>> 
>>>>>> On my Mac your fine simulation is not smooth like the solar system
>>>>>> Demo of J.
>>>>> 
>>>>> I had a vague memory of seeing this before, but wasn't sure where
>> to
>>>> find it. Searching for "solar" in the ~system folder I found it in
>> the
>>>> OpenGL demo. However it appears to be commented out in the current
>>>> distribution for Windows. Is it available in the Mac one?
>>>>> 
>>>>> Ric
>>>> --------------------------------------------------------------------
>> --
>>>> For information about J forums see
>> http://www.jsoftware.com/forums.htm
>>> ---------------------------------------------------------------------
>> -
>>> For information about J forums see
>> http://www.jsoftware.com/forums.htm
>> 
>> ----------------------------------------------------------------------
>> For information about J forums see http://www.jsoftware.com/forums.htm
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm

----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to