scientific visualisation sese, 5hpaht/vis2014/sese_introanders.pdf · 2014-11-10 · scientific...

69
Department of Information Technology Visual Information and Interaction 1 Department of Information Technology Visual Information and Interaction Scientific Visualisation SeSE, 5hp måndag 11 november 13

Upload: others

Post on 11-Aug-2020

0 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Scientific Visualisation SeSE, 5hpaht/Vis2014/SeSE_IntroAnders.pdf · 2014-11-10 · Scientific Visualisation Scientific visualisation is the process of exploring, transforming, and

Department of Information Technology

Visual Information and Interaction

1

Department of Information Technology

Visual Informationand Interaction

Scientific Visualisation SeSE, 5hp

måndag 11 november 13

Page 2: Scientific Visualisation SeSE, 5hpaht/Vis2014/SeSE_IntroAnders.pdf · 2014-11-10 · Scientific Visualisation Scientific visualisation is the process of exploring, transforming, and

Department of Information Technology

Visual Information and Interaction

2

“A picture is worth a thousand words”

refers to that complex stories can be described with a single image.

This expression is valid also in scientific visualisation.

Department of Information Technology

Visual Informationand Interaction

måndag 11 november 13

Page 3: Scientific Visualisation SeSE, 5hpaht/Vis2014/SeSE_IntroAnders.pdf · 2014-11-10 · Scientific Visualisation Scientific visualisation is the process of exploring, transforming, and

Department of Information Technology

Visual Information and Interaction

3

When large and complex data sets are resulting from experiments and computations, visualisation is a way to give deeper insight and knowledge.

You will learn how

to select appropriate methods, possibilities and limitations with methods,

and to use visualisation toolkits.

A focus will be on using script programming in combination with VTK (the Visualisation Toolkit).

Department of Information Technology

Visual Informationand Interaction

måndag 11 november 13

Page 4: Scientific Visualisation SeSE, 5hpaht/Vis2014/SeSE_IntroAnders.pdf · 2014-11-10 · Scientific Visualisation Scientific visualisation is the process of exploring, transforming, and

Department of Information Technology

Visual Information and Interaction

Dictionary

måndag 11 november 13

Page 5: Scientific Visualisation SeSE, 5hpaht/Vis2014/SeSE_IntroAnders.pdf · 2014-11-10 · Scientific Visualisation Scientific visualisation is the process of exploring, transforming, and

Department of Information Technology

Visual Information and Interaction

Dictionary

vi·su·al·ize To form a mental image of;

envisage: try to visualise the scene as it is described

To make visible

måndag 11 november 13

Page 6: Scientific Visualisation SeSE, 5hpaht/Vis2014/SeSE_IntroAnders.pdf · 2014-11-10 · Scientific Visualisation Scientific visualisation is the process of exploring, transforming, and

Department of Information Technology

Visual Information and Interaction

Dictionary

vi·su·al·ize To form a mental image of;

envisage: try to visualise the scene as it is described

To make visible

”Visualisation offers a way to see the unseen”

måndag 11 november 13

Page 7: Scientific Visualisation SeSE, 5hpaht/Vis2014/SeSE_IntroAnders.pdf · 2014-11-10 · Scientific Visualisation Scientific visualisation is the process of exploring, transforming, and

Department of Information Technology

Visual Information and Interaction

Visualisation purposes

Communication of information (emphasizing, narrating)

Improve understanding (illustrating, interpreting, finding)

Decision support (analyzing, extrapolation) Answering questions (diagnosing, interpreting) Support creativity (inspiration) Making new discoveries through interaction!

måndag 11 november 13

Page 8: Scientific Visualisation SeSE, 5hpaht/Vis2014/SeSE_IntroAnders.pdf · 2014-11-10 · Scientific Visualisation Scientific visualisation is the process of exploring, transforming, and

Department of Information Technology

Visual Information and Interaction

Graphs are one type of visualisation

Example: Which Swedish town(s) have warmer than 20 C and less than 10 mm of rain?

måndag 11 november 13

Page 9: Scientific Visualisation SeSE, 5hpaht/Vis2014/SeSE_IntroAnders.pdf · 2014-11-10 · Scientific Visualisation Scientific visualisation is the process of exploring, transforming, and

Department of Information Technology

Visual Information and Interaction

Visualisations help us getting insight

When data is complex: Collected/Computed

