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

Envisioning Information Lecture 14 – Scientific Visualization
15.1 Si23_03 SI23 Introduction to Computer Graphics Lecture 15 – Visible Surfaces and Shadows.
8.1si31_2001 SI31 Advanced Computer Graphics AGR Lecture 8 Polygon Rendering.
VIS Group, University of Stuttgart Tutorial T4: Programmable Graphics Hardware for Interactive Visualization Pre-Integrated Splatting (Stefan Roettger)
Graphics Pipeline.
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.
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.
HCI 530 : Seminar (HCI) Damian Schofield.
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)
Volume Rendering using Graphics Hardware
Hidden Surface Removal
Lecture 3 : Direct Volume Rendering Bong-Soo Sohn School of Computer Science and Engineering Chung-Ang University Acknowledgement : Han-Wei Shen Lecture.
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
Week 2 - Friday.  What did we talk about last time?  Graphics rendering pipeline  Geometry Stage.
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.
Computer Graphics II University of Illinois at Chicago Volume Rendering Presentation for Computer Graphics II Prof. Andy Johnson By Raj Vikram Singh.
Lecture 6 Rasterisation, Antialiasing, Texture Mapping,
Volume Visualization with Ray Casting
1 Angel: Interactive Computer Graphics5E © Addison- Wesley 2009 Image Formation Fundamental imaging notions Fundamental imaging notions Physical basis.
Direct Volume Rendering
COMPUTER GRAPHICS CS 482 – FALL 2015 SEPTEMBER 29, 2015 RENDERING RASTERIZATION RAY CASTING PROGRAMMABLE SHADERS.
Hardware Accelerated Volume Rendering Using PC Hardware CSE564 Final Demo Evan Closson.
1 CSCE 441: Computer Graphics Hidden Surface Removal Jinxiang Chai.
Applications and Rendering pipeline
Volume Rendering (3) Hardware Texture Mapping Methods.
Robert S. Laramee 1 1 Visualization, Lecture #3 Volume Visualization, Part 1 (of 4)
Hank Childs, University of Oregon
Discrete Techniques.
Week 7 - Monday CS361.
Photorealistic Rendering vs. Interactive 3D Graphics
Week 2 - Friday CS361.
Volume Visualization Chap. 10 November 20 , 2008 Jie Zhang Copyright ©
Image-Based Rendering
Interactive Computer Graphics
Models and Architectures
Real-time Rendering Lab 4
Scientific Visualization, Information Visualization I/II Week 5, Thu Jun 9
Volume Rendering Lecture 21.
Volume Visualization Chap. 10 December 3 , 2009 Jie Zhang Copyright ©
Models and Architectures
CSCE 441: Computer Graphics Hidden Surface Removal
Models and Architectures
Introduction to Computer Graphics with WebGL
Real-Time Volume Graphics [06] Local Volume Illumination
Volume Rendering (2).
CSc4730/6730 Scientific Visualization
Hank Childs, University of Oregon
Volume Rendering.
Models and Architectures
Visualization CSE 694L Roger Crawfis The Ohio State University.
Models and Architectures
Chapter 14 Shading Models.
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 12/3/2018 R. Crawfis, Ohio State Univ.

Visualization of Volumetric Data Direct volume rendering of scalar fields Flow visualization in 3D Focus on regular grids 12/3/2018 R. Crawfis, Ohio State Univ.

Visualization of Volumetric Data 12/3/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 12/3/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 12/3/2018 R. Crawfis, Ohio State Univ.

R. Crawfis, Ohio State Univ. Volume Graphics 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 12/3/2018 R. Crawfis, Ohio State Univ.

Volume Graphics & Surface Graphics 12/3/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 12/3/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 12/3/2018 R. Crawfis, Ohio State Univ.

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

More Volume Graphics Applications (artistic data set) Amorphous entity visualization smoke, steam, fire 12/3/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 12/3/2018 R. Crawfis, Ohio State Univ.

R. Crawfis, Ohio State Univ. Volume Data Continuous scalar field in 3D Discrete volume: voxels Sampling Reconstruction 12/3/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 12/3/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) 12/3/2018 R. Crawfis, Ohio State Univ.

Direct Rendering Pipeline Classify Shade Reconstruct Visibility order Composite Validate 12/3/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 12/3/2018 R. Crawfis, Ohio State Univ.

R. Crawfis, Ohio State Univ. Ray Traversal Schemes Intensity Max Average Accumulate First Depth 12/3/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 12/3/2018 R. Crawfis, Ohio State Univ.

Ray Traversal - Average Intensity Average Depth Average: produces basically an X-ray picture 12/3/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 12/3/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 12/3/2018 R. Crawfis, Ohio State Univ.

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

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

Texture-Based Volume Rendering Roger Crawfis

