34

Ways to visualize your data using: Matlab · •Matlab –Scientific tool –Good for visualizing distributions of data –Expensive •Blender –Open source 3D-modeling software

  • Upload
    others

  • View
    9

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Ways to visualize your data using: Matlab · •Matlab –Scientific tool –Good for visualizing distributions of data –Expensive •Blender –Open source 3D-modeling software
Page 2: Ways to visualize your data using: Matlab · •Matlab –Scientific tool –Good for visualizing distributions of data –Expensive •Blender –Open source 3D-modeling software

2

• Ways to visualize your data using:

– Matlab

– Blender 2.5

Page 3: Ways to visualize your data using: Matlab · •Matlab –Scientific tool –Good for visualizing distributions of data –Expensive •Blender –Open source 3D-modeling software

3

• Matlab

– Scientific tool

– Good for visualizing distributions of data

– Expensive

• Blender

– Open source 3D-modeling software

– Free

– Harder (but NOT impossible) to do ”exact” scientific

visualizations

Page 4: Ways to visualize your data using: Matlab · •Matlab –Scientific tool –Good for visualizing distributions of data –Expensive •Blender –Open source 3D-modeling software

4

• Developed by The MathWorks

• First appeared in the late 1970s

• Short for ”Matrix Laboratory”

• All variables are matrices

• Several modules, e.g., ”Image processing toolbox”

• Cross-platform

• Scripts are quick to write but slow to execute

Page 5: Ways to visualize your data using: Matlab · •Matlab –Scientific tool –Good for visualizing distributions of data –Expensive •Blender –Open source 3D-modeling software

5

• Plot options (examples)

Page 6: Ways to visualize your data using: Matlab · •Matlab –Scientific tool –Good for visualizing distributions of data –Expensive •Blender –Open source 3D-modeling software

6

• Available plot-types depend on which toolboxes are

installed.

• Huge amount of user written functions at Mathwork

file exchange

• Easy to modify and/or create own visualization

functions

Page 7: Ways to visualize your data using: Matlab · •Matlab –Scientific tool –Good for visualizing distributions of data –Expensive •Blender –Open source 3D-modeling software

7

• Import and export of 'special' data very much

dependent on user scripts

• Example: writeVTK.m

Page 8: Ways to visualize your data using: Matlab · •Matlab –Scientific tool –Good for visualizing distributions of data –Expensive •Blender –Open source 3D-modeling software

8

Page 9: Ways to visualize your data using: Matlab · •Matlab –Scientific tool –Good for visualizing distributions of data –Expensive •Blender –Open source 3D-modeling software

9

• Matlab plots can be a bit … plain

• Quite easy to prettify them substantially:

– Export plot to .svg (Scalable Vector Graphics) using

“plot2svg_2d” script found at Mathworks file exchange

– Load and manipulate in preferred SVG graphics editor (I

use )

Page 10: Ways to visualize your data using: Matlab · •Matlab –Scientific tool –Good for visualizing distributions of data –Expensive •Blender –Open source 3D-modeling software

10

• www.mathworks.com

• www.mathworks.com/matlabcentral/fileexchange

Page 11: Ways to visualize your data using: Matlab · •Matlab –Scientific tool –Good for visualizing distributions of data –Expensive •Blender –Open source 3D-modeling software

11

• Free 3D modeling and animation software

• Features include (not a complete list!):

– Physics and Particles

– Liquid and softbody (cloth) simulations

– Game engine

– Python support for scripting

– Video sequencer

– Sculpting

• Available for all common OS (installation file sized

around 20-25 Mb)

Page 12: Ways to visualize your data using: Matlab · •Matlab –Scientific tool –Good for visualizing distributions of data –Expensive •Blender –Open source 3D-modeling software

12

• Initially developed as an in-house application by the

Dutch animation studio NeoGeo and Not a Number

Technologies (NaN) during the late 90's

• NaN bankrupt 2002 (Blender v 2.25)

• Released under the GNU GPL for a one time payment

of 100,000 Euros

• Blender is now managed by the Blender Foundation

• Version 2.5 recently released which included a full

remake of GUI and toolset

Page 13: Ways to visualize your data using: Matlab · •Matlab –Scientific tool –Good for visualizing distributions of data –Expensive •Blender –Open source 3D-modeling software

13

• Strengths:

– Free (!!!)

– Powerful & fully featured

– Interface for python scripting (custom applications)

– Large user community -> tons (!) of online material

• Weaknesses:

– Sometimes hard to find good documentation

– Fewer “presets” than commercial products (3DS Max,

Maya)

Page 14: Ways to visualize your data using: Matlab · •Matlab –Scientific tool –Good for visualizing distributions of data –Expensive •Blender –Open source 3D-modeling software

14

3D-Window

Camera

Object

Lamp

Butt

ons

win

dow

Window header

Tools ta

b

Page 15: Ways to visualize your data using: Matlab · •Matlab –Scientific tool –Good for visualizing distributions of data –Expensive •Blender –Open source 3D-modeling software

15

• 'Middle mouse button' (MMB) – Rotate view

• 'Shift' + 'MMB' – Pan view

• 'Scroll wheel' – Zoom

• 'Ctrl' + 'MMB' – Zoom

• 'Numpad 1, 3, 7' – Front, right and top view

• 'Left mouse button' (LMB) – Move 3D cursor

Page 16: Ways to visualize your data using: Matlab · •Matlab –Scientific tool –Good for visualizing distributions of data –Expensive •Blender –Open source 3D-modeling software