• When numeric data is to bee understood

• When complex relations must be understood

• When multiple variables have to be analyzed

Visualisation is not a substitute to, but in addition to, statistical analysis and other quantitative methods

Visualisation takes advantage of human sensory abilities

• Pattern recognition, Trend discovery, etc.

måndag 11 november 13

Page 10: Scientific Visualisation SeSE, 5hpaht/Vis2014/SeSE_IntroAnders.pdf · 2014-11-10 · Scientific Visualisation Scientific visualisation is the process of exploring, transforming, and

Department of Information Technology

Visual Information and Interaction

Graphs are one type of visualisation

0

7,5

15,0

22,5

30,0

Kiruna

Östersu

ndUmeå

Sunds

vallMora

Väster

åsGäv

le

Uppsa

la

Halmsta

d

Karlsk

rona

Stockh

olmÖreb

roLu

nd

Malmö

Götebo

rg

Temp.[C]Rain [mm]

Example: Which Swedish town(s) have warmer than 20 C and less than 10 mm of rain?

måndag 11 november 13

Page 11: Scientific Visualisation SeSE, 5hpaht/Vis2014/SeSE_IntroAnders.pdf · 2014-11-10 · Scientific Visualisation Scientific visualisation is the process of exploring, transforming, and

Department of Information Technology

Visual Information and Interaction

Graphs are one type of visualisation

0

7,5

15,0

22,5

30,0

Kiruna

Östersu

ndUmeå

Sunds

vallMora

Väster

åsGäv

le

Uppsa

la

Halmsta

d

Karlsk

rona

Stockh

olmÖreb

roLu

nd

Malmö

Götebo

rg

Temp.[C]Rain [mm]

Example: Which Swedish town(s) have warmer than 20 C and less than 10 mm of rain?

måndag 11 november 13

Page 12: Scientific Visualisation SeSE, 5hpaht/Vis2014/SeSE_IntroAnders.pdf · 2014-11-10 · Scientific Visualisation Scientific visualisation is the process of exploring, transforming, and

Department of Information Technology

Visual Information and Interaction

Graphs are one type of visualisation

0

7,5

15,0

22,5

30,0

Kiruna

Östersu

ndUmeå

Sunds

vallMora

Väster

åsGäv

le

Uppsa

la

Halmsta

d

Karlsk

rona

Stockh

olmÖreb

roLu

nd

Malmö

Götebo

rg

Temp.[C]Rain [mm]

Example: Which Swedish town(s) have warmer than 20 C and less than 10 mm of rain?

måndag 11 november 13

Page 13: Scientific Visualisation SeSE, 5hpaht/Vis2014/SeSE_IntroAnders.pdf · 2014-11-10 · Scientific Visualisation Scientific visualisation is the process of exploring, transforming, and

Department of Information Technology

Visual Information and Interaction

Graphs are one type of visualisation

0

7,5

15,0

22,5

30,0

Kiruna

Östersu

ndUmeå

Sunds

vallMora

Väster

åsGäv

le

Uppsa

la

Halmsta

d

Karlsk

rona

Stockh

olmÖreb

roLu

nd

Malmö

Götebo

rg

Temp.[C]Rain [mm]

Example: Which Swedish town(s) have warmer than 20 C and less than 10 mm of rain?

måndag 11 november 13

Page 14: Scientific Visualisation SeSE, 5hpaht/Vis2014/SeSE_IntroAnders.pdf · 2014-11-10 · Scientific Visualisation Scientific visualisation is the process of exploring, transforming, and

Department of Information Technology

Visual Information and Interaction

Some more sophisticated examples

Structures, Fluids, and Fields

Advanced Imaging and Data Management

Nuclear, Quantum, and Molecular Modeling

måndag 11 november 13

Page 15: Scientific Visualisation SeSE, 5hpaht/Vis2014/SeSE_IntroAnders.pdf · 2014-11-10 · Scientific Visualisation Scientific visualisation is the process of exploring, transforming, and

Department of Information Technology

Visual Information and Interaction

Some classical examplesDr. John Snow; The Cholera Epidemic in London 1854

Used spot-map to graphically depict cholera incidents.Spatial clusters led to him to the hypothesis that cholera was communicated through contaminated water.Identification and removal of contaminated pump led to reduced mortality and partly confirmed his hypothesis.

Note: The visualisation did not prove anything. But was influential to the development of the novel hypothesis which was later proved true.

