CGI2014 SPONSORED BY Ray tracing via GPU Rasterization Wei Hu 1 Yangyu Huang 1 Fan Zhang 1 Guodong Yuan 2 1 Beijing University of Chemical Technology,

Slides:



Advertisements
Similar presentations
Exploration of advanced lighting and shading techniques
Advertisements

Christian Lauterbach COMP 770, 2/16/2009. Overview  Acceleration structures  Spatial hierarchies  Object hierarchies  Interactive Ray Tracing techniques.
Computer graphics & visualization Global Illumination Effects.
A Coherent Grid Traversal Algorithm for Volume Rendering Ioannis Makris Supervisors: Philipp Slusallek*, Céline Loscos *Computer Graphics Lab, Universität.
Chunhui Yao 1 Bin Wang 1 Bin Chan 2 Junhai Yong 1 Jean-Claude Paul 3,1 1 Tsinghua University, China 2 The University of Hong Kong, China 3 INRIA, France.
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.
Two Methods for Fast Ray-Cast Ambient Occlusion Samuli Laine and Tero Karras NVIDIA Research.
Part I: Basics of Computer Graphics
Albert Mas Ignacio Martín Gustavo Patow Fast Inverse Reflector Design FIRD Graphics Group of Girona Institut d’Informàtica i Aplicacions Universitat de.
I3D Fast Non-Linear Projections using Graphics Hardware Jean-Dominique Gascuel, Nicolas Holzschuch, Gabriel Fournier, Bernard Péroche I3D 2008.
Cost-based Workload Balancing for Ray Tracing on a Heterogeneous Platform Mario Rincón-Nigro PhD Showcase Feb 17 th, 2012.
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.
Computer Graphics (Fall 2005) COMS 4160, Lecture 21: Ray Tracing
Adapted from: CULLIDE: Interactive Collision Detection Between Complex Models in Large Environments using Graphics Hardware Naga K. Govindaraju, Stephane.
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.
RT08, August ‘08 Large Ray Packets for Real-time Whitted Ray Tracing Ryan Overbeck Columbia University Ravi Ramamoorthi Columbia University William R.
Ray Tracing Primer Ref: SIGGRAPH HyperGraphHyperGraph.
Ray Tracing and Photon Mapping on GPUs Tim PurcellStanford / NVIDIA.
Interactive Rendering of Meso-structure Surface Details using Semi-transparent 3D Textures Vision, Modeling, Visualization Erlangen, Germany November 16-18,
Geometry Textures Rodrigo de Toledo, ( PhD candidate at LORIA-INRIA) (Researcher at Tecgraf, PUC-Rio) Bin Wang and Bruno Levy.
On a Few Ray Tracing like Algorithms and Structures. -Ravi Prakash Kammaje -Swansea University.
1 Rendering Geometry with Relief Textures L.Baboud X.Décoret ARTIS-GRAVIR/IMAG-INRIA.
Accelerating Statistical Static Timing Analysis Using Graphics Processing Units Kanupriya Gulati and Sunil P. Khatri Department of ECE, Texas A&M University,
Global Illumination with a Virtual Light Field Mel Slater Jesper Mortensen Pankaj Khanna Insu Yu Dept of Computer Science University College London
Shadow Mapping Chun-Fa Chang National Taiwan Normal University.
1 Real-time visualization of large detailed volumes on GPU Cyril Crassin, Fabrice Neyret, Sylvain Lefebvre INRIA Rhône-Alpes / Grenoble Universities Interactive.
Accelerated Stereoscopic Rendering using GPU François de Sorbier - Université Paris-Est France February 2008 WSCG'2008.
Department of Computer Science 1 Beyond CUDA/GPUs and Future Graphics Architectures Karu Sankaralingam University of Wisconsin-Madison Adapted from “Toward.
Hierarchical Penumbra Casting Samuli Laine Timo Aila Helsinki University of Technology Hybrid Graphics, Ltd.
M. Jędrzejewski, K.Marasek, Warsaw ICCVG, Multimedia Chair Computation of room acoustics using programable video hardware Marcin Jędrzejewski.
- Laboratoire d'InfoRmatique en Image et Systèmes d'information
University of Montreal & iMAGIS A Light Hierarchy for Fast Rendering of Scenes with Many Lights E. Paquette, P. Poulin, and G. Drettakis.
Ray Tracing Fall, Introduction Simple idea  Forward Mapping  Natural phenomenon infinite number of rays from light source to object to viewer.
Graphics Interface 2009 The-Kiet Lu Kok-Lim Low Jianmin Zheng 1.
Discontinuous Displacement Mapping for Volume Graphics, Volume Graphics 2006, July 30, Boston, MA Discontinuous Displacement Mapping for Volume Graphics.
From Turing Machine to Global Illumination Chun-Fa Chang National Taiwan Normal University.
COMPUTER GRAPHICS CS 482 – FALL 2015 SEPTEMBER 29, 2015 RENDERING RASTERIZATION RAY CASTING PROGRAMMABLE SHADERS.
Ray Tracing by GPU Ming Ouhyoung. Outline Introduction Graphics Hardware Streaming Ray Tracing Discussion.
Radiance Cache Splatting: A GPU-Friendly Global Illumination Algorithm P. Gautron J. Křivánek K. Bouatouch S. Pattanaik.
Path/Ray Tracing Examples. Path/Ray Tracing Rendering algorithms that trace photon rays Trace from eye – Where does this photon come from? Trace from.
09/23/03CS679 - Fall Copyright Univ. of Wisconsin Last Time Reflections Shadows Part 1 Stage 1 is in.
Real-Time ray casting for virtual reality
GVDB: Raytracing Sparse Voxel Database Structures on the GPU Rama Hoetzlein, NVIDIA High Performance Graphics 2016 Trinity College, Dublin.
CSE 167 [Win 17], Lecture 15: Ray Tracing Ravi Ramamoorthi
Real-Time Soft Shadows with Adaptive Light Source Sampling
Photorealistic Rendering vs. Interactive 3D Graphics
Hybrid Ray Tracing and Path Tracing of Bezier Surfaces using a mixed hierarchy Rohit Nigam, P. J. Narayanan CVIT, IIIT Hyderabad, Hyderabad, India.
Deep Partitioned Shadow Volumes Using Stackless and Hybrid Traversals
Graphics Processing Unit
Deferred Lighting.
Real-Time Ray Tracing Stefan Popov.
Ravish Mehra Subodh Kumar IIT Delhi IIT Delhi
3D Object Representations
From Turing Machine to Global Illumination
Hybrid Ray Tracing of Massive Models
© University of Wisconsin, CS559 Fall 2004
Visibility Computations
Sorting and Searching Tim Purcell NVIDIA.
UMBC Graphics for Games
CS5500 Computer Graphics May 29, 2006
Current Research in VR Display Technology
Ray Tracing on Programmable Graphics Hardware
Anti-aliased and accelerated ray tracing
02 | What DirectX Can Do and Creating the Main Game Loop
Frame Buffer Applications
GEARS: A General and Efficient Algorithm for Rendering Shadows
Real-time Global Illumination with precomputed probe
Presentation transcript:

CGI2014 SPONSORED BY Ray tracing via GPU Rasterization Wei Hu 1 Yangyu Huang 1 Fan Zhang 1 Guodong Yuan 2 1 Beijing University of Chemical Technology, Beijing 2 Tsinghua University, Beijing

CGI2014 SPONSORED BY CGI2014 The Goal Input: A ray and scene objects Output: The intersection position(if exists) 2

CGI2014 SPONSORED BY CGI2014 GPU Rasterization Method Sampling-based Environment Map and Shadow Map approximate effects Layered Depth Images(LDI) too slow for accurate ray-scene intersections GPU Rendering of Secondary Effects[K. Burger et al. 2007] Voxel-based Uniform Grid cost too much memory for accurate ray-scene intersections Sparse Voxel Octree(SVO) use cone tracing to generate glossy reflection, not applicable for rendering fully dynamic scenes Gigavoxels: ray-guided streaming for efficient and detailed voxel rendering[C. Crassin et al. 2009] 3

CGI2014 SPONSORED BY CGI2014 Our Method Introduction Our idea is simple but very effective Combine low resolution uniform grid and high resolution A-buffer(LDI) Achieve balance between accuracy and performance Support various GI effects Ray casting Whitted ray tracing(reflections/refractions, shadows) Ambient occlusion Soft shadow Path tracing 4

CGI2014 SPONSORED BY CGI2014 Our Ray-tracing Algorithm Scene Representation Two-level representation of scene(All generated in one pass) One uniform voxel grid(low resolution, one 3D texture) Three A-buffers(high resolution, three texture buffers) A-buffer sorting(One pass) Sort each A-buffer by it’s main axis from near to far(x, y, z axis) Deferred shading(One pass) Compute first ray-tracing scene informations(vertex, normal, texture, etc.) 5

CGI2014 SPONSORED BY CGI2014 Our Ray-tracing Algorithm 6

CGI2014 SPONSORED BY CGI2014 Our Ray-tracing Algorithm 7

