Volume Rendering Lecture 21.

Slides:



Advertisements
Similar presentations
7.1 Vis_04 Data Visualization Lecture 7 3D Scalar Visualization Part 2 : Volume Rendering- Introduction.
Advertisements

VIS Group, University of Stuttgart Tutorial T4: Programmable Graphics Hardware for Interactive Visualization Pre-Integrated Splatting (Stefan Roettger)
Direct Volume Rendering. What is volume rendering? Accumulate information along 1 dimension line through volume.
REAL-TIME VOLUME GRAPHICS Christof Rezk Salama Computer Graphics and Multimedia Group, University of Siegen, Germany Eurographics 2006 Real-Time Volume.
Other DVR Algorithms and A Comparison Jian Huang, CS 594, Spring 2002.
CLASS 9 ADVANCE RENDERING RAY TRACING RADIOSITY LIGHT FIELD CS770/870.
CS 551 / CS 645 Antialiasing. What is a pixel? A pixel is not… –A box –A disk –A teeny tiny little light A pixel is a point –It has no dimension –It occupies.
Tuesday February 19 th, 2002 Deep Shadow Maps Tom Lokovic & Eric Veach Pixar Animation Studios Presented by Tom Lechner.
Hank Childs, University of Oregon November 15 th, 2013 Volume Rendering, Part 2.
Volume Rendering Volume Modeling Volume Rendering Volume Modeling Volume Rendering 20 Apr
Direct Volume Rendering (DVR): Ray-casting
University of British Columbia CPSC 314 Computer Graphics Jan-Apr 2007 Tamara Munzner Visualization Week 11,
University of British Columbia CPSC 314 Computer Graphics Jan-Apr 2005 Tamara Munzner Virtual Trackball, Scientific.
University of British Columbia CPSC 314 Computer Graphics Jan-Apr 2005 Tamara Munzner Information Visualization.
1 Scientific Visualization Melanie Tory Acknowledgments: Torsten Möller (Simon Fraser University) Raghu Machiraju (Ohio State University) Klaus Mueller.
Splatting Josh Anon Advanced Graphics 1/29/02. Types of Rendering Algorithms Backward mapping Image plane mapped into data Ray casting Forward mapping.
Introduction to Volume Rendering Presented by Zvi Devir.
High-Quality Volume Graphics on Consumer PC Hardware
Direct Volume Rendering Joe Michael Kniss Scientific Computing and Imaging Institute University of Utah.
Introduction to Volume Visualization Mengxia Zhu Fall 2007.
Volume Visualization Acknowledgements: Torsten Möller (SFU)
CSCE 641: Computer Graphics Image-based Rendering Jinxiang Chai.
Direct Volume Rendering w/Shading via Three- Dimensional Textures.
ITUppsala universitet Data representation and fundamental algorithms Filip Malmberg
Computer Graphics Inf4/MSc Computer Graphics Lecture 9 Antialiasing, Texture Mapping.
lecture 2 : Visualization Basics
Stefan Roettger University of Stuttgart A Two-Step Approach for Interactive Pre-Integrated Volume Rendering of Unstructured Grids VolVis '02 A Two-Step.
19/18/ :34 Graphics II Volume Rendering Session 10.
Optical Models Jian Huang, CS 594, Spring 2002 This set of slides are modified from slides used by Prof. Torsten Moeller, at Simon Fraser University, BC,
REAL-TIME VOLUME GRAPHICS Markus Hadwiger VRVis Research Center, Vienna Eurographics 2006 Real-Time Volume Graphics [04] GPU-Based Ray-Casting.
Lecture 3 : Direct Volume Rendering Bong-Soo Sohn School of Computer Science and Engineering Chung-Ang University Acknowledgement : Han-Wei Shen Lecture.
Interactive Rendering of Meso-structure Surface Details using Semi-transparent 3D Textures Vision, Modeling, Visualization Erlangen, Germany November 16-18,
Scientific Visualization Module 6 Volumetric Algorithms (adapted by S.V. Moore – slides deleted, modified, and added) prof. dr. Alexandru (Alex) Telea.
REAL-TIME VOLUME GRAPHICS Christof Rezk Salama Computer Graphics and Multimedia Group, University of Siegen, Germany Eurographics 2006 Real-Time Volume.
ITUppsala universitet Advanced Computer Graphics Filip Malmberg
Direct Volume Rendering (DVR): Ray-casting Jian Huang This set of slides references slides used by Prof. Torsten Moeller (Simon Fraser), Prof. Han-Wei.
Unstructured Volume Rendering Jian Huang, CS 594, Spring 2002 This set of slides reference slides developed by Prof. Torsten Moeller, SFU, Canada.
CMSC 635 Volume Rendering. Volume data  3D Scalar Field: F(x,y,z) = ?  Implicit functions  Voxel grid  Scalar data  Density  Temperature  Wind.
Volume Rendering CMSC 491/635. Volume data  3D Scalar Field: F(x,y,z) = ?  Implicit functions  Voxel grid  Scalar data  Density  Temperature  Wind.
3D Volume Visualization. Volume Graphics  Maintains a 3D image representation that is close to the underlying fully-3D object (but discrete)  경계표면 (Boundary.
Computer Graphics II University of Illinois at Chicago Volume Rendering Presentation for Computer Graphics II Prof. Andy Johnson By Raj Vikram Singh.
3-D Data cs5984: Information Visualization Chris North.
Volume Visualization Presented by Zhao, hai. What’ volume visualization Volume visualization is the creation of graphical representations of data sets.
Volume Visualization with Ray Casting
CHAPTER 5 CONTOURING. 5.3 CONTOURING Fig 5.7. Relationship between color banding and contouring Contour line (isoline): the same scalar value, or isovalue.
Discontinuous Displacement Mapping for Volume Graphics, Volume Graphics 2006, July 30, Boston, MA Discontinuous Displacement Mapping for Volume Graphics.
CS559: Computer Graphics Final Review Li Zhang Spring 2010.
Direct Volume Rendering
COMPUTER GRAPHICS CS 482 – FALL 2015 SEPTEMBER 29, 2015 RENDERING RASTERIZATION RAY CASTING PROGRAMMABLE SHADERS.
3-D Information cs5764: Information Visualization Chris North.
1 CSCE 441: Computer Graphics Hidden Surface Removal Jinxiang Chai.
Robert S. Laramee 1 Visualization, Lecture Volume Visualization Part 2 (of 4) Direct Volume.
Robert S. Laramee 1 1 Visualization, Lecture #3 Volume Visualization, Part 1 (of 4)
Hank Childs, University of Oregon
Tutorial 7 Real-Time Volume Graphics
Photorealistic Rendering vs. Interactive 3D Graphics
Volume Visualization Chap. 10 November 20 , 2008 Jie Zhang Copyright ©
Image-Based Rendering
Tutorial 7 Real-Time Volume Graphics
The Graphics Rendering Pipeline
Scientific Visualization, Information Visualization I/II Week 5, Thu Jun 9
CSCE 441: Computer Graphics Hidden Surface Removal
Real-Time Volume Graphics [06] Local Volume Illumination
Volume Rendering (2).
CSc4730/6730 Scientific Visualization
Graphics and Multimedia
Volume Rendering Lecture 21.
Volume Rendering.
Plants from Images CS 658.
Visualization CSE 694L Roger Crawfis The Ohio State University.
Presentation transcript:

Volume Rendering Lecture 21

R. Crawfis, Ohio State Univ. Acknowledgements These slides are collected from many sources. A particularly valuable source is the IEEE Visualization conference tutorials. Sources from: Roger Crawfis, Klaus Engel, Markus Hadwiger, Joe Kniss, Aaron Lefohn, Daniel Weiskopf, Torsten Moeller, Raghu Machiraju, Han-Wei Shen and Ross Whitaker 11/8/2018 R. Crawfis, Ohio State Univ.

Visualization of Volumetric Data 11/8/2018 R. Crawfis, Ohio State Univ.

R. Crawfis, Ohio State Univ. Overview Volume rendering refresher Rectilinear scalar fields Direct volume rendering and optical models Volume rendering integral Ray casting and alpha blending Volume resampling on graphics hardware (part 1) Texture-based volume rendering Proxy geometry 2D textured slices 11/8/2018 R. Crawfis, Ohio State Univ.

R. Crawfis, Ohio State Univ. Surface Graphics Traditionally, graphics objects are modeled with surface primitives (surface graphics). Continuous in object space 11/8/2018 R. Crawfis, Ohio State Univ.

Difficulty with Surface Graphics Volumetric object handling gases, fire, smoke, clouds (amorphous data) sampled data sets (MRI, CT, scientific) Peeling, cutting, sculpting any operation that exposes the interior 11/8/2018 R. Crawfis, Ohio State Univ.

R. Crawfis, Ohio State Univ. Volume Graphics Typically defines objects on a 3D raster, or discrete grid in object space Raster grids: structured or unstructured Data sets: sampled, computed, or voxelized Peeling, cutting … are easy with a volume model 11/8/2018 R. Crawfis, Ohio State Univ.

Volume Graphics & Surface Graphics 11/8/2018 R. Crawfis, Ohio State Univ.

R. Crawfis, Ohio State Univ. Volume Graphics - Cons Disadvantages: Large memory and processing power Object- space aliasing Discrete transformations Notion of objects is different 11/8/2018 R. Crawfis, Ohio State Univ.

R. Crawfis, Ohio State Univ. Volume Graphics - Pros Advantages: Required for sampled data and amorphous phenomena Insensitive to scene complexity Insensitive to surface type Allows block operations 11/8/2018 R. Crawfis, Ohio State Univ.

Volume Graphics Applications (simulation data set) Scientific data set visualization 11/8/2018 R. Crawfis, Ohio State Univ.

More Volume Graphics Applications (artistic data set) Amorphous entity visualization smoke, steam, fire 11/8/2018 R. Crawfis, Ohio State Univ.

Volume Rendering Algorithms Intermediate geometry based (marching cube) Direct volume rendering Splatting (forward projection) Ray Casting (backward projection) or resampling Cell Projection / scan-conversion Image warping 11/8/2018 R. Crawfis, Ohio State Univ.

How to visualize? slice Slicing: display the volume data, mapped to colors, along a slice plane Iso-surfacing: generate opaque and semi-opaque surfaces on the fly Transparency effects: volume material attenuates reflected or emitted light Semi-transparent material Iso-surface 11/8/2018 R. Crawfis, Ohio State Univ.

R. Crawfis, Ohio State Univ. Overview Volume rendering refresher Rectilinear scalar fields Direct volume rendering and optical models Volume rendering integral Ray casting and alpha blending Volume resampling on graphics hardware (part 1) Texture-based volume rendering Proxy geometry 2D textured slices 11/8/2018 R. Crawfis, Ohio State Univ.

R. Crawfis, Ohio State Univ. Volume Data Continuous scalar field in 3D Discrete volume: voxels Sampling Reconstruction 11/8/2018 R. Crawfis, Ohio State Univ.

Direct Volume Rendering Render volume without extracting any surfaces (DVR) Map scalar values to optical properties (color, opacity) Need optical model Solve volume rendering integral for viewing rays into the volume 11/8/2018 R. Crawfis, Ohio State Univ.

Direct Rendering Pipeline I Detection of Structures Shading Reconstruct (interpolate/filter) color/opacity Composite Final Image Validation (change parameters) 11/8/2018 R. Crawfis, Ohio State Univ.

Direct Rendering Pipeline Classify Shade Reconstruct Visibility order Composite Validate 11/8/2018 R. Crawfis, Ohio State Univ.

R. Crawfis, Ohio State Univ. Early Methods Before 1988 Did not consider transparency did not consider sophisticated light transportation theory were concerned with quick solutions hence more or less applied to binary data 11/8/2018 R. Crawfis, Ohio State Univ.

Back-To-Front - Frieder et al 1985 A viewing algorithm that traverses and renders the scene objects in order of decreasing distance from the observer. Maybe derived from a standard - “Painters Algorithm” 1. 2. 3. 11/8/2018 R. Crawfis, Ohio State Univ.

Back-To-Front - Frieder et al 1985 Start traversal at point farthest from the observer, 2 orders Either x or y can be innermost loop If x is innermost, display order will be A, C, B, D If y is innermost, display order will be C, A, D, B Both result in the correct image! If voxel (x,y) is (partially) obscured by voxel (x’,y’), then x <= x’ and y <= y’. So project (x,y) before (x’,y’) and the image will be correct 11/8/2018 R. Crawfis, Ohio State Univ.

Back-To-Front - Frieder et al 1985 Axis traversal can still be done arbitrarily, 8 orders Data can be read and rendered as slices Note: voxel projection is NOT in order of strictly decreasing distance, so this is not the painter’s algorithm. Perspective? 11/8/2018 R. Crawfis, Ohio State Univ.

R. Crawfis, Ohio State Univ. Ray Casting Goal: numerical approximation of the volume rendering integral Resample volume at equispaced locations along the ray Reconstruct at continuous location via tri-linear interpolation Approximate integral 11/8/2018 R. Crawfis, Ohio State Univ.

R. Crawfis, Ohio State Univ. Ray Tracing “another” typical method from traditional graphics Typically we only deal with primary rays - hence: ray-casting a natural image-order technique as opposed to surface graphics - how do we calculate the ray/surface intersection??? Since we have no surfaces - we need to carefully step through the volume 11/8/2018 R. Crawfis, Ohio State Univ.

R. Crawfis, Ohio State Univ. Ray Casting Since we have no surfaces - we need to carefully step through the volume: a ray is cast into the volume, sampling the volume at certain intervals The sampling intervals are usually equi-distant, but don’t have to be (e.g. importance sampling) At each sampling location, a sample is interpolated / reconstructed from the grid voxels popular filters are: nearest neighbor (box), trilinear (tent), Gaussian, cubic spline Along the ray - what are we looking for? 11/8/2018 R. Crawfis, Ohio State Univ.

Basic Idea of Ray-casting Pipeline Data are defined at the corners of each cell (voxel) The data value inside the voxel is determined using interpolation (e.g. tri-linear) Composite colors and opacities along the ray path Can use other ray-traversal schemes as well c1 c2 c3 11/8/2018 R. Crawfis, Ohio State Univ.

Evaluation = Compositing “over” operator - Porter & Duff 1984 11/8/2018 R. Crawfis, Ohio State Univ.

Compositing: Over Operator cf = (0,1,0) af = 0.4 c = af*cf + (1 - af)*ab*cb a = af + (1 - af)*ab c = (0.54,0.4,0) a = 0.94 cb = (1,0,0) ab = 0.9 11/8/2018 R. Crawfis, Ohio State Univ.

Volumetric Ray Integration color opacity 1.0 object (color, opacity) 11/8/2018 R. Crawfis, Ohio State Univ.

R. Crawfis, Ohio State Univ. Interpolation Closest value Weighted average 11/8/2018 R. Crawfis, Ohio State Univ.

Tri-Linear Interpolation 11/8/2018 R. Crawfis, Ohio State Univ.

Interpolation Kernels volumetric compositing color opacity 1.0 object (color, opacity) 11/8/2018 R. Crawfis, Ohio State Univ.

Interpolation Kernels volumetric compositing color opacity color c = c s s(1 - ) + c opacity  =  s (1 - ) +  1.0 object (color, opacity) 11/8/2018 R. Crawfis, Ohio State Univ.

Interpolation Kernels volumetric compositing color opacity 1.0 object (color, opacity) 11/8/2018 R. Crawfis, Ohio State Univ.

Interpolation Kernels volumetric compositing color opacity 1.0 object (color, opacity) 11/8/2018 R. Crawfis, Ohio State Univ.

Interpolation Kernels volumetric compositing color opacity 1.0 object (color, opacity) 11/8/2018 R. Crawfis, Ohio State Univ.

Interpolation Kernels volumetric compositing color opacity 1.0 object (color, opacity) 11/8/2018 R. Crawfis, Ohio State Univ.

Interpolation Kernels volumetric compositing color opacity 1.0 object (color, opacity) 11/8/2018 R. Crawfis, Ohio State Univ.

Interpolation Kernels volumetric compositing color opacity object (color, opacity) 11/8/2018 R. Crawfis, Ohio State Univ.

R. Crawfis, Ohio State Univ. Levoy - Pipeline Acquired values Data preparation Prepared values shading classification Voxel colors Voxel opacities Ray-tracing / resampling Ray-tracing / resampling Sample colors Sample opacities compositing 11/8/2018 R. Crawfis, Ohio State Univ. Image Pixels

R. Crawfis, Ohio State Univ. Ray Marching Use a 3D DDA algorithm to step through regular or rectilinear grids. 11/8/2018 R. Crawfis, Ohio State Univ.

Adaptive Ray Sampling [Hanrahan et al 92] Sampling rate is adjusted to the significance of the traversed data 11/8/2018 R. Crawfis, Ohio State Univ.

R. Crawfis, Ohio State Univ. Classification How do we obtain the emission and absorption values? scalar value s T(s) emission RGB absorption A 11/8/2018 R. Crawfis, Ohio State Univ.

R. Crawfis, Ohio State Univ. Ray Traversal Schemes Intensity Max Average Accumulate First Depth 11/8/2018 R. Crawfis, Ohio State Univ.

R. Crawfis, Ohio State Univ. Ray Traversal - First Intensity First Depth First: extracts iso-surfaces (again!) done by Tuy&Tuy ’84 11/8/2018 R. Crawfis, Ohio State Univ.

Ray Traversal - Average Intensity Average Depth Average: produces basically an X-ray picture 11/8/2018 R. Crawfis, Ohio State Univ.

R. Crawfis, Ohio State Univ. Ray Traversal - MIP Intensity Max Depth Max: Maximum Intensity Projection used for Magnetic Resonance Angiogram 11/8/2018 R. Crawfis, Ohio State Univ.

Maximum Intensity Projection (1) No emission or absorption Pixel value is maximum scalar value along the viewing ray Advantage: no transfer function required Drawback: misleading depth information Works well for MRI data (esp. angiography) Maximum Smax Scalar value S s0 s ray 11/8/2018 R. Crawfis, Ohio State Univ.

Maximum Intensity Projection (2) Emission/Absorption MIP 11/8/2018 R. Crawfis, Ohio State Univ.

Ray Traversal - Accumulate Intensity Accumulate Depth Accumulate: make transparent layers visible! Levoy ‘88 11/8/2018 R. Crawfis, Ohio State Univ.

R. Crawfis, Ohio State Univ. Transfer function v = f (x) “ here’s the edge ” v x a v 11/8/2018 v R. Crawfis, Ohio State Univ.