måndag 11 november 13

Page 16: Scientific Visualisation SeSE, 5hpaht/Vis2014/SeSE_IntroAnders.pdf · 2014-11-10 · Scientific Visualisation Scientific visualisation is the process of exploring, transforming, and

Department of Information Technology

Visual Information and Interaction

14

måndag 11 november 13

Page 17: Scientific Visualisation SeSE, 5hpaht/Vis2014/SeSE_IntroAnders.pdf · 2014-11-10 · Scientific Visualisation Scientific visualisation is the process of exploring, transforming, and

Department of Information Technology

Visual Information and Interaction

Florence Nightingagle

15

måndag 11 november 13

Page 18: Scientific Visualisation SeSE, 5hpaht/Vis2014/SeSE_IntroAnders.pdf · 2014-11-10 · Scientific Visualisation Scientific visualisation is the process of exploring, transforming, and

Department of Information Technology

Visual Information and Interaction

Scientific Visualisation Scientific visualisation is the process of exploring,

transforming, and viewing data as images The data describes natural or physical phenomena

or quantities Often observed (measured) or simulated data

Visualisation is often interactive

We are not trying to create realistic images, but to visualise data in an informative way

Application dependent

måndag 11 november 13

Page 19: Scientific Visualisation SeSE, 5hpaht/Vis2014/SeSE_IntroAnders.pdf · 2014-11-10 · Scientific Visualisation Scientific visualisation is the process of exploring, transforming, and

Department of Information Technology

Visual Information and Interaction

General development of visualisation

• Rather new discipline still developing into sub-areas

• Tool users vs. tool developers

• Collaboration among computer scientists and computational scientists

• Faster computers, high-speed networks, new user-interfaces

måndag 11 november 13

Page 20: Scientific Visualisation SeSE, 5hpaht/Vis2014/SeSE_IntroAnders.pdf · 2014-11-10 · Scientific Visualisation Scientific visualisation is the process of exploring, transforming, and

Department of Information Technology

Visual Information and Interaction

Ch 3: Computer Graphics Primer

Creating images with a computer – 3D

© Pixar Animation Studios, All Rights Reserved. http://www.pixar.com/

måndag 11 november 13

Page 21: Scientific Visualisation SeSE, 5hpaht/Vis2014/SeSE_IntroAnders.pdf · 2014-11-10 · Scientific Visualisation Scientific visualisation is the process of exploring, transforming, and

Department of Information Technology

Visual Information and Interaction

Computer Graphics

Computer graphics aims at creating pictures by mimicking the image formation process that occurs in conventional photography.

Purposes:

Simulate real things (entertainment)

Make visible what cannot really be seen

-> CG is the foundation of Visualisation

måndag 11 november 13

Page 22: Scientific Visualisation SeSE, 5hpaht/Vis2014/SeSE_IntroAnders.pdf · 2014-11-10 · Scientific Visualisation Scientific visualisation is the process of exploring, transforming, and

Department of Information Technology

Visual Information and Interaction

Computer Graphics

Computer graphics aims at creating pictures by mimicking the image formation process that occurs in conventional photography.

Purposes:

Simulate real things (entertainment)

Make visible what cannot really be seen

-> CG is the foundation of Visualisation

Visualisation is more than computer graphics !måndag 11 november 13

Page 23: Scientific Visualisation SeSE, 5hpaht/Vis2014/SeSE_IntroAnders.pdf · 2014-11-10 · Scientific Visualisation Scientific visualisation is the process of exploring, transforming, and

Department of Information Technology

Visual Information and Interaction

Computer Graphics - ExamplesSimulate and visualise real things

Make visible what cannot really be seen Interior design (Linus Karlsson, CCG 2011)

Visualisation of semantic networks in SemNet. Hard-Disk utilization (WinDirStat)

Interactive Games

måndag 11 november 13

Page 24: Scientific Visualisation SeSE, 5hpaht/Vis2014/SeSE_IntroAnders.pdf · 2014-11-10 · Scientific Visualisation Scientific visualisation is the process of exploring, transforming, and

Department of Information Technology

Visual Information and Interaction

Computer Graphics - Ingredients

What is needed to mimic photography i.e. to render images with a computer?

• Virtual objects: 3D models, geometry, material properties

• Virtual light sources: position, color, attenuation, etc.

• Virtual camera: position, direction, lens projection

