Unreal Lighting Clark Kromenaker. Unreal Lightmass UE3’s new lighting system is called Lightmass. Simulates bouncing light in an environment.

Slides:



Advertisements
Similar presentations
A Real Time Radiosity Architecture for Video Games
Advertisements

Exploration of advanced lighting and shading techniques
Pre-computing Lighting in Games
Ray tracing. New Concepts The recursive ray tracing algorithm Generating eye rays Non Real-time rendering.
Game Programming 09 OGRE3D Lighting/shadow in Action
GAM532 DPS932 – Week 7 Introduction to shadows. Shadow Effects Light Surface No Shadows Shadows.
Week 7 - Monday.  What did we talk about last time?  Specular shading  Aliasing and antialiasing.
Introduction To 3D Modeling
Week 10 - Monday.  What did we talk about last time?  Global illumination  Shadows  Projection shadows  Soft shadows.
Photon Mapping. How did I use it 10 years ago? Why might you want to use it tomorrow?
Week 7 - Wednesday.  What did we talk about last time?  Transparency  Gamma correction  Started texturing.
Projection Matrix Tricks Eric Lengyel Outline  Projection Matrix Internals  Infinite Projection Matrix  Depth Modification  Oblique Near Clipping.
Shadow Silhouette Maps Pradeep Sen, Mike Cammarano, Pat Hanrahan Stanford University.
Fast Global-Illumination on Dynamic Height Fields
A Simple, Efficient Method for Realistic Animation of Clouds
Computer Graphics Inf4/MSc Computer Graphics Lecture 11 Texture Mapping.
LIGHTING JEFF CHASTINE 1. WHAT IS LIGHT? A very complex process Find a dark area – how is it being lit? Light bounces (mirrors, shiny objects) Light refracts.
09/18/03CS679 - Fall Copyright Univ. of Wisconsin Last Time Bump Mapping Multi-pass algorithms.
SET09115 Intro Graphics Programming
Shadows Computer Graphics. Shadows Shadows Extended light sources produce penumbras In real-time, we only use point light sources –Extended light sources.
1 Computer Graphics Week13 –Shading Models. Shading Models Flat Shading Model: In this technique, each surface is assumed to have one normal vector (usually.
WHAT IS VRAY? V-ray is a rendering engine that is used as an extension of certain 3D computer graphics software. The core developers of V-Ray are Vladimir.
COMPUTER GRAPHICS CS 482 – FALL 2014 AUGUST 27, 2014 FIXED-FUNCTION 3D GRAPHICS MESH SPECIFICATION LIGHTING SPECIFICATION REFLECTION SHADING HIERARCHICAL.
CS 638, Fall 2001 Today Light Mapping (Continued) Bump Mapping with Multi-Texturing Multi-Pass Rendering.
Introducing To 3D Modeling George Atanasov Telerik Corporation
Computer Graphics Texture Mapping
UW EXTENSION CERTIFICATE PROGRAM IN GAME DEVELOPMENT 2 ND QUARTER: ADVANCED GRAPHICS Textures.
09/11/03CS679 - Fall Copyright Univ. of Wisconsin Last Time Graphics Pipeline Texturing Overview Cubic Environment Mapping.
CS 638, Fall 2001 Multi-Pass Rendering The pipeline takes one triangle at a time, so only local information, and pre-computed maps, are available Multi-Pass.
Week 10 - Wednesday.  What did we talk about last time?  Shadow volumes and shadow mapping  Ambient occlusion.
Tiger Woods 2008: Advancements in Environments Peter Arisman Technical Art Director Tiger Woods 2008.
10/27/20151 UDK Terrain CIS 488/588 Bruce R. Maxim UM-Dearborn.
CS-378: Game Technology Lecture #4: Texture and Other Maps Prof. Okan Arikan University of Texas, Austin V Lecture #4: Texture and Other Maps.
Cloth Simulation II Pertemuan 08 Matakuliah : UO714 / Technology for Animation Tahun : 2009.
CSE 381 – Advanced Game Programming GLSL Lighting.
Shader Study 이동현. Vision engine   Games Helldorado The Show Warlord.
Advanced Computer Graphics Shadow Techniques CO2409 Computer Graphics Week 20.
Introduction to Level Optimization Sai-Keung Wong Chiao Tung University, Taiwan, R.O.C. Reference: Mastering Unreal Technology (MUT)
09/16/03CS679 - Fall Copyright Univ. of Wisconsin Last Time Environment mapping Light mapping Project Goals for Stage 1.
Computer Graphics: Programming, Problem Solving, and Visual Communication Steve Cunningham California State University Stanislaus and Grinnell College.
11/04/04© University of Wisconsin, CS559 Fall 2004 Last Time Visibility –Z-Buffer and transparency –A-buffer –Area subdivision –BSP Trees –Exact Cell-Portal.
Emerging Technologies for Games Deferred Rendering CO3303 Week 22.
Graphics Graphics Korea University cgvr.korea.ac.kr 1 7. Speed-up Techniques Presented by SooKyun Kim.
Pure Path Tracing: the Good and the Bad Path tracing concentrates on important paths only –Those that hit the eye –Those from bright emitters/reflectors.
“The primary purpose of cinematic lighting is to support the story by contributing to the overall visual structure of the film.” From Advanced Renderman.
Where We Stand So far we know how to: –Transform between spaces –Rasterize –Decide what’s in front Next –Deciding its intensity and color.
Module 06 –environment mapping Module 06 – environment mapping Module 06 Advanced mapping techniques: Environment mapping.
Real-Time Dynamic Shadow Algorithms Evan Closson CSE 528.
1 CSCE 441: Computer Graphics Hidden Surface Removal Jinxiang Chai.
Shadows David Luebke University of Virginia. Shadows An important visual cue, traditionally hard to do in real-time rendering Outline: –Notation –Planar.
Ambient Occlusion Patrick Cozzi University of Pennsylvania CIS Fall 2013.
09/23/03CS679 - Fall Copyright Univ. of Wisconsin Last Time Reflections Shadows Part 1 Stage 1 is in.
CS 376 Introduction to Computer Graphics 04 / 13 / 2007 Instructor: Michael Eckmann.
Computer Graphics Ken-Yi Lee National Taiwan University (the slides are adapted from Bing-Yi Chen and Yung-Yu Chuang)
Postmortem: Deferred Shading in Tabula Rasa Rusty Koonce NCsoft September 15, 2008.
Building a Simple Level Adding Lighting Copyright © 2015 Curt Hill.
Computer Graphics Lecture 26 Mathematics of Lighting and Shading Part II Taqdees A. Siddiqi
Chapter 5. Lighting Computer Graphics (spring, 2009) School of Computer Science University of Seoul.
Ying Zhu Georgia State University
Lighting in Unreal Engine.
Week 7 - Monday CS361.
Rendering, Cameras & Lighting
Austin Grosel & Aaron Ebbinghaus
Computer Animation Ying Zhu Georgia State University
UMBC Graphics for Games
Computer Graphics Imaging Ying Zhu Georgia State University
CS-378: Game Technology Lecture #4: Texture and Other Maps
V-RAY FOR 3DS MAX Global Illumination for Interior Scenes
Computer Graphics Material Colours and Lighting
Frame Buffer Applications
Presentation transcript:

Unreal Lighting Clark Kromenaker

Unreal Lightmass UE3’s new lighting system is called Lightmass. Simulates bouncing light in an environment.

Unreal Lighting is Complicated Many optimizations to improve performance. But this means you need to know what you’re doing to get good-looking light. Lighting and shadows are two separate things! – Lightmapping: process of calculating static light. – Shadowmapping: dynamic shadows in-game.

LET’S TALK ABOUT LIGHTS

Two Types of Lighting Vertex Lighting – fast, but inaccurate. Lightmapping – slow, but very good-looking. Which lighting is used on a mesh depends on the mesh’s settings.

Vertex Lighting When a mesh has an invalid lightmap or a lightmap resolution of 0, it uses vertex lighting. Terrible for tiling geometry. But great for detailed, nontiling geometry.

Lightmapping Each mesh instance has a light-map. And each light-map has a resolution (i.e. 64x64, 256x256) The light-map stores static lighting information for the mesh. The mesh’s light-map needs to be created by the artist in Maya or Max. Given a valid light-map and a resolution greater than 0, meshes will use Lightmapping instead of Vertex Lighting.

Lightmapping Example

Good Lightmap, Bad Lightmap BAD!GOOD! A lightmap that gives more space to important surfaces will give better results!

Good Lightmaps Improve Lighting Quality and Performance A good lightmap can look good at smaller resolutions. Old Lightmap, 512x512 Lightmap = Mediocre New Lightmap, 64x64 Lightmap = Excellent

Lightmap Comparison Good Lightmap, 64x64 Bad Lightmap, 512x512

Light-map Resolution Problem Use Texel Density view to visualize light-map size. If there is a discrepancy in size between tiling meshes, this will cause visible lighting problems.

Three Basic Light Classes Point Light – A small, spherical light source. Spot Light – Exactly what you think. Directional Light – Light from infinite distance in a certain direction (like the sun).

Static Lights Generates mesh light-maps. Must rebuild lighting. Static lights affect static meshes. Can only create cheap dynamic shadows. Static lights DO NOT affect Movers/InterpActors, KActors, or DynamicSM Actors (by default)

Dynamic/Static Lights Generates lightmaps. Also does on-the-fly dynamic lighting for Kactors/Movers. Can be configured to use cheap or expensive dynamic shadows.

User-Selected Lights Catch-all for any other lighting settings. Dynamic Lights w/o Static Lighting fall in this category.

Dominant Lights Used to add realistic shadowing to Dynamic Actors. Limitations – only 1 directional dominant light per level. – For point and spotlights, only 1 dominant light can be affecting a surface at one time.

No Dominant Light

With Dominant Light

LET’S TALK ABOUT SHADOWS

Dynamic Shadows KActors and Movers cast dynamic shadows. Two types of dynamic shadows – Modulated (Faster, Cheaper, Less Accurate) – Normal (More Expensive, Much Better In Some Situations)

Modulated Shadows Cheap Shadows Look a little strange? – Don’t blend well with static shadows. – Shadows go through objects! Used when: – Light is using modulated shadows. – Actor is using a light env.

Why would you want this? Because sometimes, it just doesn’t matter. Small objects. Nothing behind it.

Normal Shadows Bit more expensive. Look much more realistic in some scenarios. – Blend well with static shadows. – Do not bleed through objects. Used when: – Light is not static. – Light is using “Normal” shadows. – Actor has light env. disabled.

Transparent Meshes

Lightmass Settings Global Lightmass Settings in World Properties. – Light Bounces: how many surfaces light bounces off of during computation. – Environment Color/Intensity: Color/Intensity of shadows areas; most useful for making shadows lighter.

Pipeline Challenges Artists will need to understand how to create light-maps that maximize lighting quality. Designers/Engineers will need to understand how to efficiently and effectively light scenes. – Use static lights whenever possible. – Use modulative shadows when possible. – Reduce lightmap resolution when possible.

Tile Seams are Visible 1.Make sure the light-map was laid out correctly by an artist or engineer. 2.Make sure the seam is not a result of preview lighting. 3.Increase light-map resolution by power of two. In most cases, if you go over 128, there is some other problem!

Mesh Edges Bleeding Caused by overlap on lightmap. Solutions: 1.Modify mesh’s lightmap to have more space. 2.Increase lightmap resolution by power of two.

Dynamic Shadows Look Wrong or Visible Through Walls You are using modulative shadows – need to switch to normal. 1.Don’t use static lights for these shadows. Use either a modified moveable light or a dominant light. 2.Ensure the light’s shadow mode is set to Normal. 3.Turn off the mesh’s light env. and turn on precomputed shadows.

Dynamic Shadows Fade Away Dynamic shadows may fade as you walk away. Fix this in the light’s properties. Shadow Fade Resolution – Smaller Value = Fade occurs farther. Min Shadow Resolution – Set between 0 and ShadowFadeRes. – Shadow fades instead of disappearing.