Flocking and Steering Behaviors. 15-462: Computer Graphics April 08, 2010

Similar documents
Behavioral Animation Simulation of Flocking Birds

Particles, Flocks, Herds, Schools

Topology Control and Mobility Strategy for UAV Ad-hoc Networks: A Survey

Animation. Persistence of vision: Visual closure:

11.1. Objectives. Component Form of a Vector. Component Form of a Vector. Component Form of a Vector. Vectors and the Geometry of Space

Massive Battle: Coordinated Movement of Autonomous Agents

The 3D rendering pipeline (our version for this class)

XI / PHYSICS FLUIDS IN MOTION 11/PA

Introduction to Computer Graphics Marie-Paule Cani & Estelle Duveau

Behavioral Animation Modeling in the Windows Environment

Overview. Swarms in nature. Fish, birds, ants, termites, Introduction to swarm intelligence principles Particle Swarm Optimization (PSO)

Solving Simultaneous Equations and Matrices

Today. Keyframing. Procedural Animation. Physically-Based Animation. Articulated Models. Computer Animation & Particle Systems

Path Tracking for a Miniature Robot

Physics 2A, Sec B00: Mechanics -- Winter 2011 Instructor: B. Grinstein Final Exam

On Quiz: Change #2 to 9/23

Virtual CRASH 3.0 Staging a Car Crash

Gauss Formulation of the gravitational forces

2.5 Physically-based Animation

Steering Behaviors For Autonomous Characters

Section 4: The Basics of Satellite Orbits

Fast and Robust Normal Estimation for Point Clouds with Sharp Features

THEORETICAL MECHANICS

At the skate park on the ramp

C0600 Technical Report. Computer Animation in Java Emergent Behaviour in Autonomous Agents

Physics Notes Class 11 CHAPTER 3 MOTION IN A STRAIGHT LINE

m i: is the mass of each particle

Vector Spaces; the Space R n

Notes on Elastic and Inelastic Collisions

Interactive Computer Graphics

From Self-Organising Mechanisms to Design Patterns

Providing science efficiently in Physics and Computer Science in Kyrgyzstan remote schools by using Simulation and Virtual Reality

Physics Section 3.2 Free Fall

Vector Treasure Hunt Teacher s Guide

Geometric Constraints

Three-dimensional figure showing the operation of the CRT. The dotted line shows the path traversed by an example electron.

Paul Deutsch. NDDOT Office of Project Development Conference November 9, 2010

METHODS FOR ESTABLISHING SAFE SPEEDS ON CURVES

Chapter 111. Texas Essential Knowledge and Skills for Mathematics. Subchapter B. Middle School

Magnetism. d. gives the direction of the force on a charge moving in a magnetic field. b. results in negative charges moving. clockwise.

Ground Rules. PC1221 Fundamentals of Physics I. Kinematics. Position. Lectures 3 and 4 Motion in One Dimension. Dr Tay Seng Chuan

Mechanics lecture 7 Moment of a force, torque, equilibrium of a body

Algorithms. Algorithms GEOMETRIC APPLICATIONS OF BSTS. 1d range search line segment intersection kd trees interval search trees rectangle intersection

Lecture PowerPoints. Chapter 7 Physics: Principles with Applications, 6 th edition Giancoli

Metrics on SO(3) and Inverse Kinematics

Blender Notes. Introduction to Digital Modelling and Animation in Design Blender Tutorial - week 9 The Game Engine

Physics 211 Lecture 4

Fluid Dynamics and the Navier-Stokes Equation

USING MS EXCEL FOR DATA ANALYSIS AND SIMULATION

C O M P U C O M P T U T E R G R A E R G R P A H I C P S Computer Animation Guoying Zhao 1 / 66 /

Lecture 07: Work and Kinetic Energy. Physics 2210 Fall Semester 2014

Halliday, Resnick & Walker Chapter 13. Gravitation. Physics 1A PHYS1121 Professor Michael Burton

Homework #10 Solutions

Basic Principles in Microfluidics

HW6 Solutions Notice numbers may change randomly in your assignments and you may have to recalculate solutions for your specific case.

PS-6.2 Explain the factors that determine potential and kinetic energy and the transformation of one to the other.

Magnetic Fields. I. Magnetic Field and Magnetic Field Lines

Name Class Period. F = G m 1 m 2 d 2. G =6.67 x Nm 2 /kg 2

Element Property Definition for the Space Satellite

Examples of magnetic field calculations and applications. 1 Example of a magnetic moment calculation

Multi-Modal Corridor Degree of Complexity: High Cost/Benefit: High

Stability Analysis of Small Satellite Formation Flying and Reconfiguration Missions in Deep Space

GRAVITATIONAL FIELDS PHYSICS 20 GRAVITATIONAL FORCES. Gravitational Fields (or Acceleration Due to Gravity) Symbol: Definition: Units:

15.3. Calculating centres of mass. Introduction. Prerequisites. Learning Outcomes. Learning Style

potential in the centre of the sphere with respect to infinity.

Q27.1 When a charged particle moves near a bar magnet, the magnetic force on the particle at a certain point depends

Working Model 2D Exercise Problem ME 114 Vehicle Design Dr. Jose Granda. Performed By Jeffrey H. Cho

DIRECT ORBITAL DYNAMICS: USING INDEPENDENT ORBITAL TERMS TO TREAT BODIES AS ORBITING EACH OTHER DIRECTLY WHILE IN MOTION

Educational Innovations

Lecture L22-2D Rigid Body Dynamics: Work and Energy

Chapter 2. Derivation of the Equations of Open Channel Flow. 2.1 General Considerations

Name Partners Date. Energy Diagrams I

W i f(x i ) x. i=1. f(x i ) x = i=1

VELOCITY, ACCELERATION, FORCE

Chapter 21. Magnetic Forces and Magnetic Fields

Animations in Creo 3.0

physics 112N magnetic fields and forces

Differential Relations for Fluid Flow. Acceleration field of a fluid. The differential equation of mass conservation

How To Understand The Physics Of A Charge Charge

Chapter 4 DEFENSIVE DRIVING

Exam 2 is at 7 pm tomorrow Conflict is at 5:15 pm in 151 Loomis

TEXTURE AND BUMP MAPPING

MILLERSVILLE UNIVERSITY. PHYS 231, Physics I with Calculus Fall Semester 2009

Newton s Laws. Physics 1425 lecture 6. Michael Fowler, UVa.

Traffic Accident Reconstruction

cs171 HW 1 - Solutions

Practice Final Math 122 Spring 12 Instructor: Jeff Lang

Section 6.4: Work. We illustrate with an example.

Fundamentals of Real-Time Camera Design. Mark Haigh-Hutchinson Senior Software Engineer Retro Studios, Inc.

G U I D E T O A P P L I E D O R B I T A L M E C H A N I C S F O R K E R B A L S P A C E P R O G R A M

What is a Horizontal Curve?

Robust NURBS Surface Fitting from Unorganized 3D Point Clouds for Infrastructure As-Built Modeling

Projectile Motion 1:Horizontally Launched Projectiles

Chapter 07 Test A. Name: Class: Date: Multiple Choice Identify the choice that best completes the statement or answers the question.

TWO-DIMENSIONAL TRANSFORMATION

Transcription:

Flocking and Steering Behaviors 15-462: Computer Graphics April 08, 2010

Outline Real Flocks Our Foreflocks Particle Systems to Modified Models Flocking Behaviors Separation Cohesion Alignment Additional Steering Behaviors Obstacle Avoidance Goal Seeking Forces Orientation Project 5 Demo

Real Flocks and Schools No upper bound on size 17 mile schools of herring with millions of fish Localized reasoning Collision avoidance Centering Protection from predators Social advantages Better search

Our Foreflocks Algorithmically-simulated flocking using a force field implementation (SIGGRAPH Electronic Theater1985) Flocks, Herds, and Schools: A Distributed Behavioral Model by Craig Reynolds (SIGGRAPH1987) Defined the popular Boids model for flocking. Steering Behaviors for Autonomous Characters Reynolds (GDC 1999) Summarized navigational and steering behaviors (including flocking).

Basic Boids The term boid is used to describe a flock member. Can boids be particles? To some extent, yes: A boid has an internal state (position, velocity, mass). Can be represented as a Newtonian particle in the particle system implementation previously described in lecture. Is this sufficient?

A Better Model Several differences between particles and boids: A boid is not a uniform point. Specifically, it has a complex geometric state and orientation. More complex behaviors Boid behavior is dependant on internal and external state. Internal state: particle parameters External state: knowledge about other flock members. Key idea: Local rules lead to compelling flock behavior. Boids only have a local (limited) knowledge of the flock. All rules take advantage of this local knowledge.

External State A boid also has some notion of external state. A neighborhood, or field of view, is generally used to describe the range of a boid s perception. Most behavioral rules apply based on conditions in the neighborhood. Note: for Project 5, you can approximate the neighborhood as a sphere to avoid complex geometry intersections.

Steering Rules Steering behaviors formulated as rules: Concerned primarily with five (for Project 5 at least) 3 original flocking rules Separation Cohesion Alignment 2 additional steering rules Obstacle Avoidance Goal-Seeking ( seek ) Represent these as dynamic forces in a modified particle system.

Separation Pushes boids apart to keep them from crashing into each other by maintaining distance from nearby flock mates. Each boid considers its distance to other flock mates in its neighborhood and applies a repulsive force in the opposite direction, scaled by the inverse of the distance. (blackboard math)

Cohesion Keeps boids together as a group. Each boid moves in the direction of the average position of its neighbors. Compute the direction to the average position of local flock mates and steer in that direction. (blackboard math)

Alignment Drives boids to head in the same direction with similar velocities (velocity matching). Calculate average velocity of flock mates in neighborhood and steer towards that velocity.

Obstacle Avoidance Allows the flock to avoid obstacles by steering away from approaching objects. Reynolds uses the method shown below: Assume a cylindrical line of sight Compute cylinder-sphere intersection and veer away from any objects in path. Note: for Project 5, this is extra credit.

Goal Seeking Drives the flock in the direction of a target/goal. Each boid determines the direction to the goal and then steers in that direction (Note: this is basically the same as cohesion).

Force Ordering Scheme Behaviors can be assigned priorities (in order of increasing priority): Alignment Cohesion Goal-seeking Separation Obstacle Avoidance Forces can be given priority (higher priority forces can cancel out lower priority ones). Note: for Project 5 combine these into a force accumulator and integrate! Simple (potentially cleverer ways of combining forces)

Orientation One last thing to consider is orientation. Since a boid has a (generally) non-uniform geometry, we want it to change orientation and smoothly display behaviors, such as banking. For banking, we want to adjust the object s roll (modify local x, y axes). To solve for the new up-vector (y-axis), we take a weighted sum of the resultant acceleration (due to centrifugal force and gravity) and the previous up-vector. (blackboard math) Note: for project 5, you will be required to handle banking.

Project 5 In summary, Project 5 is an interactive simulation of the boids flocking model. Requirements: Implement a modified particle system. Implement steering behaviors as dynamic forces. Implement banking. Make it interactive! Will be out later today!

Project 5 Demo Any questions?

Sources Flock Pictures: http://en.wikipedia.org/wiki/file:sort_sol_pdfnet.jpg http://farm1.static.flickr.com/216/492878471_52af7db598_o.jpg http://farm1.static.flickr.com/184/373513163_420bc6fe69_b.jpg Paper Resources: http://www.red3d.com/cwr/steer/gdc99/ http://www.red3d.com/cwr/boids/