Volume Illumination & Vector Field Visualisation

Similar documents
Volume Illumination. Visualisation Lecture 11. Taku Komura. Institute for Perception, Action & Behaviour School of Informatics

Volume Illumination and Segmentation

Volume Illumination, Contouring

Vector Field Visualisation

Previously... contour or image rendering in 2D

Volume Rendering. Computer Animation and Visualisation Lecture 9. Taku Komura. Institute for Perception, Action & Behaviour School of Informatics

11/1/13. Visualization. Scientific Visualization. Types of Data. Height Field. Contour Curves. Meshes

Visualization. CSCI 420 Computer Graphics Lecture 26

Scalar Algorithms: Contouring

Data Visualization (DSC 530/CIS )

Vector Visualisation 1. global view

Data Visualization (CIS/DSC 468)

CIS 467/602-01: Data Visualization

Visualization Computer Graphics I Lecture 20

Height Fields and Contours Scalar Fields Volume Rendering Vector Fields [Angel Ch. 12] April 23, 2002 Frank Pfenning Carnegie Mellon University

Lecture overview. Visualisatie BMT. Fundamental algorithms. Visualization pipeline. Structural classification - 1. Structural classification - 2

Visualization. Images are used to aid in understanding of data. Height Fields and Contours Scalar Fields Volume Rendering Vector Fields [chapter 26]

Data Visualization (DSC 530/CIS )

Visualization Computer Graphics I Lecture 20

Data Representation in Visualisation

Volume visualization. Volume visualization. Volume visualization methods. Sources of volume visualization. Sources of volume visualization

Data Visualization (CIS/DSC 468)

Flow Visualisation 1

Raycasting. Ronald Peikert SciVis Raycasting 3-1

Lecture overview. Visualisatie BMT. Transparency. Transparency. Transparency. Transparency. Transparency Volume rendering Assignment

Optical Models of Direct Volume Rendering by Nelson Max

CIS 467/602-01: Data Visualization

Scalar Data. Visualization Torsten Möller. Weiskopf/Machiraju/Möller

lecture 21 volume rendering - blending N layers - OpenGL fog (not on final exam) - transfer functions - rendering level surfaces

Lecture overview. Visualisatie BMT. Vector algorithms. Vector algorithms. Time animation. Time animation

Contours & Implicit Modelling 4

Processing 3D Surface Data

Display. Introduction page 67 2D Images page 68. All Orientations page 69 Single Image page 70 3D Images page 71

Fundamental Algorithms

Scientific Visualization. CSC 7443: Scientific Information Visualization

Visualizer An implicit surface rendering application

Volume Visualization

Virtual Reality for Human Computer Interaction

Processing 3D Surface Data

Processing 3D Surface Data

Lecture 15: Shading-I. CITS3003 Graphics & Animation

Volume Visualization. Part 1 (out of 3) Volume Data. Where do the data come from? 3D Data Space How are volume data organized?

Fast Visualization of Object Contours by Non-Photorealistic Volume Rendering

Volume Rendering - Introduction. Markus Hadwiger Visual Computing Center King Abdullah University of Science and Technology

CPSC GLOBAL ILLUMINATION

Hardware Accelerated Volume Visualization. Leonid I. Dimitrov & Milos Sramek GMI Austrian Academy of Sciences

COMPUTER GRAPHICS AND INTERACTION

The exam begins at 2:40pm and ends at 4:00pm. You must turn your exam in when time is announced or risk not having it accepted.

Graphics Hardware and Display Devices

Scalar Data. CMPT 467/767 Visualization Torsten Möller. Weiskopf/Machiraju/Möller

Computer Graphics Ray Casting. Matthias Teschner

Topic 12: Texture Mapping. Motivation Sources of texture Texture coordinates Bump mapping, mip-mapping & env mapping

Course Review. Computer Animation and Visualisation. Taku Komura

Direct Volume Rendering

Volume Rendering. Lecture 21

