is phun/algodoo programed with a touch of random?

For topics that don't fit under the other topics or forums.

is phun/algodoo programed with a touch of random?

Postby izacque » Wed Jan 27, 2010 3:04 am

If not, why does a very thin box fall over when it touches the ground? or why do a bunch of circles in the exact same place explode?

:?:
[/post]
Paradigm 29 wrote:I've been trying to figure out why people even buy hummers ever since I found out that they don't have machine guns.
User avatar
izacque
 
Posts: 483
Joined: Mon Sep 14, 2009 11:14 am

Re: is phun/algodoo programed with a touch of random?

Postby Mystery » Wed Jan 27, 2010 3:20 am

Grady wrote:It is probably as a result of low simulation frequency, as, at a perfect precision simulation accuracy the simulation will probably run the exact same, as without perfect precision, things are going to hit other things at different speeds (things will go inside each other at faster speed).

Sim.timeDelta = 0.01 is the default, at 0.0000001 (10,000,000 hz) it would probably run perfectly, and the same each time, as the variance in each movement will be much smaller.
Last edited by Mystery on Wed Jan 27, 2010 3:24 am, edited 1 time in total.
User avatar
Mystery
 
Posts: 2802
Joined: Thu Sep 03, 2009 1:16 pm
Location: Southern Australia

Re: is phun/algodoo programed with a touch of random?

Postby izacque » Wed Jan 27, 2010 3:24 am

aha... so the "random" behavior is due to rounding...
[/post]
Paradigm 29 wrote:I've been trying to figure out why people even buy hummers ever since I found out that they don't have machine guns.
User avatar
izacque
 
Posts: 483
Joined: Mon Sep 14, 2009 11:14 am

Re: is phun/algodoo programed with a touch of random?

Postby savask » Thu Jan 28, 2010 3:25 pm

But why sometimes one complicated scene acts differently on a big number of tries?
User avatar
savask
 
Posts: 162
Joined: Mon Oct 12, 2009 2:53 pm
Location: Russia, Siberia

Re: is phun/algodoo programed with a touch of random?

Postby Mr. crash » Fri Jan 29, 2010 12:56 pm

savask: same as zoomed in acts differently than zoomed out? :wtf: :crazy:
I like crashes alot!
User avatar
Mr. crash
 
Posts: 266
Joined: Fri Sep 18, 2009 9:56 pm
Location: Joensuu, Finland

Re: is phun/algodoo programed with a touch of random?

Postby savask » Fri Jan 29, 2010 1:10 pm

Rating: rated 7.4
Filesize: 46.18 kB
Comments: 16
Ratings: 8
download


Ok, I'll show you example with the Bell curve.
If you will play this scene more times (start, undo, start, undo...), you will get different results.
User avatar
savask
 
Posts: 162
Joined: Mon Oct 12, 2009 2:53 pm
Location: Russia, Siberia

Re: is phun/algodoo programed with a touch of random?

Postby KarateBrot » Fri Jan 29, 2010 3:08 pm

savask wrote:But why sometimes one complicated scene acts differently on a big number of tries?


it's because of the butterfly effect which is caused by the roundings gradyfitz already mentioned and maybe because of very small differences in initial conditions. algodoo doesn't calculate everything with perfect precision.
Image
User avatar
KarateBrot
 
Posts: 825
Joined: Mon Aug 31, 2009 7:32 pm
Location: Germany

Re: is phun/algodoo programed with a touch of random?

Postby savask » Fri Jan 29, 2010 3:21 pm

But I don't think that there are other variants of rounding (or calculating). If 0.541~0.5, so it can't round to 0.6 on next try, for example.
User avatar
savask
 
Posts: 162
Joined: Mon Oct 12, 2009 2:53 pm
Location: Russia, Siberia

Re: is phun/algodoo programed with a touch of random?

Postby KarateBrot » Fri Jan 29, 2010 5:21 pm

yeah and because of that there can also be small differences in initial conditions or some calculations are not syncronal to the frequency of 100Hz. for example a calculation starts at a very very small different point in time each time you start the simulation.
Image
User avatar
KarateBrot
 
Posts: 825
Joined: Mon Aug 31, 2009 7:32 pm
Location: Germany

Re: is phun/algodoo programed with a touch of random?

Postby savask » Fri Jan 29, 2010 5:35 pm

Is frequency calculating from computer clock?
If yes, this mean that your explanation is right and when computer works slower, Algodoo may start calculation later than timer will count up.
User avatar
savask
 
Posts: 162
Joined: Mon Oct 12, 2009 2:53 pm
Location: Russia, Siberia

Re: is phun/algodoo programed with a touch of random?

Postby Mr. crash » Fri Jan 29, 2010 5:58 pm

whats the real life frequency :crazy: :lol:
I like crashes alot!
User avatar
Mr. crash
 
Posts: 266
Joined: Fri Sep 18, 2009 9:56 pm
Location: Joensuu, Finland

Re: is phun/algodoo programed with a touch of random?

Postby KarateBrot » Fri Jan 29, 2010 6:21 pm

