VTK & ParaView Ray Gasser SCV Visualization Workshop – Fall 2008.

Slides:



Advertisements
Similar presentations
Dr. Will Schroeder, Kitware
Advertisements

Reconstruction from Voxels (GATE-540)
Yingcai Xiao Chapter 6 Fundamental Algorithms. Types of Visualization Transformation Types 1.Data (Attribute Transformation) 2.Topology (Topological Transformation)
Direct Volume Rendering. What is volume rendering? Accumulate information along 1 dimension line through volume.
Visualization Data Representation Ray Gasser SCV Visualization Workshop – Fall 2008.
3D Graphics Rendering and Terrain Modeling
Scientific Visualization Using ParaView – Fall 2014
ParaView Tutorial Greg Johnson, Karla Vega. Before we begin… Make sure you have ParaView installed so you can follow along in the lab section –
CDS 301 Fall, 2009 Scalar Visualization Chap. 5 September 24, 2009 Jie Zhang Copyright ©
Scientific Visualization with ParaView Robert Putnam IS&T Scientific Visualization Tutorial – Spring 2011.
University of British Columbia CPSC 314 Computer Graphics Jan-Apr 2005 Tamara Munzner Information Visualization.
Slide 1 Visualization of scientific data under Linux - Techniques and data wrangling Mike Walterman, Manager of Graphics Programming, Scientific Computing.
Programming for Image Processing/Analysis and Visualization using The Visualization Toolkit Xenios Papademetris BML 325,
IS&T Scientific Visualization Tutorial Erik Brisson Introduction to Scientific Visualization.
Scientific Visualization with ParaView Ray Gasser IS&T Scientific Visualization Tutorial – Spring 2010.
Introduction to Volume Visualization Mengxia Zhu Fall 2007.
IS&T Scientific Visualization Tutorial Erik Brisson Introduction to Scientific Visualization.
Scientific Visualization using VTK Robert Putnam Scientific Visualization with VTK – Fall 2010.
ITUppsala universitet Data representation and fundamental algorithms Filip Malmberg
Visualization Knowledge (VisKo): Leveraging the Semantic Web to Support VisualizationVisKo Nicholas Del Rio CyberShARE Center University of Texas at El.
Scientific Visualization using VTK Ray Gasser IS&T Scientific Visualization Tutorial – Spring 2010.
Interactive Visualization of Volumetric Data on Consumer PC Hardware: Introduction Daniel Weiskopf Graphics Hardware Trends Faster development than Moore’s.
Leicester, February 24, 2005 VisIVO, a VO-Enabled tool for Scientific Visualization and Data Analysis. VO-TECH Project. Stage01 Ugo Becciani INAF – Astrophysical.
lecture 2 : Visualization Basics
Welcome to the UPPMAX Visualization Workshop 21,22/ Day one  UPPMAX  Introduction to Visualization and Python  Read your own data using Python.
CS 480/680 Computer Graphics Course Overview Dr. Frederick C Harris, Jr. Fall 2012.
Technology and Historical Overview. Introduction to 3d Computer Graphics  3D computer graphics is the science, study, and method of projecting a mathematical.
VTK: Data Shroeder et al. Chapter 5 University of Texas – Pan American CSCI 6361, Spring 2014 After Taku Komura and other lecture sets
Scientific Visualization An Introduction Michel O. R. Eboueya Computer Sciences Department Pôle Sciences et Technologies Université de La Rochelle.
VTK: The Visualization Toolkit Part I: Overview and object models March 28, 2001.
19/18/ :34 Graphics II Volume Rendering Session 10.
National Center for Supercomputing Applications University of Illinois at Urbana–Champaign Practical HPC Visualization Mark Van Moer Visualization Programmer.
CDS 301 Fall, 2009 Vector Visualization Chap. 6 October 7, 2009 Jie Zhang Copyright ©
Week 2 - Wednesday CS361.
Lecture 3 : Direct Volume Rendering Bong-Soo Sohn School of Computer Science and Engineering Chung-Ang University Acknowledgement : Han-Wei Shen Lecture.
Introduction to Scientific Visualization CS 4390/5390 Data Visualization Shirley Moore, Instructor October 13,
Edinburgh, January 25, 2005 VisIVO, a VO-Enabled tool for Scientific Visualization and Data Analysis: Overview and Demo 1. Ugo Becciani (OACt): Introduction.
Marching Cubes: A High Resolution 3D Surface Construction Algorithm William E. Lorenson Harvey E. Cline General Electric Company Corporate Research and.
AVS/Express and VisIt Training NERSC Users meeting June PPPL Cristina Siegerist NERSC/LBNL Visualization group June 13, 2006.
1 Angel and Shreiner: Interactive Computer Graphics 6E © Addison-Wesley 2012 Introduction to Computer Graphics Ed Angel Professor Emeritus of Computer.
1 Introduction to Computer Graphics SEN Introduction to OpenGL Graphics Applications.
Computer Graphics I, Fall 2008 Introduction to Computer Graphics.
1 Introduction to Computer Graphics with WebGL Ed Angel Professor Emeritus of Computer Science Founding Director, Arts, Research, Technology and Science.
Computer Graphics The Rendering Pipeline - Review CO2409 Computer Graphics Week 15.
VTK. VTK Online Resources On-line Resources VTK –Manual: –Examples:
INT 840E Computer graphics Introduction & Graphic’s Architecture.
Computer Graphics Chapter 6 Andreas Savva. 2 Interactive Graphics Graphics provides one of the most natural means of communicating with a computer. Interactive.
NA-MIC, 2008 June Workshop, IHK Akademie Westerham VTK
VTK: The Visualization Toolkit Qaiser Chaudry Georgia Institute of Technology June 28, 2006.
Vector Field Visualization
IS&T Scientific Visualization Tutorial – Spring 2010
Review on Graphics Basics. Outline Polygon rendering pipeline Affine transformations Projective transformations Lighting and shading From vertices to.
Data Visualization Fall 2015.
Hank Childs, University of Oregon Volume Rendering Primer / Intro to VisIt.
Visualization with ParaView. Before we begin… Make sure you have ParaView 3.14 installed so you can follow along in the lab section –
CHAPTER 5 CONTOURING. 5.3 CONTOURING Fig 5.7. Relationship between color banding and contouring Contour line (isoline): the same scalar value, or isovalue.
SCALAR VISUALIZATION. OUTLINE Visualizing scalar data A number of the most popular scalar visualization techniques Color mapping Contouring Height plots.
2/24/2016 A.Aruna/Assistant professor/IT/SNSCE 1.
67 x 89 = ? 67 x
Visualization of engineering computations in LitGRID and GridTechno projects Arnas Kačeniauskas Laboratory of Parallel Computing
1 CW11 Visualizing ACE3P Results in ParaView Greg Schussman Menlo Park, CA October 10, 2011.
Understanding your FLOW-3D simulations better with EnSight June 2012.
VisIt Project Overview
VTK: The Visualization Toolkit
Scientific Visualization Using VTK – Summer 2012
3D Graphics Rendering PPT By Ricardo Veguilla.
The Graphics Rendering Pipeline
Domain-Modeling Techniques
Visualization CSE 694L Roger Crawfis The Ohio State University.
Introduction to Scientific Visualization
Presentation transcript:

