Jonathan M Chye Technical Supervisor : Mr Matthew Bett 2010.

Slides:



Advertisements
Similar presentations
Local, Deformable Precomputed Radiance Transfer
Advertisements

Exploration of advanced lighting and shading techniques
Ray tracing. New Concepts The recursive ray tracing algorithm Generating eye rays Non Real-time rendering.
Exploration of bump, parallax, relief and displacement mapping
Computer graphics & visualization Global Illumination Effects.
Environment Mapping CSE 781 – Roger Crawfis
Real-Time Rendering Self-Shadowing
Computer Graphics In4/MSc Computer Graphics Lecture Notes #15 Illumination III View Independent Rendering.
Zhao Dong 1, Jan Kautz 2, Christian Theobalt 3 Hans-Peter Seidel 1 Interactive Global Illumination Using Implicit Visibility 1 MPI Informatik Germany 2.
Spherical Harmonic Lighting of Wavelength-dependent Phenomena Clifford Lindsay, Emmanuel Agu Worcester Polytechnic Institute (USA)
Week 10 - Monday.  What did we talk about last time?  Global illumination  Shadows  Projection shadows  Soft shadows.
3D Graphics Rendering and Terrain Modeling
Photon Mapping. How did I use it 10 years ago? Why might you want to use it tomorrow?
 Engineering Graphics & Introductory Design 3D Graphics and Rendering REU Modeling Course – June 13 th 2014.
1. What is Lighting? 2 Example 1. Find the cubic polynomial or that passes through the four points and satisfies 1.As a photon Metal Insulator.
Real-Time Rendering SPEACIAL EFFECTS Lecture 03 Marina Gavrilova.
Real-time Dynamic HDR Based Lighting in a Static Environment Marcus Hennix Daniel Johansson Gunnar Johansson Martin Wassborn.
Real-Time Rendering Paper Presentation Imperfect Shadow Maps for Efficient Computation of Indirect Illumination T. Ritschel T. Grosch M. H. Kim H.-P. Seidel.
Rasterization and Ray Tracing in Real-Time Applications (Games) Andrew Graff.
Photon Tracing with Arbitrary Materials Patrick Yau.
(conventional Cartesian reference system)
Rendering theory & practice. Introduction  We’ve looked at modelling, surfacing and animating.  The final stage is rendering.  This can be the most.
Skin Rendering GPU Graphics Gary J. Katz University of Pennsylvania CIS 665 Adapted from David Gosselin’s Power Point and article, Real-time skin rendering,
3D Graphics Processor Architecture Victor Moya. PhD Project Research on architecture improvements for future Graphic Processor Units (GPUs). Research.
Final Gathering on GPU Toshiya Hachisuka University of Tokyo Introduction Producing global illumination image without any noise.
IN4151 Introduction 3D graphics 1 Introduction to 3D computer graphics part 2 Viewing pipeline Multi-processor implementation GPU architecture GPU algorithms.
Radiosity Syed-Areeb A. Sabzposh S. Yaris A. Sabzposh CSC /11/2004.
7M836 Animation & Rendering
Precomputed Radiance Transfer Harrison McKenzie Chapter.
Fast Global-Illumination on Dynamic Height Fields
6.1 Vis_04 Data Visualization Lecture 6 - A Rough Guide to Rendering.
Paper by Alexander Keller
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.
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
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
TERRAIN SET09115 Intro to Graphics Programming. Breakdown  Basics  What do we mean by terrain?  How terrain rendering works  Generating terrain 
CS 376 Introduction to Computer Graphics 04 / 16 / 2007 Instructor: Michael Eckmann.
CS447/ Realistic Rendering -- Radiosity Methods-- Introduction to 2D and 3D Computer Graphics.
1 Introduction to Computer Graphics with WebGL Ed Angel Professor Emeritus of Computer Science Founding Director, Arts, Research, Technology and Science.
An Efficient Representation for Irradiance Environment Maps Ravi Ramamoorthi Pat Hanrahan Stanford University SIGGRAPH 2001 Stanford University SIGGRAPH.
COMPUTER GRAPHICS CSCI 375. What do I need to know?  Familiarity with  Trigonometry  Analytic geometry  Linear algebra  Data structures  OOP.
Eighty-color-channel lighting Zoltán Márton Cecília Sik Lányi University of Pannonia Egyetem u. 10.
Quick survey about PRT Valentin JANIAUT KAIST (Korea Advanced Institute of Science and Technology)
Introduction to Radiosity Geometry Group Discussion Session Jiajian (John) Chen 9/10/2007.
Fast Approximation to Spherical Harmonics Rotation
Radiosity Jian Huang, CS594, Fall 2002 This set of slides reference the text book and slides used at Ohio State.
Global Illumination: Radiosity, Photon Mapping & Path Tracing Rama Hoetzlein, 2009 Lecture Notes Cornell University.
- Laboratoire d'InfoRmatique en Image et Systèmes d'information
Global Illumination. Local Illumination  the GPU pipeline is designed for local illumination  only the surface data at the visible point is needed to.
Spherical Harmonics in Actual Games
VLF Rendering & Implementation Details Virtual Light Field Group University College London GR/R13685/01 Research funded by: Jesper.
Real-Time Dynamic Shadow Algorithms Evan Closson CSE 528.
Render methods. Contents Levels of rendering Wireframe Plain shadow Gouraud Phong Comparison Gouraud-Phong.
RENDERING : Global Illumination
Ambient Occlusion Patrick Cozzi University of Pennsylvania CIS Fall 2013.
Radiance Cache Splatting: A GPU-Friendly Global Illumination Algorithm P. Gautron J. Křivánek K. Bouatouch S. Pattanaik.
Light Animation with Precomputed Light Paths on the GPU László Szécsi, TU Budapest László Szirmay-Kalos, TU Budapest Mateu Sbert, U of Girona.
Advanced Lighting With Spherical Harmonics. What Is the Algorithm.
Computer Graphics: Illumination
3D Graphics Rendering PPT By Ricardo Veguilla.
Understanding Theory and application of 3D
The Rendering Equation
Efficient Importance Sampling Techniques for the Photon Map
Frame Buffer Applications
Directional Occlusion with Neural Network
Real-time Global Illumination with precomputed probe
Presentation transcript:

