Wednesday, January 13, 2010

Next step forward




After last few days of painstaking work and great fun we took a next step forward creating the underwater world.

First of all, as you can see in the pictures, we made our world looking more like a sea. To make water we used a skybox. In the future we plan to make surrounding more diverse by adding terrain, plants, coral reef and some light effects.

Flocking algorithm is almost done, but still needs small adjustments.

To simulate fish movements we introduced a little bit of physics. It is mainly the second of Newton’s laws (F=a*m) and a couple of other simple formulas (v=ds/dt; a=dv/dt). F is calculated by the flocking algorithm. To make fish movements more realistic we added friction. In the implementation we used the simplest integration method – Euler integration.

The other enhancement we made is TweakBars. TweakBars are windows (shown on the screens) which allow changing values and parameters of simulation in real time. Really handful, especially while adjusting algorithms.

-artSea team-

No comments:

Post a Comment