Texture-based Volume Rendering Volume rendering by ray casting is time-consuming one ray per pixel each ray involves tracking through volume calculating samples, and then compositing different for each viewpoint Alternative approach - using texture maps - can exploit graphics hardware 12/3/2018 R. Crawfis, Ohio State Univ.

R. Crawfis, Ohio State Univ. Texture Mapping Modern graphics hardware includes facility to draw a textured polygon The texture is an image with red, green, blue and alpha components… … so several overlapping polygons can be composited 12/3/2018 R. Crawfis, Ohio State Univ.

Texture-based Volume Rendering Draw from back-to-front a set of rectangles first rectangle drawn as an area of coloured pixels, with associated opacity, as determined by transfer function and interpolation - and merged with background in a compositing operation (supported by hardware) successive rectangles drawn on top 12/3/2018 R. Crawfis, Ohio State Univ.

Texture-Based Volume Rendering Data Set Proxy Geometry Image 12/3/2018 R. Crawfis, Ohio State Univ.

Texture-based Volume Rendering For a given viewing direction, we would like to select slices perpendicular to this direction This requires interpolation to get the values on the slices 3D texture hardware supports tri-linear interpolation. volume image plane 3D texture mapping 12/3/2018 R. Crawfis, Ohio State Univ.

Texture-based Volume Rendering Less-GPU intensive solution - 2D texture mapping: view volume as set of slices parallel to co-ordinate planes choose the orientation best suited to viewing direction 12/3/2018 R. Crawfis, Ohio State Univ.

R. Crawfis, Ohio State Univ. Render Proxy Geometry No volumetric hardware primitives... Stack of texture-mapped slices Generate fragments: resample volume! 12/3/2018 R. Crawfis, Ohio State Univ.

R. Crawfis, Ohio State Univ. Texture Mapping + Textured-mapped polygon 2D image 2D polygon 12/3/2018 R. Crawfis, Ohio State Univ.

R. Crawfis, Ohio State Univ. Texture Mapping (2) (0,0) (1,0) (0,1) (1,1) (0,0.5) (0.5,0.5) (0,0) (0.5,0) assign the texture coordinates to each polygon to establish the mapping Each texel has 2D coordinates assigned to it. 12/3/2018 R. Crawfis, Ohio State Univ.

Texture based volume rendering 12/3/2018 R. Crawfis, Ohio State Univ.

R. Crawfis, Ohio State Univ. 2D Textured Slices (1) Object-aligned slices Three stacks of 2D textures Bi-linear interpolation Fast and simple, but consumes lots of memory 12/3/2018 R. Crawfis, Ohio State Univ.

Three copies of data needed Different input textures are needed for different view directions. Reorganizing the textures on the fly is too costly. Prepare the texture sets beforehand x z y xz slices yz slices xy slices 12/3/2018 R. Crawfis, Ohio State Univ.

3D Texture Based Volume Rendering View-aligned slices; clip slice geometry Single 3D texture Tri-linear interpolation 12/3/2018 R. Crawfis, Ohio State Univ.

3D Texture Based Volume Rendering Texture Interpolation 12/3/2018 R. Crawfis, Ohio State Univ.

R. Crawfis, Ohio State Univ. 3D Texture Mapping Arbitrary slicing through the volume and texture mapping capabilities are needed - Arbitrary slicing polygon: this can be computed using software in real time This is basically polygon-volume clipping 12/3/2018 R. Crawfis, Ohio State Univ.

R. Crawfis, Ohio State Univ. 3D Texture Mapping Texture mapping to the arbitrary slices This requires 3D texture mapping hardware Input texture: volume (pre-classified and shaded) essentially an (R,G,B,a) volume Depending on the position of the polygon, appropriate textures are re-sampled, constructed and mapped to the polygon. 12/3/2018 R. Crawfis, Ohio State Univ.

Solid (3D) Texture Mapping Now the input texture space is 3D Texture coordinates: (r,s,t) (0,1,1) (1,1,1) (0,1,0) (1,1,0) (r0,s0,t0) (r1,s1,t1) (r2,s2,t2) (r3,s3,t3) (0,0,0) (1,0,0) 12/3/2018 R. Crawfis, Ohio State Univ.

R. Crawfis, Ohio State Univ. Slice Based Rendering View direction 1 slice Slices 5 slices This is what it looks like if we compute the integral with a varying number of slices, or sample points. 20 slices 12/3/2018 45 slices R. Crawfis, Ohio State Univ. 85 slices 170 slices

R. Crawfis, Ohio State Univ. Lighting and Shading 3D texture mapping with hardware tricks to achieve lighting is now feasible. C. Lao, OSU 12/3/2018 R. Crawfis, Ohio State Univ.

R. Crawfis, Ohio State Univ. Lighting and Shading Gradient estimation Pre-computed gradients On-the-fly gradients Per-pixel illumination Non-polygonal shaded isosurfaces Volume shading Pre-computed illumination 12/3/2018 R. Crawfis, Ohio State Univ.