• Illumination model: Rendering algorithms that model the propagation of light and its interaction with objects in the scene.

måndag 11 november 13

Page 25: Scientific Visualisation SeSE, 5hpaht/Vis2014/SeSE_IntroAnders.pdf · 2014-11-10 · Scientific Visualisation Scientific visualisation is the process of exploring, transforming, and

Department of Information Technology

Visual Information and Interaction

Computer Graphics

Computer Graphics & VisualisationGraphical rendering is one pillar of

Scientific/Information Visualisation

Graphical Model

LightsCamera(s)3D Objects

RenderingAlgorithms

ColorfulPictures

måndag 11 november 13

Page 26: Scientific Visualisation SeSE, 5hpaht/Vis2014/SeSE_IntroAnders.pdf · 2014-11-10 · Scientific Visualisation Scientific visualisation is the process of exploring, transforming, and

Department of Information Technology

Visual Information and Interaction

Scientific/Information Visualisation

Computer Graphics

Computer Graphics & VisualisationGraphical rendering is one pillar of

Scientific/Information Visualisation

Ah Ha!!!

Graphical Model

LightsCamera(s)3D Objects

RenderingAlgorithms

ColorfulPictures

We gainInsight

DataTransfor-Mation &Mapping

Conceptual Model

måndag 11 november 13

Page 27: Scientific Visualisation SeSE, 5hpaht/Vis2014/SeSE_IntroAnders.pdf · 2014-11-10 · Scientific Visualisation Scientific visualisation is the process of exploring, transforming, and

Department of Information Technology

Visual Information and Interaction

Scientific/Information Visualisation

Computer Graphics

Computer Graphics & VisualisationGraphical rendering is one pillar of

Scientific/Information Visualisation

Visualisation is more than computer graphics !

Ah Ha!!!

Graphical Model

LightsCamera(s)3D Objects

RenderingAlgorithms

ColorfulPictures

We gainInsight

DataTransfor-Mation &Mapping

Conceptual Model

måndag 11 november 13

Page 28: Scientific Visualisation SeSE, 5hpaht/Vis2014/SeSE_IntroAnders.pdf · 2014-11-10 · Scientific Visualisation Scientific visualisation is the process of exploring, transforming, and

Department of Information Technology

Visual Information and Interaction

3.2 Elements of color

måndag 11 november 13

Page 29: Scientific Visualisation SeSE, 5hpaht/Vis2014/SeSE_IntroAnders.pdf · 2014-11-10 · Scientific Visualisation Scientific visualisation is the process of exploring, transforming, and

Department of Information Technology

Visual Information and Interaction

Visible spectrum

måndag 11 november 13

Page 30: Scientific Visualisation SeSE, 5hpaht/Vis2014/SeSE_IntroAnders.pdf · 2014-11-10 · Scientific Visualisation Scientific visualisation is the process of exploring, transforming, and

Department of Information Technology

Visual Information and Interaction

ColourThe eye’s and the brain’s impression of electromagnetic radiation in the visual spectra

How is colour perceived?

reflecting object

detector

light source

rods & cones

red-sensitive

green-sensitive

blue-sensitive

måndag 11 november 13

Page 31: Scientific Visualisation SeSE, 5hpaht/Vis2014/SeSE_IntroAnders.pdf · 2014-11-10 · Scientific Visualisation Scientific visualisation is the process of exploring, transforming, and

Department of Information Technology

Visual Information and Interaction

RGB color space

RGB - for additive colour mixing, e.g., on a computer screen

måndag 11 november 13

Page 32: Scientific Visualisation SeSE, 5hpaht/Vis2014/SeSE_IntroAnders.pdf · 2014-11-10 · Scientific Visualisation Scientific visualisation is the process of exploring, transforming, and

Department of Information Technology

Visual Information and Interaction

HLS colour spaceHue Lightness Saturation

Hue: dominant wavelength, toneLightness: intensity, brightnessSaturation: purity, dilution by white

Important aspects:• Intensity decoupled from colour•Related to how humans perceive colour

måndag 11 november 13

Page 33: Scientific Visualisation SeSE, 5hpaht/Vis2014/SeSE_IntroAnders.pdf · 2014-11-10 · Scientific Visualisation Scientific visualisation is the process of exploring, transforming, and

Department of Information Technology

Visual Information and Interaction

Color angles for the hue