Jonathan M Chye Technical Supervisor : Mr Matthew Bett 2010

 Apply GI techniques to outdoor terrain  Cheap and efficient  OpenGL and C++  Terrain represented by height maps  Spherical Harmonics lighting + ray tracing  Features:  Dynamically generated terrain read from height maps  Shadowing – soft shadows, self-shadowing, dynamically shadowed  Fully lit – indirect lighting  Textured  Good frame rates

 Global Illumination – What is it?  Algorithms used to enhance realism using lighting for a 3D scene  Also takes into account light reflected by objects from light source – indirect illumination  Common algorithms – Ray tracing, ambient occlusion, photon mapping  Why GI?  Photorealism  Important in many applications – flight simulators, geographical data analysis  CGI – entertainment industry

 Rendering equation :  equilibrium radiance leaving a point is given as the sum of emitted plus reflected radiance under a geometric optics approximation (Wikipedia)  GI algorithms tries to solve this equation  Ray tracing, photon mapping, radiosity and ambient occlusion.

 Aim :  real-time demo application featuring a heightmap-based terrain lit using an efficient Global Illumination algorithm  realistic environmental, area lights found in outdoor landscapes, soft shadows and indirect lighting  algorithm should allow to scale the complexity of calculations on demand

 Project Planning  Gantt Chart  Two main phases – Algorithm & Implementation  Vanilla Framework  Testing and implementation

 Appmodes :  ALP  SH basis function

 SH samples in 3D space + simple mathematically-defined spherical function and its coarser SH approximation  Environmental light function coming from a HDR light sphere - projected into SH space

 Environmental light function on a unit sphere, with the RGB channels combined and scaled  Simple 3D terrain model

 Terrain lit by simple OpenGL lighting  Terrain mesh lit using the Un- shadowed SH Global Illumination method

 Mesh lit using the Shadowed SH GI method  Mesh lit using the Inter-reflected Shadowed SH GI method

 Final fully textured and lit using full GI

Indirect Lighting Find neighbouring vertices and indirect light emitted using same ray tracer algorithm as shadowed lighting. Results stored in separate buffer. Results then added to previous Shadowed lighting values Shadowed lighting Custom Ray Tracer algorithm used to calculate self-shadowing of vertices. Algorithm shoots a “ray” along the axis calculated from the spherical sample direction vector, using current vertex position as origin. This prevents occluded light directions being taken into account in encoding vertex SH coefficients Basic un-shadowed lighting Projection function - calculates SH coefficients using spherical samples array. Encodes both vertex colour and normal using SH Calculate final (real) vertex colour every frame by combining its own SH coefficients and real-time rotated light ones Data Organisation Structure to store SH coefficient calculations and encoded spherical function (environment light) at given point of the sphere values. Vertex structure - holds Cartesian coordinates, normal vector, diffuse colour, texture coordinates and 3 arrays of SH coefficients.

 Evaluation protocol ?  Performance - FPScounter  Visual Judgement  Console window – debug information

 First attempts – shaders  GLSL & Cg – Failed attempt  Fully CPU dependant code  Results as predicted – model lit correctly  Soft shadows – working  Indirect lighting – added realism

 Summary :  Project successful – implemented & observed GI  Very time consuming – literature  Technical issues  Trial & Error  Successful, lightweight and compact implementation of a real-time Global Illumination algorithm with significantly low hardware requirements

 Further optimise algorithm  Storage of hit vertices during the indirect light preprocessing step  Usage of single-precision floats instead of double-precision ones  Shifting some of the real-time calculations to the GPU  The ray tracer could use the concept of multi-level height and colour pyramids used in (Nowrouzezahrai and Snyder, 2009)  Addition of dynamic objects  Making solution fully real time