Autonomous Characters - PowerPoint PPT Presentation

About This Presentation
Title:

Autonomous Characters

Description:

Still lots of things to come, but we'll be focusing ... Burke/Tomlinson Any questions about the system? Go Over Readings. Stein any code questions? ... – PowerPoint PPT presentation

Number of Views:12
Avg rating:3.0/5.0
Slides: 33
Provided by: ics5
Learn more at: https://ics.uci.edu
Category:

less

Transcript and Presenter's Notes

Title: Autonomous Characters


1
Autonomous Characters
  • Professor Bill Tomlinson
  • Fall 2003
  • Tuesdays 3-550pm
  • HIB 335
  • Meeting 3

2
State of the Union
  • Weve covered the two big topics that well be
    addressing this semester.
  • Still lots of things to come, but well be
    focusing throughout on the link between computer
    code and animation.

3
Go Over Assignments
  • Any troubles getting things to compile?
  • Other questions?

4
Go Over Readings
  • Lasseter Other approaches to animation?

5
Go Over Readings
  • Picard/Wilson Emotional modeling. Too
    simplistic?

6
Go Over Readings
  • Burke/Tomlinson Any questions about the system?

7
Go Over Readings
  • Stein any code questions?

8
Action Selection Why?
  • Make a list of reasons that animate entities need
    to choose different actions

9
Behavior
  • Connection between stimulus and response

10
Learning
  • Connection between an action and consequences

11
Behavioral change over time (over different time
scales)
  • Action
  • Learning
  • Development
  • Learning

12
Emotional change over time
  • Emotion
  • Mood
  • Personality

13
The Craft of Acting
  • Making decisions appear meaningful.
  • Connecting actions and emotions.

14
Drama
  • Action selection
  • Showcasing that action selection staging,
    lighting, responses from other actors, etc.

15
Action Selection How?
  • Once we decide what we want it to do, how do we
    code that?
  • Finite State Machine Make a graph
  • Behavior-Based AI layered behaviors Make a
    tree

16
Action Selection An Example
  • Vec3 myPos new Vec3()
  • this.getPosition(myPos)
  • if (myPos.mag() lt20)
  • SoundSystem.play(
  • "w/sound/beep.wav")

17
Perception
  • What can people sense?

18
Perception
  • What can the characters sense?

19
Perceivable things
  • Come up with a list of environmental things that
    might provoke emotional change.

20
Some other things youll need to know about
21
Conditionals
  • if (something) do this

22
Vectors
  • Vec3, in particular
  • Similar to a point, but more active.
  • Represents what you have to do to one point in
    order to change it into another point.
  • Vec3.add(a, b, c)
  • Vec3.sub(a, b, c)
  • thisVec3.mag()

23
Navigation
  • navSys.goTo(camPos)
  • Will walk emotively
  • sets action when .goTo is called, so be careful
    not to replace it with some other action later.

24
Play a sound
  • SoundSystem.play("w/sound/beep.wav")

25
Rules on copying code
  • Cut and paste reuse is fine with me, as long as
    you understand what the code is doing.
  • Please put comments in your code to show me that
    you understand.
  • Black-box behavior

26
Some code examplesGet position of camera
  • public Vec3 camPos new Vec3()
  • camPos.setValue(CameraSystem.getPosition())
  • System.out.println(CamPos is camPos)

27
Some code examplesGet position of other
character
  • Vec3 friendsPos new Vec3()
  • research.World.getWorld().getCreature(
  • "PersonACE_01 number 0").getPosition(friendsPos)
  • System.out.println("PersonACE_01 number 0's pos
    " friendsPos)

28
Some code examplesGet distance from me to other
character
  • Vec3 distanceBetweenUsVec new Vec3()
  • Vec3.sub(myPos, friendsPos, distanceBetweenUsVec)
  • double distanceBetweenUsDouble
    distanceBetweenUsVec.mag()
  • System.out.println(Distance between us is
    distanceBetweenUsDouble)

29
Assignment 3
  • Program character to have an emotional response
    to its environment. Attach emotional change to
    some perceivable phenomenon.

30
Emotional assignment
  • happiness .5
  • OR
  • this.getPosition(myPos)
  • happiness myPos.x()
  • OR

31
Assignment 3
  • Dont forget comments, println.

32
Readings for Oct 21
  • Braitenberg (handout)
  • Acting - Cohen (handout)
  • Vectorpark (link)
  • Stein (Ch 4)
Write a Comment
User Comments (0)
About PowerShow.com