44
G d G C The Art of PhysX © 2008 NVIDIA Corporation. A Guide to Game Creativity

The Art of PhysX - Nvidiadeveloper.download.nvidia.com/.../NVISION08_The_Art_of_PhysX.pdf · Overview • Integrating GPU PhysX • GC Sh dTl KCase Study: The Great Kulu • Case

Embed Size (px)

Citation preview

Page 1: The Art of PhysX - Nvidiadeveloper.download.nvidia.com/.../NVISION08_The_Art_of_PhysX.pdf · Overview • Integrating GPU PhysX • GC Sh dTl KCase Study: The Great Kulu • Case

G d G C

The Art of PhysX

© 2008 NVIDIA Corporation.

A Guide to Game Creativity

Page 2: The Art of PhysX - Nvidiadeveloper.download.nvidia.com/.../NVISION08_The_Art_of_PhysX.pdf · Overview • Integrating GPU PhysX • GC Sh dTl KCase Study: The Great Kulu • Case

Overview• Integrating GPU PhysX

C S d Th G K l• Case Study: The Great Kulu• Case Study: UT3 TornadoCase Study: UT3 Tornado• Other GPU PhysX Examples• Questions

© 2008 NVIDIA Corporation.

Page 3: The Art of PhysX - Nvidiadeveloper.download.nvidia.com/.../NVISION08_The_Art_of_PhysX.pdf · Overview • Integrating GPU PhysX • GC Sh dTl KCase Study: The Great Kulu • Case

Integrating PhysX Features1. Select showcase features2 Prototype concepts2. Prototype concepts3. Verify gameplay

Features

Fluids

Prototyping Gameplay TestingCloth

Softbodies

© 2008 NVIDIA Corporation.

Softbodies

Page 4: The Art of PhysX - Nvidiadeveloper.download.nvidia.com/.../NVISION08_The_Art_of_PhysX.pdf · Overview • Integrating GPU PhysX • GC Sh dTl KCase Study: The Great Kulu • Case

Showcasing Features• Particles

Cl h• Cloth• SoftbodiesSoftbodies

© 2008 NVIDIA Corporation.

Page 5: The Art of PhysX - Nvidiadeveloper.download.nvidia.com/.../NVISION08_The_Art_of_PhysX.pdf · Overview • Integrating GPU PhysX • GC Sh dTl KCase Study: The Great Kulu • Case

Maximizing PhysX Features - Particles

• Colliding or flowing over surfaces• Reacting to forces• Reacting to forces• Particle-Particle interaction

© 2008 NVIDIA Corporation.

Page 6: The Art of PhysX - Nvidiadeveloper.download.nvidia.com/.../NVISION08_The_Art_of_PhysX.pdf · Overview • Integrating GPU PhysX • GC Sh dTl KCase Study: The Great Kulu • Case

Maximizing PhysX Features - Particles

© 2008 NVIDIA Corporation.

Page 7: The Art of PhysX - Nvidiadeveloper.download.nvidia.com/.../NVISION08_The_Art_of_PhysX.pdf · Overview • Integrating GPU PhysX • GC Sh dTl KCase Study: The Great Kulu • Case

Maximizing PhysX Features - Cloth

• Visualize forces • Clothing movement• Clothing movement• Conforms to surrounding surfaces

© 2008 NVIDIA Corporation.

Page 8: The Art of PhysX - Nvidiadeveloper.download.nvidia.com/.../NVISION08_The_Art_of_PhysX.pdf · Overview • Integrating GPU PhysX • GC Sh dTl KCase Study: The Great Kulu • Case

Maximizing PhysX Features - Cloth

© 2008 NVIDIA Corporation.

Page 9: The Art of PhysX - Nvidiadeveloper.download.nvidia.com/.../NVISION08_The_Art_of_PhysX.pdf · Overview • Integrating GPU PhysX • GC Sh dTl KCase Study: The Great Kulu • Case

Maximizing PhysX Features - Softbodies

• Compression• Rippling Forces• Rippling Forces• Secondary Motion

© 2008 NVIDIA Corporation.

Page 10: The Art of PhysX - Nvidiadeveloper.download.nvidia.com/.../NVISION08_The_Art_of_PhysX.pdf · Overview • Integrating GPU PhysX • GC Sh dTl KCase Study: The Great Kulu • Case

Maximizing PhysX Features - Softbodies

© 2008 NVIDIA Corporation.