16

• Right mouse button (RMB) – Selects objects

• 'Shift' + RMB – Select multiple objects, deselect

objects

• 'A' – Select all, clear selection

• 'B' – Box select

• 'C' – Brush select

Page 17: Ways to visualize your data using: Matlab · •Matlab –Scientific tool –Good for visualizing distributions of data –Expensive •Blender –Open source 3D-modeling software

17

• 'TAB' key used to switch between modes for selected

object

• In 'Object mode' the user can perform actions that

affect the entire object (translation, scale,

rotation,...)

• In 'Edit mode' local changes can be made by

manipulating the vertices that the object consists of

Page 18: Ways to visualize your data using: Matlab · •Matlab –Scientific tool –Good for visualizing distributions of data –Expensive •Blender –Open source 3D-modeling software

18

• 'G' – Grab (Move objects)

• 'R' – Rotate

• 'S' – Scale

• 'X' – Delete

• 'E' – Extrude (Edit mode)

• 'Z' – Shaded/Unshaded view

• 'Shift' + 'D' – Duplicate

• 'Ctrl' + 'Z' – Undo

Page 19: Ways to visualize your data using: Matlab · •Matlab –Scientific tool –Good for visualizing distributions of data –Expensive •Blender –Open source 3D-modeling software

19

• Numpad '0' – Shows the camera view

• 'F12' renders using current settings and camera, light

positions

• Internal renderer supports ray-tracing

• Several external rendering engines supported

(Yafaray, Indigo)

• It is possible to make image composition (effects) in

Blender based on the render layers

Page 20: Ways to visualize your data using: Matlab · •Matlab –Scientific tool –Good for visualizing distributions of data –Expensive •Blender –Open source 3D-modeling software

20

Page 21: Ways to visualize your data using: Matlab · •Matlab –Scientific tool –Good for visualizing distributions of data –Expensive •Blender –Open source 3D-modeling software

21

Page 22: Ways to visualize your data using: Matlab · •Matlab –Scientific tool –Good for visualizing distributions of data –Expensive •Blender –Open source 3D-modeling software

22

• Post processing based on render layers

Page 23: Ways to visualize your data using: Matlab · •Matlab –Scientific tool –Good for visualizing distributions of data –Expensive •Blender –Open source 3D-modeling software

23

• Result of ‘Glare’ node

Page 24: Ways to visualize your data using: Matlab · •Matlab –Scientific tool –Good for visualizing distributions of data –Expensive •Blender –Open source 3D-modeling software

24

• Makes it possible to manipulate different aspects of

the render

Page 25: Ways to visualize your data using: Matlab · •Matlab –Scientific tool –Good for visualizing distributions of data –Expensive •Blender –Open source 3D-modeling software

25

• A powerful tool for editing movie clips

• Combine clips, add text, different effects or sound

• Can be used in combination with the node editor for

some very cool results

Page 26: Ways to visualize your data using: Matlab · •Matlab –Scientific tool –Good for visualizing distributions of data –Expensive •Blender –Open source 3D-modeling software

26

PreviewCurve editor

Strip editor

Timeline

Page 27: Ways to visualize your data using: Matlab · •Matlab –Scientific tool –Good for visualizing distributions of data –Expensive •Blender –Open source 3D-modeling software

27

• Import/Export scripts exist for several common 3D-

formats

• ”Open source quality”

• Writing custom import scripts possible through

python interface

Page 28: Ways to visualize your data using: Matlab · •Matlab –Scientific tool –Good for visualizing distributions of data –Expensive •Blender –Open source 3D-modeling software

28

• Blender comes equipped with a fully featured python

script editor

• Blender has its own Python API

• Possible to control most of the functionality through

Python scripts

• Learning threshold determined by ability to pick up

Python

Page 29: Ways to visualize your data using: Matlab · •Matlab –Scientific tool –Good for visualizing distributions of data –Expensive •Blender –Open source 3D-modeling software

29

Page 30: Ways to visualize your data using: Matlab · •Matlab –Scientific tool –Good for visualizing distributions of data –Expensive •Blender –Open source 3D-modeling software

30

Page 31: Ways to visualize your data using: Matlab · •Matlab –Scientific tool –Good for visualizing distributions of data –Expensive •Blender –Open source 3D-modeling software

31

Page 32: Ways to visualize your data using: Matlab · •Matlab –Scientific tool –Good for visualizing distributions of data –Expensive •Blender –Open source 3D-modeling software

32

• Blender is used at scientific groups over the world

• Free and open source but still powerful

• Uses include

– Electron microscope data visualizations

(http://www.sciencemag.org/content/vol320/issue5872/cov

er.dtl)

– Population behavior simulation using the Blender game

engine (http://vimeo.com/2158835)

– Molecular visualization and simulation

(http://www.scivis.ifc.cnr.it/)

Page 33: Ways to visualize your data using: Matlab · •Matlab –Scientific tool –Good for visualizing distributions of data –Expensive •Blender –Open source 3D-modeling software

33

• www.blender.org

• www.blendernation.com

• www.blendercookie.com

• www.blenderartists.org

• www.elephantsdream.org

• www.bigbuckbunny.org

• www.open3dcourse.se (Gävle högskola course)

Page 34: Ways to visualize your data using: Matlab · •Matlab –Scientific tool –Good for visualizing distributions of data –Expensive •Blender –Open source 3D-modeling software

34

• DEMO TIME!!!