Red = 0°

Yellow = 60°

Green = 120°

Cyan = 180°

Blue = 240°

Magenta = 300°

måndag 11 november 13

Page 34: Scientific Visualisation SeSE, 5hpaht/Vis2014/SeSE_IntroAnders.pdf · 2014-11-10 · Scientific Visualisation Scientific visualisation is the process of exploring, transforming, and

Department of Information Technology

Visual Information and Interaction

3.3 Lights

o Light is emitted in all directions from a single point in space

o One can simplify by assuming an infinitely distant point light source Far distance implies parallel rays

o Intensity is constant compared to 1/distance2 relationship

måndag 11 november 13

Page 35: Scientific Visualisation SeSE, 5hpaht/Vis2014/SeSE_IntroAnders.pdf · 2014-11-10 · Scientific Visualisation Scientific visualisation is the process of exploring, transforming, and

Department of Information Technology

Visual Information and Interaction

3.4 Surface properties

The Phong reflection model =

Ambient reflection +

Diffuse reflection +

Specular reflectionn

lr

v

φθ

 

måndag 11 november 13

Page 36: Scientific Visualisation SeSE, 5hpaht/Vis2014/SeSE_IntroAnders.pdf · 2014-11-10 · Scientific Visualisation Scientific visualisation is the process of exploring, transforming, and

Department of Information Technology

Visual Information and Interaction

 

Putting it all together

ambient speculardiffuse+ +

composed color

=>

måndag 11 november 13

Page 37: Scientific Visualisation SeSE, 5hpaht/Vis2014/SeSE_IntroAnders.pdf · 2014-11-10 · Scientific Visualisation Scientific visualisation is the process of exploring, transforming, and

Department of Information Technology

Visual Information and Interaction

3.5 Cameras

måndag 11 november 13

Page 38: Scientific Visualisation SeSE, 5hpaht/Vis2014/SeSE_IntroAnders.pdf · 2014-11-10 · Scientific Visualisation Scientific visualisation is the process of exploring, transforming, and

Department of Information Technology

Visual Information and Interaction

Camera movements

måndag 11 november 13

Page 39: Scientific Visualisation SeSE, 5hpaht/Vis2014/SeSE_IntroAnders.pdf · 2014-11-10 · Scientific Visualisation Scientific visualisation is the process of exploring, transforming, and

Department of Information Technology

Visual Information and Interaction

3.6 Coordinate systems

4 coordinate systems Model: where the object is defined

World: 3D space where actors are positioned

View: what is visible to the camera

Display: (x, y) pixel locations

See Figure 3-14

måndag 11 november 13

Page 40: Scientific Visualisation SeSE, 5hpaht/Vis2014/SeSE_IntroAnders.pdf · 2014-11-10 · Scientific Visualisation Scientific visualisation is the process of exploring, transforming, and

Department of Information Technology

Visual Information and Interaction

3.7 Coordinate transformations

o 3D to 3D and 3D to 2Do Homogeneous coordinateso 4x4 transformation matriceso Rotation, translation, scalingo (Perspective) projection

måndag 11 november 13

Page 41: Scientific Visualisation SeSE, 5hpaht/Vis2014/SeSE_IntroAnders.pdf · 2014-11-10 · Scientific Visualisation Scientific visualisation is the process of exploring, transforming, and

Department of Information Technology

Visual Information and Interaction

Coordinate transformations

o Matrix-Vector Multiplication

Transformation represented as a Mn,k where n=4, k=4.

The resulting matrix has n=4 rows and l=1 columns

P’ = M.P = = m11m21m31m41

m12m22m32m42

m13m23m33m43

m14m24m34m44

xyz1

m11x + m12y + m13z + m14m21x + m22y + m23z + m24m31x + m32y + m33z + m34m41x + m42y + m43z + m44

måndag 11 november 13

Page 42: Scientific Visualisation SeSE, 5hpaht/Vis2014/SeSE_IntroAnders.pdf · 2014-11-10 · Scientific Visualisation Scientific visualisation is the process of exploring, transforming, and

Department of Information Technology

Visual Information and Interaction

Coordinate transformations o Basic geometric transforms

Scale Translation Rotations

måndag 11 november 13

Page 43: Scientific Visualisation SeSE, 5hpaht/Vis2014/SeSE_IntroAnders.pdf · 2014-11-10 · Scientific Visualisation Scientific visualisation is the process of exploring, transforming, and