It's approximately 1.85*10^43 Hz. Every physics formula doesn't work with higher real life frequencies.
Image
User avatar
KarateBrot
 
Posts: 825
Joined: Mon Aug 31, 2009 7:32 pm
Location: Germany

Re: is phun/algodoo programed with a touch of random?

Postby KarateBrot » Fri Jan 29, 2010 6:26 pm

savask wrote:Is frequency calculating from computer clock?
If yes, this mean that your explanation is right and when computer works slower, Algodoo may start calculation later than timer will count up.

I don't know but although the sim isn't running there are calculations and maybe thats why it's off-sync if you start the simulation not exactly at specific points in time.


Mr. crash wrote:whats the real life frequency :crazy: :lol:

Maybe you didn't expect a serious answer but it's approximately 1.85*10^43 Hz :D Every physics formula doesn't work with higher real life frequencies.
Image
User avatar
KarateBrot
 
Posts: 825
Joined: Mon Aug 31, 2009 7:32 pm
Location: Germany

Re: is phun/algodoo programed with a touch of random?

Postby savask » Sat Jan 30, 2010 11:39 am

KarateBrot wrote:I don't know but although the sim isn't running there are calculations and maybe thats why it's off-sync if you start the simulation not exactly at specific points in time.


Your explanation is rather plausible, so I'll think it is right :thumbup:
User avatar
savask
 
Posts: 162
Joined: Mon Oct 12, 2009 2:53 pm
Location: Russia, Siberia

Re: is phun/algodoo programed with a touch of random?

Postby Mystery » Sat Jan 30, 2010 12:44 pm

Isn't that the Planck time frequency?
User avatar
Mystery
 
Posts: 2802
Joined: Thu Sep 03, 2009 1:16 pm
Location: Southern Australia

Re: is phun/algodoo programed with a touch of random?

Postby KarateBrot » Sat Jan 30, 2010 2:40 pm

yeah that's it. i just made the reciprocal value of planck time to get the frequency.
Image
User avatar
KarateBrot
 
Posts: 825
Joined: Mon Aug 31, 2009 7:32 pm
Location: Germany

Re: is phun/algodoo programed with a touch of random?

Postby izacque » Sat Jan 30, 2010 8:18 pm

what about circles in the same place?

the sim starts at exactly the same time, and their attributes would all have been rounded exactly the same...
[/post]
Paradigm 29 wrote:I've been trying to figure out why people even buy hummers ever since I found out that they don't have machine guns.
User avatar
izacque
 
Posts: 483
Joined: Mon Sep 14, 2009 11:14 am

Re: is phun/algodoo programed with a touch of random?

Postby KarateBrot » Sun Jan 31, 2010 12:48 pm

izacque wrote:what about circles in the same place?

the sim starts at exactly the same time, and their attributes would all have been rounded exactly the same...


they behave the same every time i start the simulation. they fly apart and hit the ground at the same time and distance, they have got the exact same velocity (of course mirrored) but they do it the same every time i start the simulation. but maybe i can't see a difference because the scene is just too simple.
Image
User avatar
KarateBrot
 
Posts: 825
Joined: Mon Aug 31, 2009 7:32 pm
Location: Germany

Re: is phun/algodoo programed with a touch of random?

Postby izacque » Sun Jan 31, 2010 10:16 pm

but why would they fly in different directions? shouldn't they all have the same velocity? (speed and direction)
[/post]
Paradigm 29 wrote:I've been trying to figure out why people even buy hummers ever since I found out that they don't have machine guns.
User avatar
izacque
 
Posts: 483
Joined: Mon Sep 14, 2009 11:14 am

Re: is phun/algodoo programed with a touch of random?

Postby KarateBrot » Sun Jan 31, 2010 10:58 pm

If they don't fly in different directions they should stay on each other. i don't know how it is programmed but they get pushed apart even if they have got the same position. I checked it. both have got the position [0,0]. they behave completely the same. the only difference is the velocity in x-direction after starting the simulation. it's predefined in which direction they get pushed. it's dependent from geomID or entityID i guess. it's necessary otherwise they would stay in each other.
Image
User avatar
KarateBrot
 
Posts: 825
Joined: Mon Aug 31, 2009 7:32 pm
Location: Germany

Re: is phun/algodoo programed with a touch of random?

Postby izacque » Sun Jan 31, 2010 11:12 pm

... which strictly speaking would be more realistic...

anyway, I get it now. thanks :D
[/post]
Paradigm 29 wrote:I've been trying to figure out why people even buy hummers ever since I found out that they don't have machine guns.
User avatar
izacque
 
Posts: 483
Joined: Mon Sep 14, 2009 11:14 am

Re: is phun/algodoo programed with a touch of random?

Postby KarateBrot » Sun Jan 31, 2010 11:15 pm

hmm yeah maybe but you can't spawn two balls into each other in reality too so who knows :D
Image
User avatar
KarateBrot
 
Posts: 825
Joined: Mon Aug 31, 2009 7:32 pm
Location: Germany


Return to Algodoo in general

Who is online

Users browsing this forum: No registered users and 4 guests