VTK & ParaView Ray Gasser SCV Visualization Workshop – Fall 2008

VTK Visualization Toolkit –Set of object oriented class libraries for visualization –Several language interfaces Python Tcl C++ Java Visual Basic –Open source –Standards based –Portable –Active developer community –Good documentation available –Professional support services available from Kitware SCV Visualization Workshop – Fall 2008

VTK - Graphics Model Graphics Model –Transforms graphical data into pictures –Consists of the following core objects: vtkActor - object in scene vtkLight - illumination of scene vtkCamera - view of scene vtkProperty - appearance of actor vtkMapper - geometry of actor vtkTransform - positioning of actor, camera, lights vtkLookupTable - defines color tables used in scene vtkRenderer - manages rendering of scene vtkRenderWindow - manages graphics window vtkRenderWindowInteractor - manages keyboard and mouse SCV Visualization Workshop – Fall 2008

VTK - Visualization Model Visualization Model –Transforms information into graphical data –Uses a data flow approach –Two basic types of objects involved vtkDataObject –represents data of various types –consist of geometry and topology (points and cells) and attribute data vtkProcessObject –filters which operate on data objects to produce new data objects –represent visualization algorithms –Data Objects and Process Objects are connected together to form a visualization pipeline Source -> Reader -> Filter -> Mapper -> Actor SCV Visualization Workshop – Fall 2008