Department of Information Technology

Visual Information and Interaction

Coordinate transformations o Projective transform (3D -> 2D)

(x,y,z,1) -> (xp,yp,const,1)

Perspective Projection Matrix: Vertex (normalized homogenous coordinates):

Vertex projection:

Vertex normalization:

måndag 11 november 13

Page 44: Scientific Visualisation SeSE, 5hpaht/Vis2014/SeSE_IntroAnders.pdf · 2014-11-10 · Scientific Visualisation Scientific visualisation is the process of exploring, transforming, and

Department of Information Technology

Visual Information and Interaction

3.9 Rasterisation (scan conversion)

Converting a explicit geometric representation into raster image

Primitives: Point, Line, Polyline, Polygon, Triangle Strip

e.g. Line drawing

DDA – digital differential analyzer

(Bresenham algorithm)

e.g. Polygon filling

Flood filling

Scan conversion

måndag 11 november 13

Page 45: Scientific Visualisation SeSE, 5hpaht/Vis2014/SeSE_IntroAnders.pdf · 2014-11-10 · Scientific Visualisation Scientific visualisation is the process of exploring, transforming, and

Department of Information Technology

Visual Information and Interaction

Filling polygons

Draw one scan-line at a time,

måndag 11 november 13

Page 46: Scientific Visualisation SeSE, 5hpaht/Vis2014/SeSE_IntroAnders.pdf · 2014-11-10 · Scientific Visualisation Scientific visualisation is the process of exploring, transforming, and

Department of Information Technology

Visual Information and Interaction

Filling polygons

Draw one scan-line at a time,

måndag 11 november 13

Page 47: Scientific Visualisation SeSE, 5hpaht/Vis2014/SeSE_IntroAnders.pdf · 2014-11-10 · Scientific Visualisation Scientific visualisation is the process of exploring, transforming, and

Department of Information Technology

Visual Information and Interaction

Polygonal shading

Flat Gouraud Phong

 

Various shading modes differ in how often the illumination equation is evaluated during rasterization!

Per polygon Per vertex Per pixel

måndag 11 november 13

Page 48: Scientific Visualisation SeSE, 5hpaht/Vis2014/SeSE_IntroAnders.pdf · 2014-11-10 · Scientific Visualisation Scientific visualisation is the process of exploring, transforming, and

Department of Information Technology

Visual Information and Interaction

Hidden Surface Removal (HSR)

Same object (polygons), shading and and perspective, but different appearance

Incorrect occlusion occurs if graphical primitives are rasterized

* in arbitrary order

* without visibility control

måndag 11 november 13

Page 49: Scientific Visualisation SeSE, 5hpaht/Vis2014/SeSE_IntroAnders.pdf · 2014-11-10 · Scientific Visualisation Scientific visualisation is the process of exploring, transforming, and

Department of Information Technology

Visual Information and Interaction

z-buffer algorithm

z-Buffer Algorithm: Image space hidden surface algorithm -> it maintains visibility control per pixel.

Objects are rendered without specific order Depth test is performed in therasterization process for every pixel

z-Buffer stores the closest distance of an object that has been drawn at pixel position (x,y)

Maintains correct occlusion

Observer Frame Buffer,

Color Buffer(pixel color RGBA)

z-Buffer(depth - value)

pixel position (x,y)

måndag 11 november 13

Page 50: Scientific Visualisation SeSE, 5hpaht/Vis2014/SeSE_IntroAnders.pdf · 2014-11-10 · Scientific Visualisation Scientific visualisation is the process of exploring, transforming, and

Department of Information Technology

Visual Information and Interaction

z-buffer algorithm

fill z-buffer with infinite distancefor all polygons for each pixel calculate z-value if z(x,y) is closer than z-buffer(x,y) draw pixel z-buffer(x,y)=z(x,y) end endend

måndag 11 november 13

Page 51: Scientific Visualisation SeSE, 5hpaht/Vis2014/SeSE_IntroAnders.pdf · 2014-11-10 · Scientific Visualisation Scientific visualisation is the process of exploring, transforming, and

Department of Information Technology

Visual Information and Interaction

Ch 4: The Visualisation Pipeline

Visualisation addresses the issues transformation and representation

Transformation: converting data from its original form into

graphics primitives and into computer images

Representation: the internal data structures and the graphics

primitives

