Rasterization and Ray Tracing in Real-Time Applications (Games) Andrew Graff.

Slides:



Advertisements
Similar presentations
Exploration of advanced lighting and shading techniques
Advertisements

CS123 | INTRODUCTION TO COMPUTER GRAPHICS Andries van Dam © 1/16 Deferred Lighting Deferred Lighting – 11/18/2014.
Sven Woop Computer Graphics Lab Saarland University
COMPUTER GRAPHICS CS 482 – FALL 2014 NOVEMBER 10, 2014 GRAPHICS HARDWARE GRAPHICS PROCESSING UNITS PARALLELISM.
Ray tracing. New Concepts The recursive ray tracing algorithm Generating eye rays Non Real-time rendering.
Graphics Pipeline.
RealityEngine Graphics Kurt Akeley Silicon Graphics Computer Systems.
GI 2006, Québec, June 9th 2006 Implementing the Render Cache and the Edge-and-Point Image on Graphics Hardware Edgar Velázquez-Armendáriz Eugene Lee Bruce.
Week 10 - Monday.  What did we talk about last time?  Global illumination  Shadows  Projection shadows  Soft shadows.
Real-Time Rendering TEXTURING Lecture 02 Marina Gavrilova.
 Engineering Graphics & Introductory Design 3D Graphics and Rendering REU Modeling Course – June 13 th 2014.
CS 4731: Computer Graphics Lecture 19: Shadows Emmanuel Agu.
3D Graphics Processor Architecture Victor Moya. PhD Project Research on architecture improvements for future Graphic Processor Units (GPUs). Research.
IN4151 Introduction 3D graphics 1 Introduction to 3D computer graphics part 2 Viewing pipeline Multi-processor implementation GPU architecture GPU algorithms.
Parallelizing Raytracing Gillian Smith CMPE 220 February 19 th, 2008.
1 Angel: Interactive Computer Graphics 4E © Addison-Wesley 2005 Models and Architectures Ed Angel Professor of Computer Science, Electrical and Computer.
Real-Time Ray Tracing 3D Modeling of the Future Marissa Hollingsworth Spring 2009.
3-D RENDERING Peter Moore Jackson Cwach. What 3-D Rendering is 3D rendering is the 3D computer graphics process of automatically converting 3D wire frame.
GPU Graphics Processing Unit. Graphics Pipeline Scene Transformations Lighting & Shading ViewingTransformations Rasterization GPUs evolved as hardware.
Ray Tracing Primer Ref: SIGGRAPH HyperGraphHyperGraph.
Ray Tracing and Photon Mapping on GPUs Tim PurcellStanford / NVIDIA.
Technology and Historical Overview. Introduction to 3d Computer Graphics  3D computer graphics is the science, study, and method of projecting a mathematical.
Invitation to Computer Science 5th Edition
Interactive Rendering of Meso-structure Surface Details using Semi-transparent 3D Textures Vision, Modeling, Visualization Erlangen, Germany November 16-18,
Computer Graphics An Introduction. What’s this course all about? 06/10/2015 Lecture 1 2 We will cover… Graphics programming and algorithms Graphics data.
Chris Kerkhoff Matthew Sullivan 10/16/2009.  Shaders are simple programs that describe the traits of either a vertex or a pixel.  Shaders replace a.
-Global Illumination Techniques
CS 450: COMPUTER GRAPHICS REVIEW: INTRODUCTION TO COMPUTER GRAPHICS – PART 2 SPRING 2015 DR. MICHAEL J. REALE.
Week 2 - Friday.  What did we talk about last time?  Graphics rendering pipeline  Geometry Stage.
CSC 461: Lecture 3 1 CSC461 Lecture 3: Models and Architectures  Objectives –Learn the basic design of a graphics system –Introduce pipeline architecture.
1 Introduction to Computer Graphics with WebGL Ed Angel Professor Emeritus of Computer Science Founding Director, Arts, Research, Technology and Science.
1 Shadows (2) ©Anthony Steed Overview n Shadows – Umbra Recap n Penumbra Analytical v. Sampling n Analytical Aspect graphs Discontinuity meshing.
Computer graphics & visualization Photon Mapping.
1 Introduction to Computer Graphics with WebGL Ed Angel Professor Emeritus of Computer Science Founding Director, Arts, Research, Technology and Science.
Computer Graphics The Rendering Pipeline - Review CO2409 Computer Graphics Week 15.
1Computer Graphics Lecture 4 - Models and Architectures John Shearer Culture Lab – space 2
Gene Au-yeung, Daniel Quach, Jeffrey Su, Albert Wang, Jessica Wang, David Woo.
Hardware-accelerated Rendering of Antialiased Shadows With Shadow Maps Stefan Brabec and Hans-Peter Seidel Max-Planck-Institut für Informatik Saarbrücken,
Department of Computer Science 1 Beyond CUDA/GPUs and Future Graphics Architectures Karu Sankaralingam University of Wisconsin-Madison Adapted from “Toward.
A Few Things about Graphics Jian Huang Computer Science University of Tennessee.
- Laboratoire d'InfoRmatique en Image et Systèmes d'information
Advanced Computer Graphics Spring 2014 K. H. Ko School of Mechatronics Gwangju Institute of Science and Technology.
Real-Time Relief Mapping on Arbitrary Polygonal Surfaces Fabio Policarpo Manuel M. Oliveira Joao L. D. Comba.
Bounding Volume Hierarchy. The space within the scene is divided into a grid. When a ray travels through a scene, it only passes a few boxes within the.
Maths & Technologies for Games Graphics Optimisation - Batching CO3303 Week 5.
컴퓨터 그래픽스 Real-time Rendering 1. Introduction.
COMPUTER GRAPHICS CS 482 – FALL 2015 SEPTEMBER 29, 2015 RENDERING RASTERIZATION RAY CASTING PROGRAMMABLE SHADERS.
Ray Tracing using Programmable Graphics Hardware
What are shaders? In the field of computer graphics, a shader is a computer program that runs on the graphics processing unit(GPU) and is used to do shading.
Ray Tracing by GPU Ming Ouhyoung. Outline Introduction Graphics Hardware Streaming Ray Tracing Discussion.
RENDERING : Global Illumination
1cs426-winter-2008 Notes. 2 Atop operation  Image 1 “atop” image 2  Assume independence of sub-pixel structure So for each final pixel, a fraction alpha.
1 E. Angel and D. Shreiner: Interactive Computer Graphics 6E © Addison-Wesley 2012 Models and Architectures 靜宜大學 資訊工程系 蔡奇偉 副教授 2012.
Computer Graphics Ken-Yi Lee National Taiwan University (the slides are adapted from Bing-Yi Chen and Yung-Yu Chuang)
Veysi ISLER, Department of Computer Engineering, Middle East Technical University, Ankara, TURKEY Spring
Graphics Pipeline Bringing it all together. Implementation The goal of computer graphics is to take the data out of computer memory and put it up on the.
- Introduction - Graphics Pipeline
Week 2 - Friday CS361.
Graphics Processing Unit
Deferred Lighting.
The Graphics Rendering Pipeline
CS451Real-time Rendering Pipeline
Understanding Theory and application of 3D
Models and Architectures
Introduction to Computer Graphics with WebGL
Understanding Theory and application of 3D
Graphics Processing Unit
UMBC Graphics for Games
Frame Buffer Applications
CIS 6930: Chip Multiprocessor: GPU Architecture and Programming
Presentation transcript:

