44
Animating Idle Gaze Humanoid Agents in Social Game Environments Angelo Cafaro [email protected] Raffaele Gaito [email protected]

Animating Idle Gaze Humanoid Agents in Social Game Environments Angelo Cafaro [email protected] Raffaele Gaito [email protected]

Embed Size (px)

Citation preview

Page 1: Animating Idle Gaze Humanoid Agents in Social Game Environments Angelo Cafaro angelcaf@inwind.it Raffaele Gaito raffaele@cosmopoli.it

Animating Idle Gaze

Humanoid Agents in Social Game Environments

Angelo [email protected]

Raffaele [email protected]

Page 2: Animating Idle Gaze Humanoid Agents in Social Game Environments Angelo Cafaro angelcaf@inwind.it Raffaele Gaito raffaele@cosmopoli.it

Before Starting ... What?

Erasmus Project

When? 14th September 2008 – 18th March 2009

Where? Reykjavik, Iceland

2

Page 3: Animating Idle Gaze Humanoid Agents in Social Game Environments Angelo Cafaro angelcaf@inwind.it Raffaele Gaito raffaele@cosmopoli.it

...Before Starting Háskólinn í Reykjavík (Reykjavik University) CADIA:

Center for Analysis &Design of Intelligent Agents

Hannes Högni Vilhjálmsson CCP – EVE Online

3

Page 4: Animating Idle Gaze Humanoid Agents in Social Game Environments Angelo Cafaro angelcaf@inwind.it Raffaele Gaito raffaele@cosmopoli.it

4

Introduction

Page 5: Animating Idle Gaze Humanoid Agents in Social Game Environments Angelo Cafaro angelcaf@inwind.it Raffaele Gaito raffaele@cosmopoli.it

Scenario When players of Online Games can virtually

meet face-to-face, all the animated behaviours that normally support and exhibit social interaction become important.

5

From golem.de /Copyright CCP Games

Page 6: Animating Idle Gaze Humanoid Agents in Social Game Environments Angelo Cafaro angelcaf@inwind.it Raffaele Gaito raffaele@cosmopoli.it

6

Scenario An avatar is the graphical puppet that represents the player inside the game world;

In realistic looking virtual environments, like the upcoming space stations in CCP’s EVE Online, players cannot be tasked with micromanagement of avatar behaviour;

The avatars themselves have to exhibit a certain level of social intelligence. This is what we want to give them.

Page 7: Animating Idle Gaze Humanoid Agents in Social Game Environments Angelo Cafaro angelcaf@inwind.it Raffaele Gaito raffaele@cosmopoli.it

Scenario

In any social situation there’s a number of things that determine natural social behavior, including where a person is looking. We have divided these determiners into: The type of social situation

The personal state of participants.

Together, these determiners will impact the target, manner and timing of a gaze behavior.

7

Page 8: Animating Idle Gaze Humanoid Agents in Social Game Environments Angelo Cafaro angelcaf@inwind.it Raffaele Gaito raffaele@cosmopoli.it

8

GoalsTo model some of these factors in a virtual environment, in order to produce naturally looking gaze behavior for animated agents and avatars.

Everyone should be able to look at each other and react (or not react) to each other’s gaze.

Page 9: Animating Idle Gaze Humanoid Agents in Social Game Environments Angelo Cafaro angelcaf@inwind.it Raffaele Gaito raffaele@cosmopoli.it

9

Methodology

1. General model of gaze behavior based on existing research literature;

2. Statistical data based on particular determiners of gaze through targeted video experiments;

3. Reproduce the observed gaze behavior in avatars within the CADIA Populus virtual environment.

Page 10: Animating Idle Gaze Humanoid Agents in Social Game Environments Angelo Cafaro angelcaf@inwind.it Raffaele Gaito raffaele@cosmopoli.it

10

The Model

