BATTLECAM™: A Dynamic Camera System for Real-Time Strategy Games

Slides:



Advertisements
Similar presentations
Department of nskinfo i-education
Advertisements

Elements of Design Design logics. Theory of Design The design of a document also encodes part of its meaning. Gunther Kress describes three primary ways.
Introduction Games have always been a fundamental part of human life. Space storm “ عاصفة الفضاء” is a 3D SCI-FI game that consists of two stages presented.
Visual Saliency: the signal from V1 to capture attention Li Zhaoping Head, Laboratory of natural intelligence Department of Psychology University College.
Summary of Friday A homography transforms one 3d plane to another 3d plane, under perspective projections. Those planes can be camera imaging planes or.
3D Graphics Rendering and Terrain Modeling
Vision Based Control Motion Matt Baker Kevin VanDyke.
Instructor: Mircea Nicolescu Lecture 13 CS 485 / 685 Computer Vision.
Virtual Dart: An Augmented Reality Game on Mobile Device Supervisor: Professor Michael R. Lyu Prepared by: Lai Chung Sum Siu Ho Tung.
A Novel Method for Generation of Motion Saliency Yang Xia, Ruimin Hu, Zhenkun Huang, and Yin Su ICIP 2010.
Motion Tracking. Image Processing and Computer Vision: 82 Introduction Finding how objects have moved in an image sequence Movement in space Movement.
Visual Attention More information in visual field than we can process at a given moment Solutions Shifts of Visual Attention related to eye movements Some.
Virtual Dart – An Augmented Reality Game on Mobile Device Supervised by Prof. Michael R. Lyu LYU0604Lai Chung Sum ( )Siu Ho Tung ( )
Michigan State University 1 “Saliency-Based Visual Attention” “Computational Modeling of Visual Attention”, Itti, Koch, (Nature Reviews – Neuroscience.
Ch 1 Intro to Graphics page 1CS 367 First Day Agenda Best course you have ever had (survey) Info Cards Name, , Nickname C / C++ experience, EOS experience.
BATTLECAM™: A Dynamic Camera System for Real-Time Strategy Games Yangli Hector Yee Graphics Programmer, Petroglyph Elie Arabian.
Computer Vision Systems for the Blind and Visually Disabled. STATS 19 SEM Talk 3. Alan Yuille. UCLA. Dept. Statistics and Psychology.
Electronic Visualization Laboratory University of Illinois at Chicago Interaction between Real and Virtual Humans: Playing Checkers R. Torre, S. Balcisoy.
A Model of Saliency-Based Visual Attention for Rapid Scene Analysis Laurent Itti, Christof Koch, and Ernst Niebur IEEE PAMI, 1998.
Technology and Historical Overview. Introduction to 3d Computer Graphics  3D computer graphics is the science, study, and method of projecting a mathematical.
Manipulating Attention in Computer Games Matthias Bernhard, Le Zhang, Michael Wimmer Institute of Computer Graphics and Algorithms Vienna University of.
1 Mean shift and feature selection ECE 738 course project Zhaozheng Yin Spring 2005 Note: Figures and ideas are copyrighted by original authors.
MIT EECS 6.837, Durand and Cutler Graphics Pipeline: Projective Transformations.
REU Presentation Week 3 Nicholas Baker.  What features “pop out” in a scene?  No prior information/goal  Identify areas of large feature contrasts.
黃文中 Introduction The Model Results Conclusion 2.
1 Human information processing: Chapters 4-9 n Computer as a metaphor for human performance n Misses role of emotion and distributed cognition ReceptorsPerception.
Street Smarts: Visual Attention on the Go Alexander Patrikalakis May 13, XXX.
Spatiotemporal Saliency Map of a Video Sequence in FPGA hardware David Boland Acknowledgements: Professor Peter Cheung Mr Yang Liu.
Visual Computing Computer Vision 2 INFO410 & INFO350 S2 2015
This map shows current real estate listings as red stars on a background colored by the percentage of the population that is under 18 - yellow denotes.
A Model of Saliency-Based Visual Attention for Rapid Scene Analysis
Change Blindness Images Li-Qian Ma 1, Kun Xu 1, Tien-Tsin Wong 2, Bi-Ye Jiang 1, Shi-Min Hu 1 1 Tsinghua University 2 The Chinese University of Hong Kong.
Viewing. Classical Viewing Viewing requires three basic elements - One or more objects - A viewer with a projection surface - Projectors that go from.
Real Boxing by Jiaqi Guo. System Flowchart 2 VGA Image Display Module 3 Sprite Graphics.
Color Theories After Images.
Computer Graphics Overview
- Introduction - Graphics Pipeline
A. M. R. R. Bandara & L. Ranathunga
Cascade for Fast Detection
Perception in 3D Computer Graphics
Graphics Fundamentals
Lit part of blue dress and shadowed part of white dress are the same color
3D Graphics Rendering PPT By Ricardo Veguilla.
CS451Real-time Rendering Pipeline
Implementation of a Visual Attention Model
Volume 53, Issue 1, Pages 9-16 (January 2007)
Play game, pause video, move cursor… with your eyes
EDNE 016: Dynamic Vision Chapter 6: Metacontrast and Motion Perception (pp ) Thomas Otto.
Chapter 1: Image processing and computer vision Introduction
Chapter 6.8 Cinematography
Illumination Model How to compute color to represent a scene
Perception: Structures
Volume 27, Issue 14, Pages e5 (July 2017)
Christopher C. Pack, Richard T. Born, Margaret S. Livingstone  Neuron 
Volume 19, Issue 2, Pages (August 1997)
Goal-Related Activity in V4 during Free Viewing Visual Search
Attentional Modulations Related to Spatial Gating but Not to Allocation of Limited Resources in Primate V1  Yuzhi Chen, Eyal Seidemann  Neuron  Volume.
CS-378: Game Technology Lecture #4: Texture and Other Maps
Computer Animation Displaying animation sequences raster animation
Xiaodong Chen, Gregory C. DeAngelis, Dora E. Angelaki  Neuron 
Ch 7.1: Using a Spatial Database for Runtime Spatial Analysis
Chapter 6: Perception Pages
The Normalization Model of Attention
Attention.
The functional architecture of attention
Figure 3. Converting an expression into a binary expression tree.
Volume 99, Issue 1, Pages e4 (July 2018)
Experiment 1 design. Experiment 1 design. A, Differences in cortical spacing in peripheral vision. Top row, Screen coordinates of stimuli in peripheral.
Visual Grounding.
Presentation transcript:

BATTLECAM™: A Dynamic Camera System for Real-Time Strategy Games Yangli Hector Yee Graphics Programmer, Petroglyph hector@petroglyphgames.com Elie Arabian Lead Artist, Petroglyph elie@petroglyphgames.com

Overview Background Theory Implementation Hacks Cinematic Shots Question & Answers

Background – History RTS Bird’s Eye (Dune 2) First Person (Dungeon Keeper) Scripted Actor & Camera (Warcraft 3) Unscripted Actor, Unscripted Camera (Star Wars – Empire at War)

Background - Problem Make a ‘movie’ from an RTS battle Actors can move during shot Actors can die during shot Players can move actors Objects can move into camera

Background - Solution Pick most interesting object Construct shot Play shot Fallback on death Pick next object Hijack existing camera scripting

Theory – Visual Attention How to pick ‘interesting object’ Bottom Up: Stimulus Intensity (black on white) Motion (moving stuff) Color (red on green) Orientation (circle in stripes) Top Down: Goals Game Objectives Current User Selection

Theory – Bottom Up Attn. Image Orientation Color Spatial Frequency Intensity Motion Feature Maps Conspicuity Maps Saliency Map Reference : Itti L, Koch C. “A Saliency-Based Search Mechanism for Overt and Covert Shifts of Visual Attention.” Vision Research, pp. 263, Vol 40(10 - 12), 2000

Center Surround Mechanism Intensity Feature Maps Lateral Inhibition Intensity Conspicuity Maps

Lateral Inhibition One signal vs similar signals

Lateral Inhibition Purpose : Promote areas with significantly conspicuous features while suppressing those that are non-conspicuous. (Before Inhibition) (After Inhibition)

Implementation Game Logic Driven Images too expensive No screen space stuff Access to game logic info

Implementation – Data Game logic data (stimulus) Size Attack power Location Health Game logic data (goal driven) Current selection Visibility

Computing Saliency E.g. Saliency_Speed for object(i) Saliency_speed(i) = (speed(i) – min_speed)/ (max_speed – min_speed) Normalized 0 to 1 Three Normalization modes Large is important Small is imporant Closeness to mean is important

Normalization Modes Large is important Small is important Saliency_val(i) = (val(i) – min_val) / (max_val – min_val) Small is important Saliency_val(i) = 1 – (val(i) – min_val) / (max_val – min_val) Close to mean is important Saliency_val(i) = 1 – (val(i) – avg_val) / (max_val – min_val)

Normalization settings Large is important Size Attack power Targets Speed Small is important Health Close to mean is important X, Y coordinate

Lateral Inhibition Conspicuity value = saliency_val * (max_saliency_val – min_saliency_val) Signals with great difference between max and min get boosted

Importance Importance (i) = Sum of conspicuity_vals * weights Weight values Size 1.0 Power 1.0 X 0.5 Y 0.5 Health 1.0 Targets 1.5 Speed 1.0 Sort list by importance

Summary Compute normalized saliency Perform lateral inhibition Weighted sum Sort by importance

Picking interesting object Pick current selected Pick current object’s target 50% of the time Make interesting object list From list pick top 5 randomly. Reject if it was same type as the previous object looked at.

Constructing Cinematics Local Space Transform object space cinematic into world Local Space without rotation frame Use translation only World space using reference objects For artist driven cinematic constructed in world space Transform to local space

Local Space Cameras

Flyby camera shot

Circle camera shot

Chase camera shot

Hardpoint camera shot

Frigate/Target camera shot

Demo & Q&A Thanks to Jim Richmond for camera system Kevin Prangley for illustrations Petroglyph staff for support Contact Info Hector at petroglyphgames dot com