tisdag 24 maj 2016

Final result

We modified a previous scene which included 3D agents, with a different camera angle to make it more comparable with the video from the following site How do we walk together.
Trails after each agent was also added to make it easier to analyze.

Here is our video

Finaly we modified it even further by using theses agent in a kth setting.


Implementation at github: https://github.com/Sandsten/Kexjobb/tree/develop

måndag 23 maj 2016

Experimenting with trails

Here we experimented with trails. A trail is drawn after each agent so that it's possible to analyze where they have been. This was achieved with Unity's built in trail renderer.

In this video each agent is assigned a trail renderer and a random color. This will be used later on in our project.

onsdag 11 maj 2016

RVO with formations

Here we use formations together with RVO2 to create a potential crosswalk scene. Each group is assigned a random formation from a set of three and a random color. The goal for each group is to get to the oppisite side of the screen.

With 2D agents

With 3D Agents

lördag 23 april 2016

RVO implementation in Unity3D

Today we managed to implement RVO in Unity. We used the C# version of RVO2 found on this page http://gamma.cs.unc.edu/RVO2/

Here's a scene consisting of 100 agents in a circle, with the goal of getting to the opposite side. It's a classic test and it seems to work fine.


onsdag 20 april 2016

Group changing formation

Here is a video of 10 agents changing formations. First we can see the magnificent creation of a horizontal row formation, then the group quickly changes into a stable vertical line formation and finally they end up in a triangle formation without colliding.

onsdag 6 april 2016

Implementation of RVO integrated with Unity


Here's a video of our attempt to remake the implementation of RVO (made by Stephen J. Guy, et al. http://gamma.cs.unc.edu/RVO2/).

The movement of the agents are working and most of them seem to be moving towards the opposite side of the circle (as specified as the goal for the agent). However, the agents doesn't seem to be avoiding each other nor do they change direction during the simulation, which they should do at some point.

But the simulation does run at a reasonable fps, so the computations aren't too heavy on the CPU.

onsdag 23 mars 2016

Group formations prototype #1

Today we have experimented with some group formations. We have implemented an abstract base class for making the agents align in a specific formation. To use this class one has to inherit it and implement the method CreateTemplate(). In this method there needs to be specified how the relative positions to the leader of the group are placed. Also, the nr of agents has to be stated in the inspector and which of the agents is the leader.

Here is a demo of a group formation for walking on a line:


Here is a demo of a group walking in a triangle formation: