1 CS 599 Physically Based Modeling for Interactive Simulation and Games Case Study: Havok Engine for Game Physics Jernej Barbic University of Southern.

Slides:



Advertisements
Similar presentations
Multi-core/Cell Game Engine Design
Advertisements

 Welke overwegingen komen daar bij kijken?  Multiplatform?  Install base -> potential user base.
The robot structure model design 2 Curse 5. Modeling: the robot AcTrMStTk V(t) T(t)  (t) q(t) x(t)
Introduction to 3DS Max for Game 1 Matakuliah : T0952 – Multimedia 3D Modelling and Animation Tahun: 2009.
2.1. C OLLISION D ETECTION Overview. Collision detection is used within many types of application, e.g. from robotics, through engineering simulations,
CS4455 Physics Engines Maribeth Gandy Jeff Wilson Clint Doriot
Disclaimer Viewer Discretion Is Advised. Game Immersion The future of physics processing hardware.
1 7M836 Animation & Rendering Animation Jakob Beetz Joran Jessurun
Havok Physics May Ang CS 164. Overview Developed by Havok Also make several other development tools Version 1.0 SDK released in 2000 Currently on Version.
Adapted from: CULLIDE: Interactive Collision Detection Between Complex Models in Large Environments using Graphics Hardware Naga K. Govindaraju, Stephane.
Real-World GPGPU Mark Harris NVIDIA Developer Technology.
Precomputed Solving for j Equality Constraint.
VRML for Kinematic and Physical Modeling and Simulations Benjamin Pugliese Mahesh Saptharishi.
Haptic Cloth Rendering 6th Dutch-Belgian Haptics Meeting TUDelft, 21 st June 2006 Lode Vanacken Expertise centre for Digital Media (EDM) Hasselt University.
By Steven Taylor.  Basically a video game engine is a software system designed for the creation and development of video games.  There are many game.
AGD: 5. Game Arch.1 Objective o to discuss some of the main game architecture elements, rendering, and the game loop Animation and Games Development.
Animation CMSC 435/634. Keyframe Animation From hand drawn animation – Lead animator draws poses at key frames – Inbetweener draws frames between keys.
CS 4730 Physical Simulation CS 4730 – Computer Game Design.
An Introduction to Physics Engines Michael Sundqivst TV10S1M3.
1 Game Physics. 2 Introduction to Game Physics Traditional game physics Traditional game physics Particle system Particle system Rigid body dynamics Rigid.
UFCEKU-20-3Web Games Programming Unity 3D Physics Colliders and Object Collisions.
Lecture VII Rigid Body Dynamics CS274: Computer Animation and Simulation.
FastLSM: Fast Lattice Shape Matching for Robust Real-Time Deformation Alec RiversDoug James Cornell University.
CS 638, Fall 2001 CS 638: Computer Games Technology Fall 2001.
DYNAMICS Part I Physics Engine By Willis (The Magnificent) Louie Fei (The Coyote) Liao.
Havok. ©Copyright 2006 Havok.com (or its licensors). All Rights Reserved. HavokFX Next Gen Physics on ATI GPUs Andrew Bowell – Senior Engineer Peter Kipfer.
Computer Graphics Graphics Hardware
3D COMPUTER GRAPHICS IMD Chapter 1: 3D Computer Graphics Chapter 1: 1 Lecturer: Norhayati Mohd Amin.
CSE 381 – Advanced Game Programming Quickhull and GJK.
Au’15 select topics By: Matt Boggus. List o’ stuff Game genres Party minigames Arena first person shooter 3D platformer/puzzler Horror Game technology.
GPU Computing April GPU Outpacing CPU in Raw Processing GPU NVIDIA GTX cores 1.04 TFLOPS CPU GPU CUDA Architecture Introduced DP HW Introduced.
Computer Game Design and Development Mathematics, Collision, and Physics Havok Destruction.
Animation CMSC 435/634 By Prof. Marc Olano. Keyframe Animation From hand drawn animation – Lead animator draws poses at key frames – Inbetweener draws.
A Computationally Efficient Framework for Modeling Soft Body Impact Sarah F. Frisken and Ronald N. Perry Mitsubishi Electric Research Laboratories.
University of Texas at Austin CS 378 – Game Technology Don Fussell CS 378: Computer Game Technology Physics for Games Spring 2012.
Unity3D Physics April 3, 2015 Comp Game Design Michael Shah.
Computer Game Design and Development
Havok FX Physics on NVIDIA GPUs. Copyright © NVIDIA Corporation 2004 What is Effects Physics? Physics-based effects on a massive scale 10,000s of objects.
DYNAMICS Part 2 HOW DOES IT WORK?? by Willis Louie Jianfei Liao.
Casting Digital Extras Dr. Paul A. Kruszewski President, GRIP.
Physics-Inspired Upsampling for Cloth Simulation in Games
CS274 Spring 01 Lecture 7 Copyright © Mark Meyer Lecture VII Rigid Body Dynamics CS274: Computer Animation and Simulation.
Real-time fluid physics library The goal was to create a physics library, specialized on water fluid physics, for real-time applications.
Advanced Games Development Game Physics CO2301 Games Development 1 Week 19.
Physics Michael Vernier Robert Weekley Michael Ford.
SAMCEF Field, Integrating CAE towards Professional Solutions.
Game Programming 13 Physics in Games (cont.) 2010 년 2 학기 디지털콘텐츠전공.
1 Topics: Introduction to Game Engine Course Overview What is a game engine? Advantages and Disadvantages Torque Game Engine.
Knowing 3ds Max Software. Overview Autodesk 3ds Max, formerly 3D Studio, then 3D Studio Max is a professional 3D computer graphics program It is used.
Martin Kruliš by Martin Kruliš (v1.0)1.
How to Program a Game: A Super Crash Course, A Talk or Something!
Unity 3D Rolfe Bozier 24-Apr-2017
Computer Graphics Graphics Hardware
Physically Based Simulations For Games
Chapter 1 An overview on Computer Graphics
CUDA Interoperability with Graphical Environments
Game Design, Development, and Technology
CS-378: Game Technology Lecture #15: Physically Based Simulation
Chapter 1 An overview on Computer Graphics
Rigid Body Dynamics Simulation
Physics in Games David: Overview of Physics in Games
Physics in Games David: Achieving Fun with Physics
UMBC Graphics for Games
Computer Graphics Graphics Hardware
Useful Tools for Making Video Games
Motion in Real and Virtual Worlds
Computer Animation Algorithms and Techniques
Advanced Games Development Game Physics
TJHSST Systems Lab Rigid Body Dynamics Simulation
Presentation transcript:

1 CS 599 Physically Based Modeling for Interactive Simulation and Games Case Study: Havok Engine for Game Physics Jernej Barbic University of Southern California

2 Physics in games Custom, in-house software Off-the shelf libraries Physics middleware

3 Physics Engines Real-time –Video games High precision –Slow –Film –Scientific computing Half-life 2

4 Real-time physics engines: open source Open Dynamics Engine (ODE) Bullet SOFA and several others

5 Real-time physics engines: commercial Havok (Ireland) (now Intel) Physx (formerly NovodeX, now nVidia) Vortex (Montreal)

6 Components of physics engine Collision detection Dynamics –rigid objects –cloth –fluids Fracture

7 Rigid object contact Penalty-based –popular with soft/deformable objects Impulse-based Constraint-based –expensive, suitable for continuous contact

8 Real-time simulation Speed more important than accuracy Objects have two representations: –Complex geometry (rendering) –Simplified geometry (collision detection, dynamics)

9 Characters Rag-doll physics –Rigid objects Cloth Controller –Natural motion Particles (hair)

10 Physics processing unit (PPU) Dedicated physics co-processor SPARTA and HELLAS –academic –Penn State, Univ. of Georgia Ageia (Switzerland, 2006) –later merged into nVidia –use AGEIA's PhysX SDK

11 GPGPU Havok FX –may have been cancelled Multi-GPU technology –ATI (CrossFire) –nVidia (SLI) Increasingly more suitable for physics

12 Intel Larrabee Many-core x86 Fusion of CPU and GPU Suitable for physics Was scheduled for 2010, but delayed

13 Havok Real-time commercial physics engine Company bought by Intel (2007) ($110 million) Used in 150 games –Halo 3 –Half Life 2

14 Havok Engine Animation –Fast playback –Real-time blending –Inverse kinematics –Retargeting AI – path-finding

15 Havok Engine Behavior –Character behavior development tool Cloth Destruction Physics

16 Havok Physics

17 Havok Physics Collision detection Constraints Rigid bodies Cloth Continuous physics Uncharted 2: Among thieves

18 Havok Physics Vehicle simulation Human ragdolls Character controller –simulate enemy characters being hit

19 Havok Physics Visual debugger and profiler Content creation tools Integration with 3rd-party renderers –3D Studio Max –Maya

20 Havok Physics Extensively optimized (machine code) Microsoft Xbox Sony PLAYSTATION Nintendo Wii PC

21 Havok Physics is not… Simple technology –Must invest time to use it Black box –Must understand the components and recombine them Commercial renderer

22 Havok Physics The “Havok World” (hkpWorld) Contains all physical objects in the simulation Timesteps the simulation forward in time

23 Rigid objects The central object in Havok hkpRigidObject class Add to the “world” Set mass, inertia tensor, etc.

24 Constraints Ball and socket HingeTranslational

25 Constraints

26 Constraints

27 Collision Detection Broad phase and narrow phase Broad phase

28 Collision Detection Narrow phase Spheres AABBs Cylinders Capsules Compound shapes

29 Collision Detection: Queries Closest points between two bodies Whether two bodies penetrate Raycast a point through space and get colliding objects

30 Continuous Physics

31 Continuous Physics Time of impact:

32