Page 11: Animating Idle Gaze Humanoid Agents in Social Game Environments Angelo Cafaro angelcaf@inwind.it Raffaele Gaito raffaele@cosmopoli.it

11

Model Description

Three main splits:

Personal States Factors;

Types of Social Situations;

Human Behaviour/Movements.

Page 12: Animating Idle Gaze Humanoid Agents in Social Game Environments Angelo Cafaro angelcaf@inwind.it Raffaele Gaito raffaele@cosmopoli.it

12

Personal State Factors

Some Personal States Factors:

• Emotion;• Mood;• Personality / Character;• Social Role;• Conversation Model / History;• Cognitive Activity; • And more…

Page 13: Animating Idle Gaze Humanoid Agents in Social Game Environments Angelo Cafaro angelcaf@inwind.it Raffaele Gaito raffaele@cosmopoli.it

13

Types of Social Situations

Some types of social situations:

• Idling “alone”;• Having a conversation;• Walking through the environment;• Greeting and farewell rituals• Talking performing a task;• Emergency situations;• And more…

Page 14: Animating Idle Gaze Humanoid Agents in Social Game Environments Angelo Cafaro angelcaf@inwind.it Raffaele Gaito raffaele@cosmopoli.it

14

Human Behaviour/Movements

Gaze can involve many body parts:

• Eyes;• Head;• Torso;• And more…

Page 15: Animating Idle Gaze Humanoid Agents in Social Game Environments Angelo Cafaro angelcaf@inwind.it Raffaele Gaito raffaele@cosmopoli.it

15

The Dynamics of Personal State

The following sketch visualizes the possible differences in duration for the personal states:

GreenGreen: the state typically lasts this long;

YellowYellow: the state could possibly lasts this long;

RedRed: the would never last this long.

Page 16: Animating Idle Gaze Humanoid Agents in Social Game Environments Angelo Cafaro angelcaf@inwind.it Raffaele Gaito raffaele@cosmopoli.it

16

Model ‘‘Reading Key’’

“a combination of a Social Situation and one or more Personal States, some of which can be regarded constant over the situation, influence people’s Behaviour, such as eye

movements, etc…”

Page 17: Animating Idle Gaze Humanoid Agents in Social Game Environments Angelo Cafaro angelcaf@inwind.it Raffaele Gaito raffaele@cosmopoli.it

17

‘‘Walking through the Model’’

Due to the high number of combinations between social situations and personal state factors we focused on two particular configurations, both very common:

1. Idle Gaze Standing:

Personal State Factor: cognitive activity;

Social Situation: idling “alone” (standing and waiting);

Movements: eyes, head and torso.

1. Idle Gaze Walking:

Personal State Factor: cognitive activity;

Social Situation: idling “alone” (walking down a street);

Movements: eyes, head and torso.

Page 18: Animating Idle Gaze Humanoid Agents in Social Game Environments Angelo Cafaro angelcaf@inwind.it Raffaele Gaito raffaele@cosmopoli.it

18

The Video Experiments

Page 19: Animating Idle Gaze Humanoid Agents in Social Game Environments Angelo Cafaro angelcaf@inwind.it Raffaele Gaito raffaele@cosmopoli.it

19

Experiments Description

To test the soundness and validity of our Gaze Model we recorded 3 kind of video experiments:

1. Idle Gaze Standing: behaviour/movements of people standing idle and alone in public places and waiting for something (bus stops, etc…);

2. Idle Gaze Walking: behaviour/movements of people walking alone on a main street with shops onto the left (or right or both) side;

3. Affected Gaze: behaviour/movements of people affected by the gaze of an observer for a fixed time. People in public places Walking Alone or with other people.

Page 20: Animating Idle Gaze Humanoid Agents in Social Game Environments Angelo Cafaro angelcaf@inwind.it Raffaele Gaito raffaele@cosmopoli.it

20

Experiments Description – N° 1

