Scene Consistency
7 posts • Page 1 of 1
Scene Consistency
I've been testing Algodoo for a short while now trying to determine whether or not a scene can be replayed multiple times and yield the exact same results. So far while testing this I create a Plinko-esque board and draw in Plinko chips, start the scene and make an observation of the distribution of the chips. I reset the scene by "undo-ing" the "start scene" command and then start the scene again without moving the chips or the board. I start the scene and, again, make an observation of the distribution, which more often than not is completely different from the previous test.
What gives?
If I haven't changed anything at all, shouldn't the results be exactly the same every time?
tl;dr: Unchanged scenes don't replay exactly the same every time. I'm looking for a way to replay a scene over and over again and get the same results.
What gives?
If I haven't changed anything at all, shouldn't the results be exactly the same every time?
tl;dr: Unchanged scenes don't replay exactly the same every time. I'm looking for a way to replay a scene over and over again and get the same results.
- sprnk
- Posts: 2
- Joined: Fri Apr 17, 2015 1:51 am
Re: Scene Consistency
Intended. Possible step skip or collision force randomization.
Dream of Algodoo as game development engine...
-
Kilinich - [Best bug reporter 2010]
- Posts: 2098
- Joined: Mon Aug 31, 2009 8:27 pm
- Location: South Russia
Re: Scene Consistency
So there's no way to ensure consistency? Dang.
- sprnk
- Posts: 2
- Joined: Fri Apr 17, 2015 1:51 am
Re: Scene Consistency
Sometimes, replaying a similar marble race scenes yields different winner/eliminated marble.
When your computer has multiple cores but uses programs that only supports single core....
That's Algodoo!
That's Algodoo!
-
Anbang11 - Posts: 72
- Joined: Sat May 09, 2015 7:46 am
- Location: Earth.
-
pnvv - Posts: 670
- Joined: Tue Aug 26, 2014 11:46 pm
- Location: Disunited States of America
Re: Scene Consistency
...Maybe it's not random enough lel.
When your computer has multiple cores but uses programs that only supports single core....
That's Algodoo!
That's Algodoo!
-
Anbang11 - Posts: 72
- Joined: Sat May 09, 2015 7:46 am
- Location: Earth.
Re: Scene Consistency
Algodoo is a realtime physics simulator, thus certain corners and limits have to be met and steered clear of in order to ensure that the application is able to run in realtime. Computers have this magical unit called a FPU (Floating Point Unit) which is used to work with numbers such as 0.001, with the way an FPU works, you could try 0.001 + 0.001 and get out 0.001999847989; This is just a limit in CPUs, Algodoo takes measures such as rounding in order to limit the effect of such errors, however its impossible due to the way hardware works.
If you wanted an accurate simulation, you'd have to use a 'offline simulation program' which is a lot more accurate as it can re-calculate everything as needed to ensure accuracy, it doesn't matter if it takes 10 minutes to render a frame because of the number of objects it's processing, in a realtime application even 50ms for a frame is unacceptable.
If you wanted an accurate simulation, you'd have to use a 'offline simulation program' which is a lot more accurate as it can re-calculate everything as needed to ensure accuracy, it doesn't matter if it takes 10 minutes to render a frame because of the number of objects it's processing, in a realtime application even 50ms for a frame is unacceptable.
When asking for help, READ THE STICKIES!
- electronicboy
- Posts: 1694
- Joined: Mon Aug 31, 2009 6:18 pm
7 posts • Page 1 of 1
Who is online
Users browsing this forum: No registered users and 1 guest