Visualisation transforms a computational form into a graphical form

måndag 11 november 13

Page 52: Scientific Visualisation SeSE, 5hpaht/Vis2014/SeSE_IntroAnders.pdf · 2014-11-10 · Scientific Visualisation Scientific visualisation is the process of exploring, transforming, and

Department of Information Technology

Visual Information and Interaction

Ch 4: The Visualisation Pipeline

Visualisation addresses the issues transformation and representation

Transformation: converting data from its original form into

graphics primitives and into computer images

Representation: the internal data structures and the graphics

primitives

Visualisation transforms a computational form into a graphical form

måndag 11 november 13

Page 53: Scientific Visualisation SeSE, 5hpaht/Vis2014/SeSE_IntroAnders.pdf · 2014-11-10 · Scientific Visualisation Scientific visualisation is the process of exploring, transforming, and

Department of Information Technology

Visual Information and Interaction

Visualisation pipeline, cont’d

The pipeline consists of objects to represent data objects to operate on data indicated direction of data flow

(arrow connections between objects)

måndag 11 november 13

Page 54: Scientific Visualisation SeSE, 5hpaht/Vis2014/SeSE_IntroAnders.pdf · 2014-11-10 · Scientific Visualisation Scientific visualisation is the process of exploring, transforming, and

Department of Information Technology

Visual Information and Interaction

Visualisation pipeline, cont’d

The pipeline consists of objects to represent data objects to operate on data indicated direction of data flow

(arrow connections between objects)

måndag 11 november 13

Page 55: Scientific Visualisation SeSE, 5hpaht/Vis2014/SeSE_IntroAnders.pdf · 2014-11-10 · Scientific Visualisation Scientific visualisation is the process of exploring, transforming, and

Department of Information Technology

Visual Information and Interaction

Data objects

Represent information

Provide methods to create, access, and delete data

Modifying data is not really allowed;reserved for process objects

måndag 11 november 13

Page 56: Scientific Visualisation SeSE, 5hpaht/Vis2014/SeSE_IntroAnders.pdf · 2014-11-10 · Scientific Visualisation Scientific visualisation is the process of exploring, transforming, and

Department of Information Technology

Visual Information and Interaction

Data objects

Represent information

Provide methods to create, access, and delete data

Modifying data is not really allowed;reserved for process objects

måndag 11 november 13

Page 57: Scientific Visualisation SeSE, 5hpaht/Vis2014/SeSE_IntroAnders.pdf · 2014-11-10 · Scientific Visualisation Scientific visualisation is the process of exploring, transforming, and

Department of Information Technology

Visual Information and Interaction

Process objects

Operate on input data to generate output data

New data or new form

Source objects initiate (read, generate) visualisation data flowFilter objects maintain visualisation data flowMapper objects terminate (write, graph) visualisation data flow

måndag 11 november 13

Page 58: Scientific Visualisation SeSE, 5hpaht/Vis2014/SeSE_IntroAnders.pdf · 2014-11-10 · Scientific Visualisation Scientific visualisation is the process of exploring, transforming, and

Department of Information Technology

Visual Information and Interaction

Process objects

Operate on input data to generate output data

New data or new form

Source objects initiate (read, generate) visualisation data flowFilter objects maintain visualisation data flowMapper objects terminate (write, graph) visualisation data flow

måndag 11 november 13

Page 59: Scientific Visualisation SeSE, 5hpaht/Vis2014/SeSE_IntroAnders.pdf · 2014-11-10 · Scientific Visualisation Scientific visualisation is the process of exploring, transforming, and

Department of Information Technology

Visual Information and Interaction

Computational methods, Measured data

Process Object DisplayData Object

MapperFilterSource

Procedural, Reader Transforms the data Creates geometric primitives

4.2 A visualisation pipeline

måndag 11 november 13

Page 60: Scientific Visualisation SeSE, 5hpaht/Vis2014/SeSE_IntroAnders.pdf · 2014-11-10 · Scientific Visualisation Scientific visualisation is the process of exploring, transforming, and

Department of Information Technology

Visual Information and Interaction

Computational methods, Measured data

Process Object DisplayData Object

MapperFilterSource

Procedural, Reader Transforms the data Creates geometric primitives

4.2 A visualisation pipeline

måndag 11 november 13