Page 11: The Art of PhysX - Nvidiadeveloper.download.nvidia.com/.../NVISION08_The_Art_of_PhysX.pdf · Overview • Integrating GPU PhysX • GC Sh dTl KCase Study: The Great Kulu • Case

Prototype Concepts• Let the artist/level designers play

C l l i h h i• Create test levels with physics

© 2008 NVIDIA Corporation.

Page 12: The Art of PhysX - Nvidiadeveloper.download.nvidia.com/.../NVISION08_The_Art_of_PhysX.pdf · Overview • Integrating GPU PhysX • GC Sh dTl KCase Study: The Great Kulu • Case

Gameplay Testing• Testers should experiment

E h h l i• Enhance the gameplay experience• Are features noticeable during gameplay?g g p y• Are players using the features

effectively? (Destruction)effectively? (Destruction)

© 2008 NVIDIA Corporation.

Page 13: The Art of PhysX - Nvidiadeveloper.download.nvidia.com/.../NVISION08_The_Art_of_PhysX.pdf · Overview • Integrating GPU PhysX • GC Sh dTl KCase Study: The Great Kulu • Case

Questions• Will interaction and interactivity enhance

the experience?the experience?• Will your feature be noticeable by the

player?player?• Will your feature affect gameplay?• Does your feature need to be networked?

© 2008 NVIDIA Corporation.

Page 14: The Art of PhysX - Nvidiadeveloper.download.nvidia.com/.../NVISION08_The_Art_of_PhysX.pdf · Overview • Integrating GPU PhysX • GC Sh dTl KCase Study: The Great Kulu • Case

Case Study: The Great Kulu• PhysX Feature – Softbody• Goal Illustrate softbody behaviors• Goal – Illustrate softbody behaviors• Plan of Attack – Create a large soft sea creature

© 2008 NVIDIA Corporation.

Page 15: The Art of PhysX - Nvidiadeveloper.download.nvidia.com/.../NVISION08_The_Art_of_PhysX.pdf · Overview • Integrating GPU PhysX • GC Sh dTl KCase Study: The Great Kulu • Case

Key Softbody Advantages• Secondary motion from

animation• Surface interaction• “Organic” behaviorg

© 2008 NVIDIA Corporation.

Page 16: The Art of PhysX - Nvidiadeveloper.download.nvidia.com/.../NVISION08_The_Art_of_PhysX.pdf · Overview • Integrating GPU PhysX • GC Sh dTl KCase Study: The Great Kulu • Case

Basic Softbody Exampley p

Insert Movie

[Video]

© 2008 NVIDIA Corporation.

[Video]

Page 17: The Art of PhysX - Nvidiadeveloper.download.nvidia.com/.../NVISION08_The_Art_of_PhysX.pdf · Overview • Integrating GPU PhysX • GC Sh dTl KCase Study: The Great Kulu • Case

The Great Kulu – Prototype Features

• CreatureFi t i t d ftb d• First animated softbody

• First use of softbody in a game setting

• Force Interaction

© 2008 NVIDIA Corporation.

Page 18: The Art of PhysX - Nvidiadeveloper.download.nvidia.com/.../NVISION08_The_Art_of_PhysX.pdf · Overview • Integrating GPU PhysX • GC Sh dTl KCase Study: The Great Kulu • Case

Softbody Animation TechniqueCreate Model

Generate

AttachVerticies

Tetrahedrals

© 2008 NVIDIA Corporation.

Page 19: The Art of PhysX - Nvidiadeveloper.download.nvidia.com/.../NVISION08_The_Art_of_PhysX.pdf · Overview • Integrating GPU PhysX • GC Sh dTl KCase Study: The Great Kulu • Case

The Great Kulu – Prototype 1

© 2008 NVIDIA Corporation.

Page 20: The Art of PhysX - Nvidiadeveloper.download.nvidia.com/.../NVISION08_The_Art_of_PhysX.pdf · Overview • Integrating GPU PhysX • GC Sh dTl KCase Study: The Great Kulu • Case

Animating the CreatureCreate Model Generate Tetras

Tetra Attachment Final Result

© 2008 NVIDIA Corporation.

Page 21: The Art of PhysX - Nvidiadeveloper.download.nvidia.com/.../NVISION08_The_Art_of_PhysX.pdf · Overview • Integrating GPU PhysX • GC Sh dTl KCase Study: The Great Kulu • Case

The Great Kulu – Prototype 2

© 2008 NVIDIA Corporation.

