3D Visualisation of Simulation Data. Informal Seminar 08/03/2004. By Chris Sweet.

Slides:



Advertisements
Similar presentations
COMPUTER GRAPHICS SOFTWARE.
Advertisements

CS 352: Computer Graphics Chapter 7: The Rendering Pipeline.
Graphics Pipeline.
Computer Graphic Creator: Mohsen Asghari Session 2 Fall 2014.
3D Graphics Rendering and Terrain Modeling
Real-Time Rendering SPEACIAL EFFECTS Lecture 03 Marina Gavrilova.
HCI 530 : Seminar (HCI) Damian Schofield.
CS6500 Adv. Computer Graphics © Chun-Fa Chang, Spring 2003 Adv. Computer Graphics CS6500, Spring 2003.
Further Programming for 3D applications CE Introduction to Further Programming for 3D application Bob Hobbs Faculty of Computing, Engineering and.
Graphics Systems I-Chen Lin’s CG slides, Doug James’s CG slides Angel, Interactive Computer Graphics, Chap 1 Introduction to Graphics Pipeline.
Introduction to OpenGL. What is OpenGL OpenGL is a low-level software interface to graphics hardware No commands for performing windowing tasks or obtaining.
3D Rendering with JOGL Introduction to Java OpenGL Graphic Library By Ricardo Veguilla
Introduction to 3D Graphics John E. Laird. Basic Issues u Given a internal model of a 3D world, with textures and light sources how do you project it.
Computer Graphics Shadows
Computer Graphics Mirror and Shadows
1 Perception, Illusion and VR HNRS 299, Spring 2008 Lecture 19 Other Graphics Considerations Review.
Course Overview, Introduction to CG Glenn G. Chappell U. of Alaska Fairbanks CS 381 Lecture Notes Friday, September 5, 2003.
Basic Graphics Concepts Day One CSCI 440. Terminology object - the thing being modeled image - view of object(s) on the screen frame buffer - memory that.
University of Illinois at Chicago Electronic Visualization Laboratory (EVL) CS 426 Intro to 3D Computer Graphics © 2003, 2004, 2005 Jason Leigh Electronic.
CHAPTER 4 Window Creation and Control © 2008 Cengage Learning EMEA.
Technology and Historical Overview. Introduction to 3d Computer Graphics  3D computer graphics is the science, study, and method of projecting a mathematical.
Computer Graphics Computer Graphics is everywhere: Visual system is most important sense: High bandwidth Natural communication Fast developments in Hardware.
UniS CS297 Graphics with Java and OpenGL Introduction.
CSE 381 – Advanced Game Programming Basic 3D Graphics
Advanced Computer Graphics March 06, Grading Programming assignments Paper study and reports (flipped classroom) Final project No written exams.
OpenGL Shading Language (Advanced Computer Graphics) Ernest Tatum.
Week 2 - Wednesday CS361.
3D API By Clayton Azzopardi (Group 10). Introduction Android uses the OpenGL ES 1.0 API Android uses the OpenGL ES 1.0 API Open Graphics Library for Embedded.
Computer Graphics An Introduction. What’s this course all about? 06/10/2015 Lecture 1 2 We will cover… Graphics programming and algorithms Graphics data.
UniS CS293 Graphics with Java and OpenGL Introduction.
Chris Kerkhoff Matthew Sullivan 10/16/2009.  Shaders are simple programs that describe the traits of either a vertex or a pixel.  Shaders replace a.
Graphics Programming using OpenGL. OpenGL is a software interface that allows the programmer to create 2D and 3D graphics images. This interface consists.
Buffers Textures and more Rendering Paul Taylor & Barry La Trobe University 2009.
CS 450: COMPUTER GRAPHICS REVIEW: INTRODUCTION TO COMPUTER GRAPHICS – PART 2 SPRING 2015 DR. MICHAEL J. REALE.
1 Introduction to Computer Graphics with WebGL Ed Angel Professor Emeritus of Computer Science Founding Director, Arts, Research, Technology and Science.
OpenGL Conclusions OpenGL Programming and Reference Guides, other sources CSCI 6360/4360.
Stream Processing Main References: “Comparing Reyes and OpenGL on a Stream Architecture”, 2002 “Polygon Rendering on a Stream Architecture”, 2000 Department.
COMPUTER GRAPHICS CSCI 375. What do I need to know?  Familiarity with  Trigonometry  Analytic geometry  Linear algebra  Data structures  OOP.
GRAPHICS PIPELINE & SHADERS SET09115 Intro to Graphics Programming.
Programming 3D Applications CE Displaying Computer Graphics Week 3 Lecture 5 Bob Hobbs Faculty of Computing, Engineering and Technology Staffordshire.
Computer Graphics Chapter 6 Andreas Savva. 2 Interactive Graphics Graphics provides one of the most natural means of communicating with a computer. Interactive.
1 Perception and VR MONT 104S, Fall 2008 Lecture 21 More Graphics for VR.
Introduction to OpenGL  OpenGL is a graphics API  Software library  Layer between programmer and graphics hardware (and software)  OpenGL can fit in.
Mark Nelson 3d projections Fall 2013
Advanced Computer Graphics Spring 2014 K. H. Ko School of Mechatronics Gwangju Institute of Science and Technology.
1 Welcome Alireza Moghaddam Humber College Lecture 1 Game 540 Alireza Moghaddam
Review on Graphics Basics. Outline Polygon rendering pipeline Affine transformations Projective transformations Lighting and shading From vertices to.
Chapters 5 2 March Classical & Computer Viewing Same elements –objects –viewer –projectors –projection plane.
A SEMINAR ON 1 CONTENT 2  The Stream Programming Model  The Stream Programming Model-II  Advantage of Stream Processor  Imagine’s.
1 Angel: Interactive Computer Graphics5E © Addison- Wesley 2009 Image Formation Fundamental imaging notions Fundamental imaging notions Physical basis.
From Turing Machine to Global Illumination Chun-Fa Chang National Taiwan Normal University.
Lecture 7 Midterm Review. OpenGL Libraries gl: Basic OpenGL library, e.g. primitives. glu: OpenGL Utility library, a set of functions to create texture.
1 CSCE 441: Computer Graphics Hidden Surface Removal Jinxiang Chai.
1 Perception, Illusion and VR HNRS 299, Spring 2008 Lecture 15 Creating 3D Models.
Shadows David Luebke University of Virginia. Shadows An important visual cue, traditionally hard to do in real-time rendering Outline: –Notation –Planar.
OpenGL: The Open Graphics Language Technology and Historical Overview By Ricardo Veguilla.
Computer Graphics (Fall 2003) COMS 4160, Lecture 5: OpenGL 1 Ravi Ramamoorthi Many slides courtesy Greg Humphreys.
Spring 2006 G5BAGR – Advanced Computer Graphics
- Introduction - Graphics Pipeline
Photorealistic Rendering vs. Interactive 3D Graphics
Modeling 101 For the moment assume that all geometry consists of points, lines and faces Line: A segment between two endpoints Face: A planar area bounded.
3D Graphics Rendering PPT By Ricardo Veguilla.
From Turing Machine to Global Illumination
CS451Real-time Rendering Pipeline
Understanding Theory and application of 3D
Introduction to Computer Graphics with WebGL
Chapter V Vertex Processing
Visibility (hidden surface removal)
Adding Surface Detail 고려대학교 컴퓨터 그래픽스 연구실.
Adding Surface Detail 고려대학교 컴퓨터 그래픽스 연구실.
Presentation transcript:

3D Visualisation of Simulation Data. Informal Seminar 08/03/2004. By Chris Sweet.

Why Visualise?  More meaningful than lists of numbers.  People have good visual intuition of dynamics.  Visual check that simulation is correct.  Easier to communicate interesting features of the simulation to others.

Methods for 3D Output.  Projection of 3D image onto 2D plane.  3D libraries such as OpenGL or DirectX.

Projection of 3D onto 2D  This can be accomplished by using a matrix to project the 3D data onto a 2D plane, which can be varied to change the viewpoint.  For a viewing plane defined as follows we get a transformation matrix:

 Example of 2D rendering of objects in 3D. Projection of 3D onto 2D

 Example of 3D surface rendering. Projection of 3D onto 2D

Advantages/Disadvantages of 3D Projection  +Easy to implement on any platform with raster graphics.  -Objects drawn as 2D.  -Hard to determine depth from viewer, (front objects do not obscure rear objects).  -Hard to implement perspective.  -Hard to apply textures.  -Slow as pixel driven.

Advantages/Disadvantages of 3D Libraries  -Hard initial implementation.  +All methods of depth/ perspective/ texturing looked after.  +Hardware support for drawing so fast.  +Libraries exist for many different platforms.  Comparison: 3D projection of Solar System.  3D library rendering of Solar System.

Advantages/Disadvantages of 3D Libraries  Comparison: 3D projection of Solar System.

Advantages/Disadvantages of 3D Libraries  3D library rendering of Solar System.

OpenGL  OpenGL is a cross-platform 3D graphics and modelling library with extremely good hardware support.  OpenGL is a procedural graphics API containing over 200 commands and functions.  OpenGL works in conjunction with other libraries, such as GLUT, for easier implementation.

OpenGL basics, Vertex Transformation  Vertices are transformed according to the following pipeline:

OpenGL basics, Initialisation.  Typical C++ initialisation commands:  Typical C++ re-draw commands:

OpenGL View/Perspective  The viewing Frustum parameters are set using the command:  According to the diagram:

OpenGL Drawing Objects  All OpenGL objects are constructed from polygons by defining the vertices:  or by using GLUT more complex shapes:

OpenGL Lighting  Both ambient and point source lighting can be defined:

OpenGL Textures  Textures can be mapped onto objects according to their vertex positions:

OpenGL Translate/Rotate Object  OpenGL objects can and rotated: be translated:

OpenGL Solar System Model  The Solar System model is a 10 body model designed to test the long term stability of different integrators and uses the previous OpenGL techniques to generate the graphics.

References/Acknowledgments  The following book provides a good reference to OpenGL with examples in C/C++: OpenGL SuperBible by R.S.Wright, M.Sweet (No relation!).  The following online tutorial covers most aspects of OpenGL programming: