An Investigation of Workability Experiment for Crowd in 3600 Panoramic View on Mobile Platform

Abstract

In the computer graphics industry, there is a great demand for cost and time effective simulation and rendering while meeting an acceptable level of realism. Hardware based simulation and rendering has been taken to another degree of low level of details in environment modelling with grandeur of peoples. This paper presents an investigation to find out the feasibility of deploying crowd in 3600 panoramic view using the mobile platform as the case study. First, the crowd are modelled through some modifications to the Newtonian Laws, inclusion of proxy agents, speed control and turning. Second, workability tests experiments are carried out concerning the preferred parameters for each agent, improvement on random movements of the crowd and dynamicity, with the capability of collision avoidance. Finally, this investigation is discussed and has proposed some solutions in handling crowd in 3600 panoramic view on mobile platform.

Keywords: Crowd simulationpanoramic viewdigital heritagemobile platform

Introduction to Motion Variety

Crowd are commonly modelled and simulated in environment of a virtual city, stadium, theatre, museum, airport, religious ceremonies and others. However, it is not normally available in panoramic views. People or crowd in panoramic views is usually static since they are captured together with the environment and the crowd is not animated. In order to strengthen the contextual information in the 3600 panoramic view, dynamic crowd modelling is vital to augment the user’s perception and interpretation of the present life in the case study of digital cultural heritage sites on mobile platform. In this paper, a force-driven crowd model based on Newtonian Laws is investigated specifically for 3600 panoramic view in order to bring another aspect of present life into digital cultural heritage on mobile platform and it is evaluated later on through experiments and scenario-based visual observations. Through the investigations, improvement of movement of crowd in virtual heritage within an environment of 3600 panoramic view is proposed on mobile platform model in three folds:

  • MOVEMENT {None, Go to random places}

  • ANIMATION {Stop, Walk, Turn, Look around}

  • INTERACTION {Detect, Avoid}

Preliminary Study

All animation, movement and interaction of crowd are dependent on certain specific rules. On one hand, when determining the rules to motivate movements, social and psychological aspects are considered. Interactions between agents can be more interesting when the complexity of the behaviours is increased (Cherif, & Chighoub, 2010; Sakellariou, 2012; Ondrej et al, 2010; Patil et al, 2011). In modelling crowd in 3600 panoramic view on mobile platform, the application of rule-based (Bogdanovych et al, 2012; Rodriguez, 2010; Takahashi et al, 2009), particle based (Tasse et al, 2009) and social-force based models (Guy et al, 2011) have produced different types of movements over years. Some agent can walk faster while some agents walk slower. The agent has a force and will walk and stop when there is no more motivating force. The force can be renewed and the agent will continue walking again. On the other hand, the animation process will show a clear interaction between crowds that they are able to move and reach their heterogeneous goals in as random as possible manner. Therefore, there is a need to propose a crowd model in which the movements of the crowd can be incorporated into the collision detection and avoidance interactions within the 3600 panoramic view. Besides, various scenarios for instance in digital cultural heritage sites can be simulated by applying randomness to the models for active crowd management in 3600 panoramic view.

Methodology

This section presents a three phases methodology that begins with the preliminary study and followed by the implementation, and workability test and discussions as shown in Figure 1 .

Figure 1: Fig. 1. A methodology phases for proposed crowd in 3600 panoramic view.
Fig. 1. A methodology phases for proposed
      crowd in 3600 panoramic view.
See Full Size >

In the first phase, background of the agent movements and generations are studied in detail. There were three Newtonian Laws that are strictly included and later used in the implementation phase. Some modifications were made to the Newtonian Laws to meet the goal of modelling the crowd in panoramic view on mobile platform. The modifications are as follows:

  • 1st Law: An object at rest will stay at rest; an object in motion will stay in motion at constant velocity, unless acted upon by an unbalanced force. Modification made is that assuming that there is a force of friction (when Force comes to the end), some agents will stop for a while and then continue walking only when other agents around him “force” him not to stop and continue walking otherwise if more than an arbitrary number of agents pass by the other agent, then the agent will have to continue walking else, the agent is supposed to be stationary when the force is finished.

  • 2nd Law: F (Newton) = m(kg) * a (ms-2) where F is the force, m is the mass of the object and a is the acceleration. In this case, each and every agent has their own body mass where some are fat and some are thin. The mass will be used to calculate the BMI and the BMI is used to get the value of acceleration, and finally the F is obtained. Since the force will eventually be force of fiction and the agent will stop for a while, a counter for F depreciating is included. The BMI is standard for the child, adult, old folks and regardless if is a male or female.

  • 3rd Law: For every action, there is an equal and opposite reaction. In a condition of realistic avoidance, if two agents happen to knock each other, they will break away for a while before continue walking again. A ‘NSTimer’ calculates three seconds before the agents are allowed to walk again.

In the implementation phase, the collision detection and avoidance, speed control and maximum turning in 3600 panoramic view are concerned. In the final phase, simulation preferred mean of the crowd characteristics model is discussed, crowd implementation with and without panoramic azimuthal zones are compared and modelling of dynamic crowd in a series of non-equidistant frames from the azimuthal zones is tested.

Implementation

Collision Detection and Avoidance

An important part of the system is there are areas of accessibility for walking around based on sub-divided tiles, coordinate and path planning. Collision avoidance allows an agent to be able to detect and avoid another character and the structured environment to reach a simple destination and then to other new sub-goals. Determination of directions is based on Theorem Pythagoras. The key idea of collision avoidance is that there is no two overlapping particle through a proxy agent inspired by [4]. However, the main difference of our proposed work is that the proxy is overlapping with the particle so that the collision avoidance does not form a big gap between two or more particles as illustrated in Figure 2 .

In this case, each virtual agent (AV) has a centre point (CP) whose radius are half the radius of the proxy agent (AP) and the trajectories (TJ) to eight different interest points (IP) as illustrated in Figure 3 and the equation is as follows:

DC = DO + (IP – rand () % 0 +7) * t (1)

Where DC is the Change of Direction, DOis the Original Direction, IP is the Interest Point and t is the delta time.

Figure 2: Fig. 2. Comparison of (a) How proxy is applied (b) Proxy in our proposed method
Fig. 2. Comparison of (a) How proxy is
       applied (b) Proxy in our proposed method
See Full Size >
Figure 3: Fig. 3. Illustrations of the parameters applied in a proxy agent.
Fig. 3. Illustrations of the parameters
       applied in a proxy agent.
See Full Size >

Thus, the collision avoidance can be more sensitive to the other agents in the neighbourhood area and yielding a result of smoother maneuverer. This can be observed through the comparison of the simulation with or without the aid of the collision avoidance as shown in Figure 4 .

Figure 4: Fig. 4. Result of simulation of virtual agents (a) Without collision avoidance and (b) With collision avoidance with the aid of proxy agent.
Fig. 4. Result of simulation of virtual
       agents (a) Without collision avoidance and (b) With collision avoidance with the aid of proxy
       agent.
See Full Size >

Speed Control in 3600 Panoramic View

A hundred particles were initiated from the left and another 100 particles were initiated from the right horizontally. Both of these groups are supposed to travel to the opposite side. When there is no speed control, the virtual agents will move from right to left and vice versa in a constant speed and the particles do not look believable. Later, each of the particles is assigned with different acceleration rate and their speed will slow down and deteriorate to zero where the agents stop before the speed is recovered again. Figure 5 shows a simulation of agent walking from left to right until they lose their speed and eventually stop before they regain the original speed again.

Figure 5: Fig. 5. Simulation of speed control of the virtual agents.
Fig. 5. Simulation of speed control of
       the virtual agents.
See Full Size >

Maximum Turning

The rotation is implemented in clockwise and the angle of rotation is randomly generated and kept in a database. When the virtual agents detected the end of the edges, it will perform a flexible rotation based on the angle assigned to each agent. The maximum rotation is ±π as depicted in Figure 6 .

