onsdag 7 mars 2018

Minimal Requirements

Today most of the things that was considered the minimal requirements for the project has been implemented.

All fixes and implementations will be shown and discussed bellow. A quick summary of the new implementations and fixes would be:

  • Created a new scene, A room with a single exit door and a togglable obstacle.
  • Fixed the collision distance of the agents.
  • Changed the "uncompressible" collider of the agents from a box to a smaller sphere.
  • New script that stops the spawning of agents after a specified amount has spawned.
  • Finished implementations of the timer mentioned in previous post.
  • Added a generic movement script to the camera.

The new scene consists of a room with a single exit door, made to emulate the real scenarios presented to us in examples found in papers and videos. It looks like this:
















The 4 dots to the right are the spawn points, and the dot to the left is the exit point. As seen in the picture, there is a wall with a doorway in middle between the spawn points and the exit point.
In this scene an obstacle can be toggled which looks like this when activated:




















Before today's changes, all agents had a collision box acting like a "closest proximity" for other agents. With this update, all boxes have been changed to a sphere:





















(before to the left, after to the right).

What this change does is allowing the agents to get closer together, which is a better representation of people in a evacuation scenario:


















Also implemented is a new script that stops the spawning of agents after a specified amount has spawned, shown in the image directly above is an example of a test using 400 agents. This allows us to test using the same amount of people as in real life scenarios.

All spawn points have been set to spawn agents very quickly, to reach the specified amount necessary as fast as possible. The agents spawn in this scene from 4 nodes, which each spawns 100 agents a second, making the agent spawn frequency 400 agents/s



















The timer script shown in the previous update has been implemented completely as of this update. The timer stops by itself after all spawned agents reaches the exit point:



The final implementation today was a generic movement script that is applied to the camera object. This allows us to control the camera while the simulation is running if we want to focus on a specific detail or area without having to move the camera "manually".



Here's a final picture showing the agents moving around the obstacle:


Inga kommentarer:

Skicka en kommentar

Acceleration and Debug

Today and yesterday, I worked on some implementations regarding the movement behavior of the agents. Animation bug. Implemented accelera...