VTK - Sample Code vtkStructuredGridReader reader reader SetFileName "Data/density.vtk" reader Update vtkContourFilter iso iso SetInputConnection [reader GetOutputPort] iso SetValue 0.26 vtkPolyDataMapper isoMapper isoMapper SetInputConnection [iso GetOutputPort] isoMapper ScalarVisibilityOn vtkActor isoActor isoActor SetMapper isoMapper vtkRenderer ren1 vtkRenderWindow renWin renWin AddRenderer ren1 vtkRenderWindowInteractor iren iren SetRenderWindow renWin ren1 AddActor isoActor renWin SetSize renWin Render SCV Visualization Workshop – Fall 2008

VTK - Readers Polygonal Data Readers –vtkBYUReader - read MOVIE.BYU files –vtkMCubesReader - read binary marching cubes files –vtkOBJReader - read Wavefront (Maya).obj files –vtkPolyDataReader - read VTK polygonal data files –vtkPLYReader - read Standford University PLY polygonal data files –vtkSTLReader - read stereo-lithography files –vtkUGFacetReader - read EDS Unigraphic facet files Image and Volume Readers –vtkBMPReader - read PC bitmap files –vtkDEMReader - read digital elevation model files –vtkJPEGReader - read JPEG files –vtkImageReader - read various image files –vtkPNMReader - read PNM (ppm, pgm, pbm) files –vtkPNGRReader - read Portable Network Graphic files SCV Visualization Workshop – Fall 2008

VTK - Readers Image and Volume Readers (cont) –vtkStructuredPointsReader - read VTK structured points data files –vtkSLCReader - read SLC structured points files –vtkTIFFReader - read files in TIFF format –vtkVolumeReader - read image (volume) files –vtkVolume16Reader - read 16-bit image (volume) files Structured Grid Readers –vtkPLOT3DReader - read structured grid PLOT3D files –vtkStructuredGridReader - read VTK structured grid data files Rectilinear Grid Readers –vtkRectilinearGridReader - read VTK rectilinear grid data files Unstructured Grid Readers –vtkUnstructuredGridReader - read VTK unstructured grid data files SCV Visualization Workshop – Fall 2008

VTK - Resources Texts –The Visualization Toolkit, 4th Edition, Kitware, Inc, –The VTK User’s Guide, 5th Edition, Kitware, Inc, Websites – – – Wiki – Mailing Lists –public.kitware.com/mailman/listinfo/vtkusers SCV Visualization Workshop – Fall 2008

ParaView Parallel Visualization Application –Multi-platform visualization application built on top of VTK extensible architecture via plugins rich scripting support through Python binaries available for Window, OSX, and Linux –Supports distributed computation of large datasets runs on distributed and shared memory parallel systems also runs on single processor system Client/Server model –Open source –Standards based –Active developer community –Professional support services available from Kitware SCV Visualization Workshop – Fall 2008

ParaView - User Interface SCV Visualization Workshop – Fall 2008

ParaView - Models Visualization Model –Same as VTK Uses a data flow approach Data Objects and Process Objects (filters) connected to form a visualization pipeline –Pipeline Visible in the Pipeline Browser Built by loading data and attaching filters from menu Graphics Model –Same as VTK Transforms graphical data into pictures core objects: Actors, Lights, Camera, Transforms, Lookup tables, Renderer –Controlled via object inspector and GUI SCV Visualization Workshop – Fall 2008

ParaView - Resources Text –The ParaView Guide, v3 Edition, Kitware, Inc, Websites – – Wiki – Mailing Lists –public.kitware.com/mailman/listinfo/paraview SCV Visualization Workshop – Fall 2008

Review of Dataset Types SCV Visualization Workshop – Fall 2008 Image Data (Structured Points) –regular in both topology and geometry –examples: lines, pixels, voxels –applications: imaging CT, MRI Rectilinear Grid –regular topology but geometry only partially regular –examples: pixels, voxels Structured Grid –regular topology and irregular geometry –examples: quadrilaterals, hexahedron –applications: fluid flow, heat transfer

Review of Dataset Types Unstructured Points –no topology and irregular geometry –examples: vertex, polyvertex –applications: data with no inherent structure Polygonal Data –irregular in both topology and geometry –examples: vertices, polyvertices, lines, polylines, polygons, triangle strips Unstructured Grid –irregular in both topology and geometry –examples: any combination of cells –applications: finite element analysis, structural design, vibration SCV Visualization Workshop – Fall 2008

