Excellent work! I have been looking into curve rendering myself lately, and found some links that you might find interesting (besides the Loop/Blinn article Bob already forwarded to you)
Tom Poliquin wrote:You're most welcome.
Jules, thanks for uploading the code!
Yes, capped to 40fps by the "25" (25 milliseconds = 1/40 seconds) in line 115 inside the idle callback.
As a reactive newbie, examples are a gigantic help ..
It works great .. about 40FPS on my
ATI Technologies Inc RV515GL [FireGL V3350] using about 3% of my AMD Athlon(tm) 64 X2 Dual Core Processor 6000+
CPU.
If you change that to "0" then it will take up more or less 100% of your CPU and framerates will be much higher. On my machine (nvidia m 8xxx) it does 1000fps (!) for Pong, 400fps for the charts and 100fps for the flowers.D'OH
I had to make a small change to get it to work on my
system (perhaps I'm down rev somewhere) .. but I thought I'd share in case other newbies have the same
issue ..
crayon.hs:689:57:
Constructor `WeightedProperties' should have 4 arguments, but has been given 1
crayon.hs:699:8:
Constructor `WeightedProperties' should have 4 arguments, but has been given 1
I just changed the WeightedProperties args in each case to,
(WeightedProperties (_,p) _ _ _)
from
(WeightedProperties ((_, p) : _))
That is the correct fix, yes.
I forgot that my HOpenGL bugfix actually changed the API.
Jules
_______________________________________________
Reactive mailing list
Reactive@haskell.org
http://www.haskell.org/mailman/listinfo/reactive