Page 22: The Art of PhysX - Nvidiadeveloper.download.nvidia.com/.../NVISION08_The_Art_of_PhysX.pdf · Overview • Integrating GPU PhysX • GC Sh dTl KCase Study: The Great Kulu • Case

The Great Kulu – Forcefield

© 2008 NVIDIA Corporation.

Page 23: The Art of PhysX - Nvidiadeveloper.download.nvidia.com/.../NVISION08_The_Art_of_PhysX.pdf · Overview • Integrating GPU PhysX • GC Sh dTl KCase Study: The Great Kulu • Case

The Great Kulu – Escape

© 2008 NVIDIA Corporation.

Page 24: The Art of PhysX - Nvidiadeveloper.download.nvidia.com/.../NVISION08_The_Art_of_PhysX.pdf · Overview • Integrating GPU PhysX • GC Sh dTl KCase Study: The Great Kulu • Case

The Great Kulu – Door Squeeze

© 2008 NVIDIA Corporation.

Page 25: The Art of PhysX - Nvidiadeveloper.download.nvidia.com/.../NVISION08_The_Art_of_PhysX.pdf · Overview • Integrating GPU PhysX • GC Sh dTl KCase Study: The Great Kulu • Case

The Great Kulu – Eggs

© 2008 NVIDIA Corporation.

Page 26: The Art of PhysX - Nvidiadeveloper.download.nvidia.com/.../NVISION08_The_Art_of_PhysX.pdf · Overview • Integrating GPU PhysX • GC Sh dTl KCase Study: The Great Kulu • Case

The Great Kulu – Explode

© 2008 NVIDIA Corporation.

Page 27: The Art of PhysX - Nvidiadeveloper.download.nvidia.com/.../NVISION08_The_Art_of_PhysX.pdf · Overview • Integrating GPU PhysX • GC Sh dTl KCase Study: The Great Kulu • Case

Reaction

“The Great Kulu gives us an interesting glimpse at how games could feature more "organic" objects that bend and squeeze depending on what they collide with. I can't be the only one tired of seeing rag-doll character corpses that behave like they're made of cast titanium.”T hR t-TechReport.com

© 2008 NVIDIA Corporation.

Page 28: The Art of PhysX - Nvidiadeveloper.download.nvidia.com/.../NVISION08_The_Art_of_PhysX.pdf · Overview • Integrating GPU PhysX • GC Sh dTl KCase Study: The Great Kulu • Case

Case Study: UT3 Tornado• Rigid Bodies Blocking Paths

• Cloth Li f Si h• Cloth Line of Sight

• Particles Visualize Forces

• Forcefields Add Energy

© 2008 NVIDIA Corporation.

Page 29: The Art of PhysX - Nvidiadeveloper.download.nvidia.com/.../NVISION08_The_Art_of_PhysX.pdf · Overview • Integrating GPU PhysX • GC Sh dTl KCase Study: The Great Kulu • Case

UT3 Tornado – Paths• Paths are continuously changing

O i P th• Opening Paths• Closing Paths• Tornado itself

© 2008 NVIDIA Corporation.

Page 30: The Art of PhysX - Nvidiadeveloper.download.nvidia.com/.../NVISION08_The_Art_of_PhysX.pdf · Overview • Integrating GPU PhysX • GC Sh dTl KCase Study: The Great Kulu • Case

UT3 Tornado – Changing Environment

The image cannot be displayed. Your computer may not have enough memory to open the image, or the image may have been corrupted. Restart your computer, and then open the file again. If the red x still appears, you may have to delete the image and then insert it again.

© 2008 NVIDIA Corporation.

Page 31: The Art of PhysX - Nvidiadeveloper.download.nvidia.com/.../NVISION08_The_Art_of_PhysX.pdf · Overview • Integrating GPU PhysX • GC Sh dTl KCase Study: The Great Kulu • Case

UT3 Tornado – Networking• Synchronization

G l ff ti i id b di• Gameplay affecting rigid bodies• Use state changes wherever possible

© 2008 NVIDIA Corporation.

Page 32: The Art of PhysX - Nvidiadeveloper.download.nvidia.com/.../NVISION08_The_Art_of_PhysX.pdf · Overview • Integrating GPU PhysX • GC Sh dTl KCase Study: The Great Kulu • Case

UT3 Tornado – Destruction

© 2008 NVIDIA Corporation.

Page 33: The Art of PhysX - Nvidiadeveloper.download.nvidia.com/.../NVISION08_The_Art_of_PhysX.pdf · Overview • Integrating GPU PhysX • GC Sh dTl KCase Study: The Great Kulu • Case