Review of Data Attributes Data attributes associated with the organizing structure –Scalars single valued examples: temperature, pressure, density, elevation –Vectors magnitude and direction examples: velocity, momentum –Normals direction vectors (magnitude of 1) used for shading –Texture Coordinates used to map a point in Cartesian space into 1, 2, or 3D texture space used for texture mapping –Tensors (generalizations of scalars, vectors and matrices) rank 0 ( scalar), rank 1 (vector), rank 2 (matrix), rank3 (3D rectangular array) examples: stress, strain SCV Visualization Workshop – Fall 2008

Color Mapping –maps scalar data to colors –implemented by using scalar values as an index into a color lookup table –VTK vtkLookupTable vtkDataSetMapper –ParaView Color panel in Display tab of object inspector of data –Color by –Edit Color Map SCV Visualization Workshop – Fall 2008

Contouring Contouring –construct a boundary between distinct regions two steps: –explore space to find points near contour –connect points into contour (2D) or surface (3D) 2D contour map (isoline) 3D Isosurface –VTK vtkContourFilter –ParaView Contour Filter SCV Visualization Workshop – Fall 2008

Scalar Generation –extract scalars from part of data –VTK vtkElevationFilter –ParaView Elevation Filter SCV Visualization Workshop – Fall 2008

Hedgehogs Hedgehogs –Oriented scaled line for each vector orientation indicates direction scale indicates magnitude color indicates magnitude, pressure, temperature, or any variable –VTK vtkHedgeHog –ParaView Glyph Filter –Set type to line SCV Visualization Workshop – Fall 2008

Oriented Glyphs –Oriented scaled glyph for each vector orientation indicates direction scale indicates magnitude color indicates magnitude, pressure, temperature, or any variable –VTK vtkGlyph3D –ParaView Glyph Filter –Set type to arrow SCV Visualization Workshop – Fall 2008

Warping Warping –advect a simple object to indicate flow –vertices individually translated by flow –VTK vtkWarpScalar –ParaView WarpScalar Filter SCV Visualization Workshop – Fall 2008

Field Lines Fluid flow is described by a vector field in three dimensions for steady (fixed time) flows or four dimensions for unsteady (time varying) flows Three techniques for determining flow –Pathline (Trace) tracks particle through unsteady (time-varying) flow shows particle trajectories over time rake releases particles from multiple positions at the same time instant reveals compression, vorticity –Streamline tracks particle through steady (fixed-time) flow holds flow steady at a fixed time snapshot of flow at a given time instant –Streakline particles released from the same position over a time interval (time-varying) snapshot of the variation of flow over time example: dye steadily injected into fluid at a fixed point SCV Visualization Workshop – Fall 2008

Field Lines Streamlines Lines show particle flow VTK - vtkStreamTracer ParaView - StreamTracer Filter Streamlets half way between streamlines and glyphs VTK - vtkStreamTracer, vtkGlyph3D ParaView - StreamTracer and Glyph Filters Streamribbon rake of two particles to create a ribbon VTK - vtkStreamTracer, vtkRuledSurfaceFilter ParaView - StreamTracer and Ribbon Filters Streamtube circular rake of particles to create a tube VTK - vtkStreamTracer, vtkTubeFilter ParaView - StreamTracer and Tube Filters SCV Visualization Workshop – Fall 2008

Clipping, Cutting, Subsampling Clipping can reveal internal details of surface VTK - vtkClipDataSet ParaView - Clip Filter Cutting/Slicing cutting through a dataset with a surface VTK - vtkCutter ParaView - Cut Filter Subsampling reduces data size by selecting a subset of the original data VTK - vtkExtractGrid ParaView - ExtractGrid Filter SCV Visualization Workshop – Fall 2008

Volume Rendering –used for data that is inherently volumetric –VTK vtkPiecewiseFunction (opacity transfer function) vtkColorTransferFunction vtkVolumeProperty vtkVolumeRayCastCompositeFunction vtkVolume –ParaView –Style panel in Display tab of object inspector of data set Representation to Volume edit Color Map for opacity and color transfer function SCV Visualization Workshop – Fall 2008

Annotation Annotation –used for annotating visualization –VTK vtkScalarBarActor vtkTextMapper vtkScaledTextActor –ParaView Text Source Color panel in Display tab of object inspector of data edit Color Map color legend tab in Color Scale Editor Menu: Edit -> View Settings SCV Visualization Workshop – Fall 2008

Sources The Visualization Toolkit, 3rd Edition, Will Schroeder, Pearson Education, Inc, The VTK User’s Guide, 4.2 Edition, Kitware, The ParaView Guide, v3 Edition, Kitware, Kitware: Kitware: