Darwinbots Forum

Code center => Suggestions => Topic started by: Drognan on September 26, 2010, 04:32:43 PM

Title: recording simulation
Post by: Drognan on September 26, 2010, 04:32:43 PM
Can program be programed to record, for example, every 10th cycle of simulation as photo, or something like that? Idea is to group those photos later in continous movie so we can see patterns, behavior, etc.. more easily. It's difficult to observe on 0,1 cycle/sec  :(
Title: Re: recording simulation
Post by: Ammeh on September 26, 2010, 06:21:25 PM
I actually really like the idea of this, though I'm not totally sure how it'd be implemented...

Saving individual pictures as frames would be bad (space wise) , but keeping a video file open while it's written to could result in huge memory usage and potentially corrupt video files (if DB crashes).
Title: Re: recording simulation
Post by: Numsgil on September 26, 2010, 07:07:42 PM
If the program itself recorded bot position, color, size, ties, etc. every n frames, into a database or file or whatever, then you could use that information to have the program itself playback a simulation.  Shouldn't amount to more than a KB per frame or so.

Alternatively you could save out PNGs of the simulation every frame.  Since it's all vector graphics based, a PNG should be pretty tiny.
Title: Re: recording simulation
Post by: Shasta on September 26, 2010, 11:26:20 PM
I've been meaning to do some internet population stats stuff, I'll look into this also.