Home General Discussion

3D Flock Code Challenge

Considering it's running in Flash, I've developed some very fast 3D flock code.

Despite being art focused, I know polycount has a good handful of programmers, so if you're up for a challenge, see how fast you can get an epic 3D flock running at.

A few rules.

1) It must be browser based for accessibility and fairness. But you can use anything, Flash, Java, Unity etc, as long as it runs in the browser.

2) The flocking objects can be anything, however they must have rotation, so you can see the direction they're moving in etc. So no dots/ pixels. Because I'm using a software engine, doing everything on the CPU, I choose to render 3D lines for max performance.

3) Mininum resolution of 750 by 422.

4) Must be a proper cohesive flock, not just a bunch of objects randomly moving around.

5) Must have a moving camera, tracking the Flock.


Here is my demo - http://rumblesushi.com/turbo_flock.html

Runs at around 45fps on my humble Dual Core with 5600 objects.

So you can see how much juice rendering polys uses, this runs at the same framerate, but with only 1100 objects - http://rumblesushi.com/cube_flock.html

I look forward to seeing what you can do ;)

RumbleSushi

Replies

Sign In or Register to comment.