CGI2014 SPONSORED BY CGI2014 Our Ray-tracing Algorithm Ray-scene Intersection Traverse the ray on the coarse- level uniform grid in the scene(use 3D-DDA) Select a A-buffer from three A- buffers Traverse the ray on the selected precise A-buffer in the non- empty grid(2D-DDA) determine whether the point is inside scene objects by comparing depth values in sorted link-listed values 8

CGI2014 SPONSORED BY CGI2014 Our Ray-tracing Algorithm Improve the performance of ray-tracing in A-buffer Linear search accurate but slow reflection, refration 1-step binary search fast but Inaccurate ambient occlusion, path tracing 3-step binary search balance the accuracy and speed shadow 9 A non-empty voxel search in A-buffer

CGI2014 SPONSORED BY CGI2014 Implementation Challenges Ray-tracing in multiple layers Reasons: Shader don’t support recursion Solutions: Replace recursion by loops Forward compute results Backward combine results 10 P1 P0 P2 P3 P4 Screen Scene

CGI2014 SPONSORED BY CGI2014 Implementation Challenges Low frequency effect need large sampling rays Reasons: Shader limit sampling rays number Solutions: Implement multiple-pass rendering pipeline Two buffer(FBcurr and FBcomp) maintain result One for current result One for final result 11

CGI2014 SPONSORED BY CGI2014 Implementation Challenges 12 Multiple-pass rendering methods General rendering For i = 0:passNum-1 Compute Fbcurr Fbcomp += Fbcurr / passNum End updateScene() Progressive rendering For i = 0:inf Compute Fbcurr Fbcomp = (i * Fbcomp + Fbcurr) / (i + 1) updateScene() End

CGI2014 SPONSORED BY CGI2014 Experimental Results & Discussion 13 Ray Casting Ray Tracing Ambient Occlusion Path Tracing Result Size: All generated with full dynamic scenes

CGI2014 SPONSORED BY CGI2014 Experimental Results & Discussion 14 Language: OpenGL/GLSL Equipment: Intel Xeon R CPU E GHz NVidia GeForce R780 GTX graphics card A-buffer: Uniform grid: sqrt(3n)^3 ugrid is a better choice for n^2 A-buffer Screen buffer: Trace depth: 3 Fully dynamic scene: uniform voxel grids and A-buffers are reconstructed for each frame

CGI2014 SPONSORED BY CGI2014 Experimental Results & Discussion 15 A display of videovideo All effects are generated by our method Fully dynamic scene

CGI2014 SPONSORED BY CGI2014 Experimental Results & Discussion Compare with optix 16 Whitted ray tracing effect Accuracy of ray-scene intersection Result: Our results closely match the references(Optix) OursOptix

CGI2014 SPONSORED BY CGI2014 Experimental Results & Discussion Compare with uniform grid 17 Ambient occlusion effect Ours: 64^3 / 256 / 64 / 16.8fps Ugrid: 64^3 / 64 / 46.3fps Ugrid: 256^3 / 96 / 7.7fps Result: Reach the approximate same effect, our method is faster than uniform grid

CGI2014 SPONSORED BY CGI2014 Experimental Results & Discussion Compare with sparse voxel octree 18 Result: Better for full dynamic scenes, for which high-precision results are usually required. SceneMethodConstructionTracing RayOthersTotal Scene1Ours13.2ms11.6ms2.7ms27.5ms Scene1SVO42.8ms84.6ms3.8ms131.2ms Scene2Ours10.8ms8.7ms2.6ms22.1ms Scene2SVO35.6ms79.6ms2.9ms109.1ms

CGI2014 SPONSORED BY CGI2014 Comparison 19 OursSVOUGLDI Time Low frequency High frequency +10 Dynamic +100 Accuracy Memory Scene 0+10 bad general good Time slow: -1 medium: 0 fast: +1 Accuracy low: -1 medium: 0 high: +1 Memory large: -1 medium: 0 small: +1 Scene small: -1 medium: 0 large: +1

CGI2014 SPONSORED BY CGI2014 Applications Ward BRDF 20

CGI2014 SPONSORED BY CGI2014 Applications Soft shadow 21

CGI2014 SPONSORED BY CGI2014 Applications Slightly larger scene 22

CGI2014 SPONSORED BY CGI2014 Limitations Gracile objects might be missed in A-buffer Large and complex scenes may beyond the capability of current GPU When tracing, a ray can‘t branch into two rays in multiple layers 23

CGI2014 SPONSORED BY CGI2014 Conclusion & Future Works Conclusion A novel ray-scene intersection technique Balance the accuracy and performance A new ray-tracing framework Wide range use in GI effects Future works Improve the intersection accuracy Accelerate representation construction Apply to more large and complex scenes 24

CGI2014 SPONSORED BY CGI2014 Thanks & Questions 25 Contact me: Yang-yu Huang the second year of master's degree