Contours & Implicit Modelling 1

8. Tensor Field Visualization

Visual cues to 3D geometry. Light Reflection and Advanced Shading. Shading. Recognizing materials. size (perspective) occlusion shading

Vector Visualization

Scalar Visualization

Flow Visualization with Integral Surfaces

GPU-based Volume Rendering. Michal Červeňanský

Computer Graphics and Visualization. What is computer graphics?

Illumination and Shading

Computer Graphics I Lecture 11

Interactive Computer Graphics A TOP-DOWN APPROACH WITH SHADER-BASED OPENGL

Topic 11: Texture Mapping 11/13/2017. Texture sources: Solid textures. Texture sources: Synthesized

Visualization Toolkit(VTK) Atul Kumar MD MMST PhD IRCAD-Taiwan

RAYTRACING. Christopher Peters INTRODUCTION TO COMPUTER GRAPHICS AND INTERACTION. HPCViz, KTH Royal Institute of Technology, Sweden

Lecture 18: Primer on Ray Tracing Techniques

Rendering. Converting a 3D scene to a 2D image. Camera. Light. Rendering. View Plane

Introduction to 3D Graphics

Data Visualization. Fall 2017

Isosurface Rendering. CSC 7443: Scientific Information Visualization

Computer Graphics 1. Chapter 7 (June 17th, 2010, 2-4pm): Shading and rendering. LMU München Medieninformatik Andreas Butz Computergraphik 1 SS2010

Pipeline Operations. CS 4620 Lecture Steve Marschner. Cornell CS4620 Spring 2018 Lecture 11

Applications of Explicit Early-Z Culling

Topic 11: Texture Mapping 10/21/2015. Photographs. Solid textures. Procedural

3D vector fields. Contents. Introduction 3D vector field topology Representation of particle lines. 3D LIC Combining different techniques

Computer Graphics. Lecture 13. Global Illumination 1: Ray Tracing and Radiosity. Taku Komura

Orthogonal Projection Matrices. Angel and Shreiner: Interactive Computer Graphics 7E Addison-Wesley 2015

Level of Details in Computer Rendering

Direct Volume Rendering

Consider a partially transparent object that is illuminated with two lights, one visible from each side of the object. Start with a ray from the eye

Graphics for VEs. Ruth Aylett

LECTURE 37: Ray model of light and Snell's law

Lets assume each object has a defined colour. Hence our illumination model is looks unrealistic.

Direct Volume Rendering

Computer graphics Labs: Blender (2/3) LuxRender: Interior Scene Rendering

Global Illumination CS334. Daniel G. Aliaga Department of Computer Science Purdue University

Pipeline Operations. CS 4620 Lecture 14

Chapter 7 - Light, Materials, Appearance

CMSC427 Advanced shading getting global illumination by local methods. Credit: slides Prof. Zwicker

Photorealism: Ray Tracing

Vector Visualization. CSC 7443: Scientific Information Visualization

Pipeline Operations. CS 4620 Lecture 10

CS 428: Fall Introduction to. Raytracing. Andrew Nealen, Rutgers, /18/2009 1

