Code center > Darwinbots Program Source Code
How to help with darwinbots 3 development?
Numsgil:
So thinking how to fix the case for skewed ellipses... I think you're going to need to re-evaluate the radius of the inner ellipse so that the thickness of the border always looks constant. This gamedev post looks relevant. Fixing it is going to involve getting neck deep in some computational geometry, so let me know if you think you can handle it or not (I don't know the solution off the top of my head, certainly).
Numsgil:
If that doesn't sound appetizing, I have another thought:
Set up something that allows us to make movies of the render buffer (where 1 frame of output is 1 frame of the movie. That way, slow running simulations could be watched in "real time"). The idea I have at present is to save a PNG after every frame and then combine them with FFmpeg (see clicky), but there's probably sexier ways to do this, too. If using FFmpeg, you can just set it up so that it saves the PNGs to a certain directory and names the PNGs correctly so FFmpeg can use them. Probably write a sample batch script that uses FFmpeg to combine the screens into a movie.
Botsareus:
How about we won't use ellipses and use this instead:
Uploaded with ImageShack.us
For one thing the collision physics on these will be alot simpler
Numsgil:
My current favorite is actually an arbitrary quad. Because it allows for things like a streamlined kite shape for single bots, a chevron (or arrowhead) for segmented worms, and something like a trapezoid for segemented circle bots (eg: something like this if each color were a different bot).
Note that the shapes for bots above is independent of the graphics, though. In the graphics system, I'm treating ellipses as simply a type of draw primitive.
Botsareus:
:blink: ok, then why are we messing with ellipsis?
I like the movie idea ( as long as it is optional) for a different reason:
Let's say I am running a simulation over night and I want to see what happend while I was sleeping.
All I have to do is go to View > View Playback. and It opens Movie player and shows me what happend.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version