mae 152 computer graphics for scientists and engineers
DESCRIPTION
MAE 152 Computer Graphics for Scientists and Engineers. Fall 2003 Dr. Prashant V. Mahajan Senior Research Scientist AValonRF, Inc., El Cajon, CA. Graphics System. User. Display. React to Change. Change Image. Input Device. What is Computer Graphics. - PowerPoint PPT PresentationTRANSCRIPT
![Page 1: MAE 152 Computer Graphics for Scientists and Engineers](https://reader035.vdocuments.mx/reader035/viewer/2022062322/5681457b550346895db24ef5/html5/thumbnails/1.jpg)
MAE 152Computer Graphics for
Scientists and Engineers
Fall 2003
Dr. Prashant V. MahajanSenior Research Scientist
AValonRF, Inc., El Cajon, CA
![Page 2: MAE 152 Computer Graphics for Scientists and Engineers](https://reader035.vdocuments.mx/reader035/viewer/2022062322/5681457b550346895db24ef5/html5/thumbnails/2.jpg)
What is Computer Graphics
• Computer technology used to create, manipulate and communicate visual information
ChangeImage
Reactto
Change
Graphics System User
InputDevice
Display
![Page 3: MAE 152 Computer Graphics for Scientists and Engineers](https://reader035.vdocuments.mx/reader035/viewer/2022062322/5681457b550346895db24ef5/html5/thumbnails/3.jpg)
History of Computer Graphics• Whirlwind computer at MIT (1950s)• Sketchpad (Ivan Sutherland, MIT 1963)• Computer aided design (CAD) 1965 -• Simulators (c.1975-)• Bitmap graphical user interfaces (late 70s)• Interactive raster graphics (80s)• Virtual reality (late 80s - )• Computer animation• Visualization• Computer art• Web/internet based graphics
![Page 4: MAE 152 Computer Graphics for Scientists and Engineers](https://reader035.vdocuments.mx/reader035/viewer/2022062322/5681457b550346895db24ef5/html5/thumbnails/4.jpg)
GC “Processes”
• Modeling
• Storing
• Manipulating
• Rendering
• Viewing
![Page 5: MAE 152 Computer Graphics for Scientists and Engineers](https://reader035.vdocuments.mx/reader035/viewer/2022062322/5681457b550346895db24ef5/html5/thumbnails/5.jpg)
Major areas of application …
![Page 6: MAE 152 Computer Graphics for Scientists and Engineers](https://reader035.vdocuments.mx/reader035/viewer/2022062322/5681457b550346895db24ef5/html5/thumbnails/6.jpg)
If you can imagine it, it can be done.
Major areas…entertainment
![Page 7: MAE 152 Computer Graphics for Scientists and Engineers](https://reader035.vdocuments.mx/reader035/viewer/2022062322/5681457b550346895db24ef5/html5/thumbnails/7.jpg)
Games are okay here!
Animation
![Page 8: MAE 152 Computer Graphics for Scientists and Engineers](https://reader035.vdocuments.mx/reader035/viewer/2022062322/5681457b550346895db24ef5/html5/thumbnails/8.jpg)
Tools for teaching and diagnosis, all the way to treatment.
Image processing
![Page 9: MAE 152 Computer Graphics for Scientists and Engineers](https://reader035.vdocuments.mx/reader035/viewer/2022062322/5681457b550346895db24ef5/html5/thumbnails/9.jpg)
“Solid model is worth 1000 drawings !”
CAD
![Page 10: MAE 152 Computer Graphics for Scientists and Engineers](https://reader035.vdocuments.mx/reader035/viewer/2022062322/5681457b550346895db24ef5/html5/thumbnails/10.jpg)
Scientific Visualization
Data plotting and visualization
![Page 11: MAE 152 Computer Graphics for Scientists and Engineers](https://reader035.vdocuments.mx/reader035/viewer/2022062322/5681457b550346895db24ef5/html5/thumbnails/11.jpg)
GUI
Business Graphics
![Page 12: MAE 152 Computer Graphics for Scientists and Engineers](https://reader035.vdocuments.mx/reader035/viewer/2022062322/5681457b550346895db24ef5/html5/thumbnails/12.jpg)
Goals of CG
• Interactivity
• Real-time
• Realism
![Page 13: MAE 152 Computer Graphics for Scientists and Engineers](https://reader035.vdocuments.mx/reader035/viewer/2022062322/5681457b550346895db24ef5/html5/thumbnails/13.jpg)
“Distinctiveness” of CG
• Dynamic environment
• Interactive environment
• Simulation environment
• Visualizing large quantities of data
![Page 14: MAE 152 Computer Graphics for Scientists and Engineers](https://reader035.vdocuments.mx/reader035/viewer/2022062322/5681457b550346895db24ef5/html5/thumbnails/14.jpg)
Graphics: Conceptual Model
Real Object
Human Eye
Real Light
Real Object
Human Eye
DisplayDevice
Graphics System
SyntheticModel
SyntheticCamera
SyntheticLight Source
![Page 15: MAE 152 Computer Graphics for Scientists and Engineers](https://reader035.vdocuments.mx/reader035/viewer/2022062322/5681457b550346895db24ef5/html5/thumbnails/15.jpg)
Graphics Pipeline
z = znear
z = zfar
y
x
z
COP
y
x
zx
z
z = -1
z = 1
y
x
y
Model Coordinates Eye Coordinates Normalized Coordinates
Window CoordinatesProjectedNormalized Coordinates
ModelviewTransform
ProjectionTransform
ViewportTransform
(-1,-1)
(1,1)
glScalef() glRotatef()glTranslatef()
glFrustrum()gluPerspective()
glViewport()
![Page 16: MAE 152 Computer Graphics for Scientists and Engineers](https://reader035.vdocuments.mx/reader035/viewer/2022062322/5681457b550346895db24ef5/html5/thumbnails/16.jpg)
How Does Application ProgramCommunicate With Graphics System?
ApplicationProgram Graphics
System
InputDevices
???2D Output Image
(3D) Model
![Page 17: MAE 152 Computer Graphics for Scientists and Engineers](https://reader035.vdocuments.mx/reader035/viewer/2022062322/5681457b550346895db24ef5/html5/thumbnails/17.jpg)
Components of a Graphics API
• Primitive functions (What to draw)• Primitive attributes (How to draw it)• Transformation functions (Rotate, scale, translate
objects (where, how big?))• Synthetic camera Viewing functions (how to look at
it?)• Input functions (Handle interactivity)• Control functions
(Communicate with underlying window system/OS)
(Initialization, error handling, etc)
![Page 18: MAE 152 Computer Graphics for Scientists and Engineers](https://reader035.vdocuments.mx/reader035/viewer/2022062322/5681457b550346895db24ef5/html5/thumbnails/18.jpg)
What is in this course?• OpenGL system and sample code • simple geometric modeling and GL/GLUT primitives • transformations • managing transformation stacks and composing
transformations • animation, double buffering of images • color models and representation • lights and shading models • display lists • event models and event-driven programming • standard OpenGL callbacks
![Page 19: MAE 152 Computer Graphics for Scientists and Engineers](https://reader035.vdocuments.mx/reader035/viewer/2022062322/5681457b550346895db24ef5/html5/thumbnails/19.jpg)
What is covered …
• Matrix operations• Representations, linear functions and
interpolations, polynomials, splines, bezier functions
• ProENGINEER solid modeling• DXF (between ProE and external programs)• description of course projects and operations
![Page 20: MAE 152 Computer Graphics for Scientists and Engineers](https://reader035.vdocuments.mx/reader035/viewer/2022062322/5681457b550346895db24ef5/html5/thumbnails/20.jpg)
Administrative
Class-hours: Wed-Fri, 5-6.20 p.m.Instructor: Dr Prashant V Mahajan
Contact: [email protected] hours: Wed-Fri, 3.45-4.45 p.m.
TAs: Alex SeguritenAlex Simpkins
Textbook/Reference(1) OpenGL Programming Guide, by Neider, Davis, & Woo(2) Computer Graphics for Design, by Daniel B. Olfe(3) Handouts
![Page 21: MAE 152 Computer Graphics for Scientists and Engineers](https://reader035.vdocuments.mx/reader035/viewer/2022062322/5681457b550346895db24ef5/html5/thumbnails/21.jpg)
Administrative …
Lab HoursAssignment / Project turn-in methodFinal QuizGrading
![Page 22: MAE 152 Computer Graphics for Scientists and Engineers](https://reader035.vdocuments.mx/reader035/viewer/2022062322/5681457b550346895db24ef5/html5/thumbnails/22.jpg)
Assignment 1: C Programming• Learning objectives
– Review programming in C
– loops
– Variables
– Functions
– Arrays
– commenting and more
• Microsoft Visual C++ or the compiler of your choice • Basic concept of a user interface
![Page 23: MAE 152 Computer Graphics for Scientists and Engineers](https://reader035.vdocuments.mx/reader035/viewer/2022062322/5681457b550346895db24ef5/html5/thumbnails/23.jpg)
C Programming Assignment
• Plate of heat-conductive material
• Uniform temperature for t<0
• At t=0, “point heat sources” applied at two arbitrary points on the plate
• Output the temperature distribution on the plate after 25 time steps
• Due Fri, Oct 3