A Broad Overview of Scientific Visualization with a Focus on Geophysical Turbulence Simulation Data (SciVis

Chapter 6 Visualization Techniques for Vector Fields

Schedule. MIT Monte-Carlo Ray Tracing. Radiosity. Review of last week? Limitations of radiosity. Radiosity

Transcription:

Volume Illumination & Vector Field Visualisation Visualisation Lecture 11 Institute for Perception, Action & Behaviour School of Informatics Volume Illumination & Vector Vis. 1

Previously : Volume Rendering Image Order Volume Rendering Object Order Volume Rendering ray casting / intensity transfer function splatting / hybrid shear-warp rendering algorithm Volume Classification volume scalars colour & opacity feature isolation & classification transparency & clipping Volume Illumination & Vector Vis. 2

Light Propagation in Volumes Lighting in volume only transmission and emission considered (until now) can also: reflect light scatter light into different directions Volume Illumination & Vector Vis. 3

Global Illumination of Volumes For every voxel ray intersects, need to consider: Light absorbed. Light emitted. Light scattered out of the ray. Light scattered into the ray. Volume Illumination & Vector Vis. 4

Global Illumination of Volumes For every voxel ray intersects, need to consider: Light absorbed. Normally ignore scattering in volumetric illumination Light!Light emitted. scattered out of the ray. Light scattered into the ray. Why? : computational cost Volume Illumination & Vector Vis. 5

Example: single scatter Synthetic images of the Earth s atmosphere produced by Rayleigh scattering. Irwin 95. Light scattered to produce atmospheric haze effect Volume Illumination & Vector Vis. 6

Example : multiple scattering Scattering has scale dependence can see this is quite a small cloud. Light scattered multiple times to produce simulation of a cloud Volume Illumination & Vector Vis. 7

Example : sub-surface scattering Very large statue Medium sized Small statue. Varying how light is scattered inside a surface affects perception hence useful in visualisation why? - prior visual experience, perception of distance? Volume Illumination & Vector Vis. 8

Volume Illumination -? Anyway, scattering is to costly so we usually do not take them into account when doing volume rendering But we still can add slight shadows to the volume by illuminating them Volume Illumination & Vector Vis. 9

Volume Illumination Why do we want to illuminate volumes? illumination helps us to better understand 3D structure displays visual cues to surface orientation highlight significant gradients within volume Volume Illumination & Vector Vis. 10

What are we illuminating? embedded (iso-) surface sharp gradients in opacity Volume Illumination & Vector Vis. 11

Shading an Embedded isosurface classify volume with a step function use regular specular / diffuse surface shading Remember for lighting equations of lecture 2 require illumination direction camera model (position) surface orientation need to calculate and store surface normal (for our voxel in order to illuminate them) Volume Illumination & Vector Vis. 12

Estimating the surface normal from distance map Use distance map to the iso-surface value 1. Determine the threshold value 2. Determine the surface voxels based on the threshold 3. Compute the normal vectors based on centred difference method 1 zthe x = z x 1, y z x 1, y For example, if we sample 2 centre of the voxels, 1 z y = z x, y 1 z x, y 1 2 z x z y 1 N = 2, 2, 2 2 2 2 z x z y 1 z x z y 1 z x z y 1 Volume Illumination & Vector Vis. 13

Result : illuminated iso-surface MIP technique Surface normals recovered from depth map of surface Shaded embedded isosurface. regions of similar curvature taken into consideration Volume Illumination & Vector Vis. 14

Normals are sensitive to step size Step size through the volume / over the depth map Step = 2.0 Step = 1.0 Step = 0.1 Artefacts with larger step sizes under standard lighting model Volume Illumination & Vector Vis. 15

Illuminating Opacity (Scalar) Gradient Illuminate scalar gradient instead of iso-surface requirement : estimate and store gradient at every voxel Composite Shaded Composite Shaded opacity gradient (shades changes in opacity) Volume Illumination & Vector Vis. 16

Estimating Opacity Gradient Use 3D centred difference operator I = I x, I y, I z = I, I, I x y z I x 1, y, z I x 1, y, z I= x 2 We can extract the normal vectors of the region where the scalar values are changing significantly, i.e. boundary of tissues Evaluate at each voxel and interpolate Volume Illumination & Vector Vis. 17

Illumination : storing normal vectors Visualisation is interactive compute normal vectors for surface/gradient once store normal perform interactive shading calculations Storage : 2563 data set of 1-byte scalars ~16Mb normal vector (stored as floating point(4-byte)) ~ 200Mb! Solution : quantise direction & magnitude as small number of bits Volume Illumination & Vector Vis. 18

Illumination : storing normal vectors Quantize vector direction into one of N directions on a sub-divided sphere Subdivide an octahedron into a sphere. Number the vertices. Encode the direction according the nearest vertex that the vector passes through. For infinite light sources, only need to calculate the shading values once and store these in a table. Volume Illumination & Vector Vis. 19

Volume Illumination Summary Illumination can aid visual understanding of volumes scattering gives clue to object scale / effects perception too expensive at current time for interactive visualisation Illumination of: embedded isosurface gradient magnitude finite difference estimation Normal vector storage for each cell need to estimate surface normal use depth map use index into triangulated sphere Volume Illumination & Vector Vis. 20

Visualising Vectors Examples of vector data: meteorological analyses / simulation medical blood flow measurement Computational simulation of flow over aircraft, ships, submarines etc. visualisation of derivatives Why is visualising these difficult? not just of flow itself 2 or 3 components per data point, temporal aspects of vector flow, vector density Volume Illumination & Vector Vis. 21

Insight in Vector Fields Two properties of vector fields to visualise : local view of the flow global view of the flow e.g a meteorological wind forecast Local : for given location, what is the current wind strength and direction Global: a given location, where has the wind flow come from, and where will it go to. Volume Illumination & Vector Vis. 22

Two Methods of Flow Visualisation Visualise Flow wrt fixed point e.g. plot flow glyphs to show local direction and magnitude local view of vector field Visualise flow as the trajectory of a particles transported by the flow e.g plot particle traces, streamlines etc. global view of vector field require integrating the flow equation Volume Illumination & Vector Vis. 23

State of Flow : Steady / Unsteady Steady flow remains constant over time state of equilibrium or snapshot use particle traces known as streamlines Unsteady flow varies with time implications to tracing massless particles particle traces known as streaklines show little information about flow direction or magnitude Volume Illumination & Vector Vis. 24

Vectors : local visualisation Set of basic methods for showing local view: oriented lines, hedgehogs & glyphs colour mapping vector components warping animation Volume Illumination & Vector Vis. 25

Local vector visualisation : lines Draw line at data point indicating vector direction scale according to magnitude indicate direction as vector orientation problems non-uniform spacing showing large dynamic range field e.g. speed Option : use barbs to show speed Volume Illumination & Vector Vis. 26

Example : meteorology NOAA/FSL Lines are drawn with constant length, barbs indicate wind speed. Also colour mapped scalar field of wind speed. Volume Illumination & Vector Vis. 27

Example : lines in 3D Problems : Difficult to understand position and orientation in projection to 2D image. Clutter is also a problem. Volume Illumination & Vector Vis. 28

Local vector visualisation : colour map Dense Normal Vectors in 3D capture of large scale environment X component = Red. Y component = Green Z component = Blue. Returned laser power Distance to object (darker is closer black is no data) Volume Illumination & Vector Vis. 29

Local vector visualisation : Glyphs 2D or 3D objects inserted at data point, oriented with vector flow problem : scaling scaling glyph results in non-linear change in appearance surface area changes with square of size problem : clutter e.g. blood flow (reduced data) colourmap shows magnitude in addition to glyph scale Volume Illumination & Vector Vis. 30

Local vector visualisation : Warping deform geometry according to the vector field vector fields often associated with motion, or displacement. e.g vibration of a beam. Volume Illumination & Vector Vis. 31

Example : warping Insert slice planes into the data volume Displace surface according to flow momentum take care with scaling to avoid excessive geometric distortion surfaces may intersect, or even turn inside-out Volume Illumination & Vector Vis. 32

Local vector visualisation : animation Animation to enhance lines or glyphs improved clarity of magnitude and/or direction draw lines or glyphs & animate over time removes ambiguity in line or glyph direction also move glyphs along a streamline to visualise transport Volume Illumination & Vector Vis. 33

Vector Visualisation Summary Vector visualisation: local view / global view steady / unsteady flow methods of vector visualisation : Local Vector Visualisation: lines, hedgehogs & glyphs colour mapping, warping & animation Next lecture : more vector fields! Volume Illumination & Vector Vis. 34