Page 61: Scientific Visualisation SeSE, 5hpaht/Vis2014/SeSE_IntroAnders.pdf · 2014-11-10 · Scientific Visualisation Scientific visualisation is the process of exploring, transforming, and

Department of Information Technology

Visual Information and Interaction

4.3 Pipeline topology

How to connect data objects and process objects

Pipeline connections type concerns the form of data that

process objects take as input or generate as output

multiplicity deals with # of input and # of output allowed

Feedback loops view intermediate results

måndag 11 november 13

Page 62: Scientific Visualisation SeSE, 5hpaht/Vis2014/SeSE_IntroAnders.pdf · 2014-11-10 · Scientific Visualisation Scientific visualisation is the process of exploring, transforming, and

Department of Information Technology

Visual Information and Interaction

4.3 Pipeline topology

How to connect data objects and process objects

Pipeline connections type concerns the form of data that

process objects take as input or generate as output

multiplicity deals with # of input and # of output allowed

Feedback loops view intermediate results

måndag 11 november 13

Page 63: Scientific Visualisation SeSE, 5hpaht/Vis2014/SeSE_IntroAnders.pdf · 2014-11-10 · Scientific Visualisation Scientific visualisation is the process of exploring, transforming, and

Department of Information Technology

Visual Information and Interaction

4.4 Executing the pipeline

Causing each process object to operateMost frequent executions due to user interaction

change parameters of process object change input to process object

For efficiency reasons, see to that only execute the process objects whose input has changedSynchronization between process objects required prior to execution

måndag 11 november 13

Page 64: Scientific Visualisation SeSE, 5hpaht/Vis2014/SeSE_IntroAnders.pdf · 2014-11-10 · Scientific Visualisation Scientific visualisation is the process of exploring, transforming, and

Department of Information Technology

Visual Information and Interaction

4.4 Executing the pipeline

Causing each process object to operateMost frequent executions due to user interaction

change parameters of process object change input to process object

For efficiency reasons, see to that only execute the process objects whose input has changedSynchronization between process objects required prior to execution

måndag 11 november 13

Page 65: Scientific Visualisation SeSE, 5hpaht/Vis2014/SeSE_IntroAnders.pdf · 2014-11-10 · Scientific Visualisation Scientific visualisation is the process of exploring, transforming, and

Department of Information Technology

Visual Information and Interaction

4.5 Memory and computation trade-off

måndag 11 november 13

Page 66: Scientific Visualisation SeSE, 5hpaht/Vis2014/SeSE_IntroAnders.pdf · 2014-11-10 · Scientific Visualisation Scientific visualisation is the process of exploring, transforming, and

Department of Information Technology

Visual Information and Interaction

4.5 Memory and computation trade-off

Visualisation is resource demanding in computer memory due to input data size computational times due to algorithm

complexity

måndag 11 november 13

Page 67: Scientific Visualisation SeSE, 5hpaht/Vis2014/SeSE_IntroAnders.pdf · 2014-11-10 · Scientific Visualisation Scientific visualisation is the process of exploring, transforming, and

Department of Information Technology

Visual Information and Interaction

4.5 Memory and computation trade-off

Visualisation is resource demanding in computer memory due to input data size computational times due to algorithm

complexity

Static memory model intermediate data saved to reduce overall

computation

måndag 11 november 13

Page 68: Scientific Visualisation SeSE, 5hpaht/Vis2014/SeSE_IntroAnders.pdf · 2014-11-10 · Scientific Visualisation Scientific visualisation is the process of exploring, transforming, and

Department of Information Technology

Visual Information and Interaction

4.5 Memory and computation trade-off

Visualisation is resource demanding in computer memory due to input data size computational times due to algorithm

complexity

Static memory model intermediate data saved to reduce overall

computation

Dynamic memory model intermediate data discarded, but may have to

be re-computed, re-loaded

måndag 11 november 13

Page 69: Scientific Visualisation SeSE, 5hpaht/Vis2014/SeSE_IntroAnders.pdf · 2014-11-10 · Scientific Visualisation Scientific visualisation is the process of exploring, transforming, and

Department of Information Technology

Visual Information and Interaction

4.5 Memory and computation trade-off

Visualisation is resource demanding in computer memory due to input data size computational times due to algorithm

complexity

Static memory model intermediate data saved to reduce overall

computation

Dynamic memory model intermediate data discarded, but may have to

be re-computed, re-loaded

Combination of static and dynamic models

måndag 11 november 13