Figure 6: Fig. 6. Simulation result per ten second with four virtual agents with the direction of movement (arrows) and the changes of direction (encircled) motivated by the ±π rotation.
Fig. 6. Simulation result per ten second
       with four virtual agents with the direction of movement (arrows) and the changes of direction
       (encircled) motivated by the ±π rotation.
See Full Size >

Workability Tests and Discussions

For performance testing, three experiments are conducted to validate the system. In order to demonstrate the flexibility and usefulness of the proposed approach, crowd motions are created and tested in three different manners. For the first experiment, there were 200 agents where the Identity (ID) are initialized as 001-200 are then randomly assigned with different parameters within the predetermined range and the preferred mean data of each parameter are recorded and applied into all the 200 virtual agents. The result obtained from simulation of 99 rounds is as shown in Table 1 . The 100th round is the obsolete stage where the panoramic view cannot be scrolled.

Table 1 -
See Full Size >

For the second experiment, 200 virtual agents are modelled with particles of different colours in order to validate the proposed dynamic crowd in 360° panoramic view. Based on the visual observation, each particle is able to model their individualised behaviours while avoiding each other without any collisions as shown in Figure 7 (a). The particles are able to move randomly under the proxy-based collision avoidance algorithm. As 360° panoramic view only concentrates on horizontal scrolling, unlike the 720° panoramic view, the agents only avoid each other within the horizontal neighbourhood boundaries as shown in Figure 7 (b) and Figure 7 (c) with different panoramic azimuthal zones.

Figure 7: Fig. 7. Modelling of 200 virtual agents is represented by paticles that move randomly under proxy-based collision avoidance algorithm in 3600 panoramic view. (a) Without panoramic azimuthal zones, (b) and (c) With different panoramic azimuthal zones.
Fig. 7. Modelling of 200 virtual agents is
      represented by paticles that move randomly under proxy-based collision avoidance algorithm in
       3600 panoramic view. (a) Without panoramic azimuthal zones, (b) and (c) With
      different panoramic azimuthal zones.
See Full Size >

In the third experiment, the circles are then replaced with actual virtual agents and animated using the sprite sheet and accumulation buffer. The crowd behaviour was evaluated by using a set of eight experiments as shown in Figure 8 . The universe consisted of six agents that had random initial positions and velocities. The 360° panoramic view was scrolled and a series of dynamic animation of the crowd is captured based on various azimuthal zones within the 360° panoramic view. The initial distribution captured in the first frame at 3700 pixels and the second frame at 1100 pixels respectively and both have no display of crowd. The third frames were captured at 2000 pixels show the presence of crowd moving from the left to the right within the 360° panoramic view. At the fourth, a fifth and sixth frame, the presence of crowd was captured at 2050 pixels, 2300 pixels and 2460 pixels. These three frames show the collision avoidance of the crowd coming from the opposite sides. The crowd seemed to be avoiding each other very well without any overlapping motions. The seventh and final frames were captured at 2700 pixels and 3860 pixels respectively. Two agents were captured appearing at the seventh frame while the last frame shows the crowd leaving to the next azimuthal zone within the 360° panoramic view. Based on the result after 99 simulations of the crowd in panoramic view, it was noticed that there were no collisions by merging of the crowd and the presence of crowd occurred randomly throughout the entire simulation. In many cases, the crowd regains the speed when the sliding frame is not scrolled. In addition, the decrease in speed is when the sliding frames are scrolled.

Conclusion and Future Work

Based on the experiments, there are two main modifications that are successfully done to the adoption of simulating crowd in mobile platform through visual observations and system validations: (1) The bound radius of the containment force is no longer in an open area but within the 360° panoramic view and thus, the optimum boundary set in this case is a hundred frames of five azimuthal zones each for the horizontal boundary and half of the size of mobile frame for the vertical boundary, (2) As the scrolling of 360° panoramic view distorts the movement of crowd modelling, one solution is to truncate the speed of the particles when the panoramic view is scrolled. Therefore, it is possible to model dynamic crowd in 360° panoramic view especially on mobile platform. One limitation that should be addressed here is that the proportionality of the virtual agent in the dimension of z-axis is not considered within the 360° panoramic view at this point.