Page 21: Animating Idle Gaze Humanoid Agents in Social Game Environments Angelo Cafaro angelcaf@inwind.it Raffaele Gaito raffaele@cosmopoli.it

21

Experiment N° 1 - Analysis

Page 22: Animating Idle Gaze Humanoid Agents in Social Game Environments Angelo Cafaro angelcaf@inwind.it Raffaele Gaito raffaele@cosmopoli.it

22

Experiment N° 1 – Case 3

Page 23: Animating Idle Gaze Humanoid Agents in Social Game Environments Angelo Cafaro angelcaf@inwind.it Raffaele Gaito raffaele@cosmopoli.it

23

Experiment N° 1 - ResultsAs results of the video analysis we can extract 3 main patterns:

1. Subjects looking to various directions for short durations;

2. Subjects looking to various directions for long durations;3. Subjects looking around.

Page 24: Animating Idle Gaze Humanoid Agents in Social Game Environments Angelo Cafaro angelcaf@inwind.it Raffaele Gaito raffaele@cosmopoli.it

24

Experiment N° 1 - Statistics

Page 25: Animating Idle Gaze Humanoid Agents in Social Game Environments Angelo Cafaro angelcaf@inwind.it Raffaele Gaito raffaele@cosmopoli.it

25

Experiments Description – N° 2

Page 26: Animating Idle Gaze Humanoid Agents in Social Game Environments Angelo Cafaro angelcaf@inwind.it Raffaele Gaito raffaele@cosmopoli.it

26

Experiment N° 2 - Analysis

Page 27: Animating Idle Gaze Humanoid Agents in Social Game Environments Angelo Cafaro angelcaf@inwind.it Raffaele Gaito raffaele@cosmopoli.it

27

Experiment N° 2 – Case 9

Page 28: Animating Idle Gaze Humanoid Agents in Social Game Environments Angelo Cafaro angelcaf@inwind.it Raffaele Gaito raffaele@cosmopoli.it

28

Experiment N° 2 - ResultsAs results of the video analysis we can extract 4 main patterns:

1. Subjects preferred direction for gaze-aversion is down to the Ground;

2. Subjects close their eyelids when a movement of the head (or eyes) is coming;

3. In many part of the walking-line during the experiment the subjects look to the Ground;

4. They approximately never look up, up-left or up-right.

Page 29: Animating Idle Gaze Humanoid Agents in Social Game Environments Angelo Cafaro angelcaf@inwind.it Raffaele Gaito raffaele@cosmopoli.it

29

Experiment N° 2 – Statistics (1)

Page 30: Animating Idle Gaze Humanoid Agents in Social Game Environments Angelo Cafaro angelcaf@inwind.it Raffaele Gaito raffaele@cosmopoli.it

30

Experiment N° 2 – Statistics (2)

PeopleCars

Page 31: Animating Idle Gaze Humanoid Agents in Social Game Environments Angelo Cafaro angelcaf@inwind.it Raffaele Gaito raffaele@cosmopoli.it

31

Gaze-Experiments Player Demo

Page 32: Animating Idle Gaze Humanoid Agents in Social Game Environments Angelo Cafaro angelcaf@inwind.it Raffaele Gaito raffaele@cosmopoli.it

32

Gaze-Experiment Player (Demo)

Recreating 2 scenes:

Hlemmur for experiment n° 1;

Laugavegur for experiment n° 2;

2 Cases choosed amoung all the video experiments;

Simple comparison between video and the virtual environment; Behaviour preset (locomotion, head and eyes).

Page 33: Animating Idle Gaze Humanoid Agents in Social Game Environments Angelo Cafaro angelcaf@inwind.it Raffaele Gaito raffaele@cosmopoli.it

33

CADIAPopulus CADIA Populus is a social simulation environment; Powered by a reactive framework: (Claudio Pedica, Hannes Högni Vilhjálmsson: Social Perception and Steering for Online Avatars. IVA 2008: 104-116); We used CADIAPopuls in order to simulate our gaze behaviours.