UT3 Tornado - Destruction

© 2008 NVIDIA Corporation.

Page 34: The Art of PhysX - Nvidiadeveloper.download.nvidia.com/.../NVISION08_The_Art_of_PhysX.pdf · Overview • Integrating GPU PhysX • GC Sh dTl KCase Study: The Great Kulu • Case

UT3 Tornado

© 2008 NVIDIA Corporation.

Page 35: The Art of PhysX - Nvidiadeveloper.download.nvidia.com/.../NVISION08_The_Art_of_PhysX.pdf · Overview • Integrating GPU PhysX • GC Sh dTl KCase Study: The Great Kulu • Case

Oth Ph XOther PhysXIntegration ExamplesIntegration Examples

© 2008 NVIDIA Corporation.

Page 36: The Art of PhysX - Nvidiadeveloper.download.nvidia.com/.../NVISION08_The_Art_of_PhysX.pdf · Overview • Integrating GPU PhysX • GC Sh dTl KCase Study: The Great Kulu • Case

Weapon Effects: UT3

© 2008 NVIDIA Corporation.

Page 37: The Art of PhysX - Nvidiadeveloper.download.nvidia.com/.../NVISION08_The_Art_of_PhysX.pdf · Overview • Integrating GPU PhysX • GC Sh dTl KCase Study: The Great Kulu • Case

Environmental Effects

© 2008 NVIDIA Corporation.

Page 38: The Art of PhysX - Nvidiadeveloper.download.nvidia.com/.../NVISION08_The_Art_of_PhysX.pdf · Overview • Integrating GPU PhysX • GC Sh dTl KCase Study: The Great Kulu • Case

Environmental Effects: GRAW 2

© 2008 NVIDIA Corporation.

Page 39: The Art of PhysX - Nvidiadeveloper.download.nvidia.com/.../NVISION08_The_Art_of_PhysX.pdf · Overview • Integrating GPU PhysX • GC Sh dTl KCase Study: The Great Kulu • Case

Character Effects

• Character AnimationCharacter Animation• Clothing/Hair• Softbodies • Softbodies

© 2008 NVIDIA Corporation.

Page 40: The Art of PhysX - Nvidiadeveloper.download.nvidia.com/.../NVISION08_The_Art_of_PhysX.pdf · Overview • Integrating GPU PhysX • GC Sh dTl KCase Study: The Great Kulu • Case

Character Animation: Backbreaker

© 2008 NVIDIA Corporation.

Page 41: The Art of PhysX - Nvidiadeveloper.download.nvidia.com/.../NVISION08_The_Art_of_PhysX.pdf · Overview • Integrating GPU PhysX • GC Sh dTl KCase Study: The Great Kulu • Case

Clothing: Nurien

© 2008 NVIDIA Corporation.

Page 42: The Art of PhysX - Nvidiadeveloper.download.nvidia.com/.../NVISION08_The_Art_of_PhysX.pdf · Overview • Integrating GPU PhysX • GC Sh dTl KCase Study: The Great Kulu • Case

SummaryGame Designer

Scalable• Particles

Game Programmer

• Visualization of forces

• Clothing/HairClothing/Hair• Visualize character movement

• SoftbodyBack End Solvers

Softbody• Visualize organic behavior

© 2008 NVIDIA Corporation.

GRAPHICS + PHYSX = MORE REALISM

Page 43: The Art of PhysX - Nvidiadeveloper.download.nvidia.com/.../NVISION08_The_Art_of_PhysX.pdf · Overview • Integrating GPU PhysX • GC Sh dTl KCase Study: The Great Kulu • Case

PhysX ToolsGame Designer

Scalable• Prototype

Game Programmer

Prototype• Samples, Max/Maya PhysX plugin

• Scale and Author• Scale and Author• Adaptive Physics Extensions (APEX)

D b / O ti iBack End Solvers• Debug / Optimize• Visual remote Debugger (VRD), agPerfmon

© 2008 NVIDIA Corporation.

Page 44: The Art of PhysX - Nvidiadeveloper.download.nvidia.com/.../NVISION08_The_Art_of_PhysX.pdf · Overview • Integrating GPU PhysX • GC Sh dTl KCase Study: The Great Kulu • Case

Questions ?

http://developer nvidia com/object/physx html

© 2008 NVIDIA Corporation.

http://developer.nvidia.com/object/physx.html