Figure 8: Fig. 8. A series of non-equidistant frames from the azimuthal zones used for the modelling of dynamic crowd. The Panoramic view is 2D images and the crowd was made like 3D to aid the dynamicity of the movement and this their apparent overlapping does not necessary imply a collision.
Fig. 8. A series of non-equidistant frames
      from the azimuthal zones used for the modelling of dynamic crowd. The Panoramic view is 2D
      images and the crowd was made like 3D to aid the dynamicity of the movement and this their
      apparent overlapping does not necessary imply a collision.
See Full Size >

Acknowledgements

This work presented is funded by Dana Pembudayaan Penyelidikan (RAGS/1/2015/ICT04/UPSI/02/1) under the research code of 2015-0172-109072.

References

  1. Bogdanovych, A. & Ijaz, K. & Simoff, S. (2012). The city of uruk: teaching ancient history in a virtual world.Proceedings of the 12th international conference on Intelligent Virtual Agents, IVA’12, Springer-Verlag, Berlin, Heidelberg, 28–35.
  2. Cherif, F. & Chighoub, R. (2010). Crowd simulation influenced by agent’s socio-psychological state. Journal of Computing 2: 48–54.
  3. Tasse, F. P. & Glass, K. R. & Bangay, S. (2009) Simulating crowd phenomena in African markets. Afrigraph, 47–52.
  4. Yeh, H. , Curtis, S., Patil, S., Berg, J., Van Den, Manocha, D. & Lin, M. (2008). Composite agents. Proceedings of the ACM SIGGRAPH/Eurographics Symposium on Computer Animation, SCA ’08, Eurographics Association, 39–47.
  5. Sakellariou, I. (2012). Agent based modelling and simulation using state machines. SIMULTECH, 270–279.
  6. Ondrej, J. & Pettré, J. & Olivier,A.-H.& Donikian,S. (2010). A synthetic-vision based steering approach for crowd simulation, ACM Trans. Graph. 29(4), 123:1–123:9.
  7. Guy,S. J. & Kim, S. & Lin,M. C.& Manocha,D. (2011). Simulating heterogeneous crowd behaviours using personality trait theory. Proceedings of the 2011 ACM SIGGRAPH/Eurographics Symposium on Computer Animation, SCA ’11, 43–52.
  8. Patil, S. & Berg, J. P. van den& Curtis,S. & Lin,M. C., & Manocha,D. (2011). Directing crowd simulations using navigation fields. IEEE Trans. Vis. Comput Graph.17 (2): 244–254.
  9. Rodriguez, S. & Denny, J.& Zourntos,T. & Amato, N. M. (2010) Toward simulating realistic pursuit-evasion using a roadmap-based approach.3rd International Conference on Motion in Games, 82–93.
  10. Takahashi, S. & Yoshida, K. & Kwon, T. & Lee, K. H.& Lee, J. & Shin,S. Y. (2009). Spectral-based group formation control. Compute Graph. Forum, 28(2), 639–648.

Copyright information

Creative Commons License
This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.

About this article

Publication Date

22 August 2016

eBook ISBN

978-1-80296-013-6

Publisher

Future Academy

Volume

14

Print ISBN (optional)

-

Edition Number

1st Edition

Pages

1-883

Subjects

Sociology, work, labour, organizational theory, organizational behaviour, social impact, environmental issues

Cite this article as:

Lim, C. K., & Tan, K. L. (2016). An Investigation of Workability Experiment for Crowd in 3600 Panoramic View on Mobile Platform. In B. Mohamad (Ed.), Challenge of Ensuring Research Rigor in Soft Sciences, vol 14. European Proceedings of Social and Behavioural Sciences (pp. 96-103). Future Academy. https://doi.org/10.15405/epsbs.2016.08.15