Rasterization and Ray Tracing in Real-Time Applications (Games) Andrew Graff

Overview What are rasterization and ray tracing Why rasterization is King How rasterization works – Pros/Cons How ray tracing works – Pros/Cons Conclusion Questions?

What is rasterization and ray tracing? Rasterization – Given a set of rays and a primitive, efficiently compute the subset of rays hitting the primitive Ray Tracing – Given a ray and a set of primitives, efficiently compute the subset of primitives hit by the ray

Why rasterization is King Early 80’s – Development was being done on several graphical visualization techniques, but the two major were rasterization and ray tracing. – Ray tracing involved complex and time consuming calculations – Rasterization was relatively simple and required little computation time Bottom line: Cost of hardware

How rasterization works

Application – This is the application that has the information about what is to be rendered. – Sends information about vertex locations of scene to graphics hardware.

How rasterization works Vertex shader – Collects information about vertices one triangle at a time – Multiple vertex shaders in parallel – Gathers X, Y, and Z information for each vertex – Also gather light information if object is directly lit by a source – Optimization: Z-culling

How rasterization works Rasterizer – Converts vertex information into pixel representation

How rasterization works Shader – Most difficult stage – Multiple pixel shaders in parallel – Two primary methods; shadow maps and shadow volumes – Texture filtering – Bump mapping

How rasterization works Framebuffer – Memory structure that holds final information and is sampled for display – Multiple ways to sample – May or may not update all pixels (if no update)

Example of shadow volumes

Rasterization Pros – Hardware is ubiquitous. – Hardware is inexpensive. – Primary real-time graphics method, therefore, lots of people developing new techniques and improving all the time. – Rasterization pipeline has evolved to be more flexible allowing for new techniques to be developed. Cons – Difficult to render realistic images. – Requires new and complex algorithms to solve simple problems like shadows, light, and reflection. – Large memory requirements.

How ray tracing works

Ray-generation – Creates a ray that will travel into or through the scene – May be called by the shading stage

How ray tracing works Ray-traversal – This step follows the ray through the scene until a possible intersection is detected – Scene stored in a 3D structure, as ray passes through, queries to see if primitives exist within distance of ray

How ray tracing works Intersection – Calculates if the ray actually intersects a primitive – If it intersects, move on to shading; if not, go back to ray traversal

How ray tracing works Shading – Most complex stage. – Gathers all data and finalizes pixel color – Calls ray-generation to create reflection/refraction rays and shadow rays – Writes to the frame buffer

How ray tracing works Framebuffer – Memory structure that holds final information and is sampled for display – Multiple ways to sample – May or may not update all pixels (if no update)

How ray tracing works

Image rendered using ray tracing

This scene was rendered with a Nvidia GTX 480 using Nvidia’s OptiX ray tracing engine – 1920x1080 resolution – The GTX 480 is capable of processing 48 million rays/s. – Runs at a stunning 4.5 fps!

Ray Tracing Pros – Can create extremely realistic images – Follows line-of-sight so only calculates what can be seen – Shadows can be calculated accurately at time of rendering Cons – Time consuming – No real ray-tracing focused hardware

Conclusion Ray tracing isn’t ready for real-time yet. Potential to combine techniques for more realistic images without sacrificing a lot of performance. More focus on hardware and algorithms could result in real-time ray tracing.

Questions?