Page 34: Animating Idle Gaze Humanoid Agents in Social Game Environments Angelo Cafaro angelcaf@inwind.it Raffaele Gaito raffaele@cosmopoli.it

34

Autonomous Generated Gaze Demo

Page 35: Animating Idle Gaze Humanoid Agents in Social Game Environments Angelo Cafaro angelcaf@inwind.it Raffaele Gaito raffaele@cosmopoli.it

35

General Process

Page 36: Animating Idle Gaze Humanoid Agents in Social Game Environments Angelo Cafaro angelcaf@inwind.it Raffaele Gaito raffaele@cosmopoli.it

36

Potential Targets Selection1. Area 1

2. Area 2

3. Area 3

Page 37: Animating Idle Gaze Humanoid Agents in Social Game Environments Angelo Cafaro angelcaf@inwind.it Raffaele Gaito raffaele@cosmopoli.it

37

Decision Process (Exp. 1) 5 proxemics areas:

Choose Probability

Min. Duration

Max. Duration

Look Probability

2 target types:

Objects

Persons

Page 38: Animating Idle Gaze Humanoid Agents in Social Game Environments Angelo Cafaro angelcaf@inwind.it Raffaele Gaito raffaele@cosmopoli.it

38

Decision Process (Exp. 2)5 categories of targets:

Same Gender Opposite Gender

(Avatars)

ShopsCars

Other

Moving Fixed

Choose Probability

Min. Duration

Max. Duration

Look Probability

Page 39: Animating Idle Gaze Humanoid Agents in Social Game Environments Angelo Cafaro angelcaf@inwind.it Raffaele Gaito raffaele@cosmopoli.it

39

Decision Process (Common Features - 1)

Default Behaviour:

No potential targets;

Decision Process Result Don’t look;

Different default directions (standing or walking);

Use of short term memory;

Changes in the potential targets;

Page 40: Animating Idle Gaze Humanoid Agents in Social Game Environments Angelo Cafaro angelcaf@inwind.it Raffaele Gaito raffaele@cosmopoli.it

40

Decision Process (Common Features - 2)

Avatar Profiles:

Gender;

Extrovert;

And so on…

Avatar Preferences:

Values between 0.0 and 1.0;

Same and Opposite Gender;

Cars;

Shops;

Gaze aversion:

Introvert avatars avert gaze in the mutual-gaze case.

Page 41: Animating Idle Gaze Humanoid Agents in Social Game Environments Angelo Cafaro angelcaf@inwind.it Raffaele Gaito raffaele@cosmopoli.it

41

Conclusions

Page 42: Animating Idle Gaze Humanoid Agents in Social Game Environments Angelo Cafaro angelcaf@inwind.it Raffaele Gaito raffaele@cosmopoli.it

42

ConclusionsAnalysis results of the experiments data revealed some confirmations in the preexisting licterature regarding our discovered patterns;

Autonomous Gaze Generation implementation is completely coherent with our gaze model;

An initial subjective evaluation tells us that passing from the Gaze Experiment Player to the Autonomous Generated Gaze implementation leads us to a more realistic result than we expected.

Page 43: Animating Idle Gaze Humanoid Agents in Social Game Environments Angelo Cafaro angelcaf@inwind.it Raffaele Gaito raffaele@cosmopoli.it

43

Future Works & Drawbacks

Control the speed of head movements; Eyelids in the avatar’s head model; No potential target case: another kind of experiment; More detailed avatar profiles and features implementation; Experiment n° 3 expansion;

Limited head vertical orientation in the avatar’s model; Autonomous Gaze Generation strictly dependent on the scene; Perception not based on scene occlusion.

Page 44: Animating Idle Gaze Humanoid Agents in Social Game Environments Angelo Cafaro angelcaf@inwind.it Raffaele Gaito raffaele@cosmopoli.it

44

Questions?