Author Topic: Particles Test  (Read 3076 times)

0 Members and 1 Guest are viewing this topic.

kryton9

  • Guest
Particles Test
« 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]
« Last Edit: September 17, 2011, 05:43:38 PM by kryton9 »

Charles Pegge

  • Guest
Re: Particles Test
« Reply #1 on: September 16, 2011, 03:26:20 AM »
Hi Kent,

Could you post your current GLWindowC.inc

kryton9

  • Guest
Re: Particles Test
« Reply #2 on: September 16, 2011, 03:33:38 PM »
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.

Peter

  • Guest
Re: Particles Test
« Reply #3 on: September 16, 2011, 05:03:45 PM »
Kent,

There is no  GLWindowC.inc in 7zip!
Drink more coffee for a clearly look.
« Last Edit: September 16, 2011, 05:05:40 PM by peter »

JRS

  • Guest
Re: Particles Test
« Reply #4 on: September 16, 2011, 06:23:14 PM »
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.

 
« Last Edit: September 16, 2011, 07:06:10 PM by JRS »

kryton9

  • Guest
Re: Particles Test
« Reply #5 on: September 16, 2011, 06:48:20 PM »
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?

Charles Pegge

  • Guest
Re: Particles Test
« Reply #6 on: September 17, 2011, 01:31:37 AM »

Hi Kent,

We will need another file:

include "TimerLowResC.inc"

Charles

kryton9

  • Guest
Re: Particles Test
« Reply #7 on: September 17, 2011, 01:41:22 AM »
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.

Peter

  • Guest
Re: Particles Test
« Reply #8 on: September 17, 2011, 03:09:36 AM »
Good substance,  Kent.

I'll start again with GW Basic  :D