Oxygen Basic
Programming => Example Code => Topic started by: kryton9 on September 16, 2011, 01:14:46 AM
-
http://www.youtube.com/watch?v=L1XbYhVsD2Q&feature=related
This impressed me. 4.1 million particles (points). Of course it all depends on the hardware running it. My system is old now, from around 2005 and my video card is a nvidia 8800 gt, so not even close to today's decent systems. I was very happy with how well Oxygen was able to run my slapped together code.
Used Peter's Rand function for the plot.
P2.o2bas instructions:
Up Arrow Key changes the number of points. 10,000 , 100,000 , 1,000,000 , 2,000,000 , 3,000,000 , 4,000,000 and then back to 10,000 points.
Right Arrow Key changes the seed value used in the Rand function. Giving a different plot.
Used some formulas for a more interesting plot
P3.o2bas instructions:
Up Arrow Key increments up the number of points
Down Arrow Key decrements the number of points
Right Arrow Key increments the scale
Left Arrow Key decrements the scale
P4.o2bas instructions:
Up Arrow Key increments up the number of points
Down Arrow Key decrements the number of points
Right Arrow Key increments the scale
Left Arrow Key decrements the scale
PageUp Key increments the point size
PageDown Key decrements point size
[attachment deleted by admin]
-
Hi Kent,
Could you post your current GLWindowC.inc
-
It should be in the 7zip file? Just checked again to make sure, both the source code listed and the glwindowc.inc are in the attachment.
I am going to work on a dynamic version tonight. Anxious to see how well it runs.
-
Kent,
There is no GLWindowC.inc in 7zip!
Drink more coffee for a clearly look.
-
There are only two files in ParticleTest.7z.
PointCloudTest.o2bas
TestGLWindowC.o2bas
Could TestGLWindowsC.o2bas really be GLWindowC.inc ?
Update
Renaming TestGLWindowsC.o2bas to GLWindowC.inc cause a recursive include failure.
-
Thanks guys, made improvements to the static test.
Added Up Arrow Key changes the number of points 10,000 , 100,000 , 1,000,000 , 2,000,000 , 3,000,000 , 4,000,000 and then back to 10,000 points. So no need to comment and uncomment as in the original.
The Right Arrow Key changes the seed used for the Rand function.
I am out of ideas on getting it to print the numeric values correctly. It takes whole numbers and makes them decimal, for the seed and numPoints?
-
Hi Kent,
We will need another file:
include "TimerLowResC.inc"
Charles
-
I need to do a clean install, I had a kent folder in oxygenbasic/projects that should have all the files. Sorry about that.
Have 2 tests now, both static. The download will be in the first post.
-
Good substance, Kent.
I'll start again with GW Basic :D