digital media
DESCRIPTION
Digital Media. Lecture 7: Vector Graphics 3D Georgia Gwinnett College School of Science and Technology Dr. Jim Rowan. 3D. X & Y like 2D graphics Z is Height (or depth). 3D. 3D shapes (objects) are defined by their surfaces - PowerPoint PPT PresentationTRANSCRIPT
![Page 1: Digital Media](https://reader035.vdocuments.us/reader035/viewer/2022070400/56813507550346895d9c580a/html5/thumbnails/1.jpg)
Digital Media
Lecture 7: Vector Graphics 3D
Georgia Gwinnett CollegeSchool of Science and Technology
Dr. Jim Rowan
![Page 2: Digital Media](https://reader035.vdocuments.us/reader035/viewer/2022070400/56813507550346895d9c580a/html5/thumbnails/2.jpg)
3D
X & Y like 2D graphics Z is Height (or depth)
![Page 3: Digital Media](https://reader035.vdocuments.us/reader035/viewer/2022070400/56813507550346895d9c580a/html5/thumbnails/3.jpg)
3D
3D shapes (objects) are defined by their surfaces
Complicated because a 3D object (inside the computer) must be translated into 2D to be viewed…
And you need to: – specify the viewpoint, a camera– specify the lighting
![Page 4: Digital Media](https://reader035.vdocuments.us/reader035/viewer/2022070400/56813507550346895d9c580a/html5/thumbnails/4.jpg)
3D
Specifying the camera and the lighting has one huge advantage over 2D– Automatically generates all of shadows
BUT… rendering (converting 3D to 2D) is extremely computationally expensive (demanding, time consuming)– It can be slow!
![Page 5: Digital Media](https://reader035.vdocuments.us/reader035/viewer/2022070400/56813507550346895d9c580a/html5/thumbnails/5.jpg)
3D
Lighting has different characteristics and must be specified– natural or artificial– spot or flood– color– multiple sources– reflections off other objects in the scene
Atmosphere must be intentionally included
Surface texture must be specified
![Page 6: Digital Media](https://reader035.vdocuments.us/reader035/viewer/2022070400/56813507550346895d9c580a/html5/thumbnails/6.jpg)
Issues of focus/atmosphereExamples from Sintel
Sintel Example
![Page 7: Digital Media](https://reader035.vdocuments.us/reader035/viewer/2022070400/56813507550346895d9c580a/html5/thumbnails/7.jpg)
Managing Complexity
![Page 8: Digital Media](https://reader035.vdocuments.us/reader035/viewer/2022070400/56813507550346895d9c580a/html5/thumbnails/8.jpg)
Structural hierarchy Things in the real world are compositions of
smaller things
Things in the 3-D graphics world are also compositions of smaller things
Hierarchical structure is an excellent way of coping with complexity
Also seen in object-oriented programming like Java and Squeak!
![Page 9: Digital Media](https://reader035.vdocuments.us/reader035/viewer/2022070400/56813507550346895d9c580a/html5/thumbnails/9.jpg)
![Page 10: Digital Media](https://reader035.vdocuments.us/reader035/viewer/2022070400/56813507550346895d9c580a/html5/thumbnails/10.jpg)
![Page 11: Digital Media](https://reader035.vdocuments.us/reader035/viewer/2022070400/56813507550346895d9c580a/html5/thumbnails/11.jpg)
![Page 12: Digital Media](https://reader035.vdocuments.us/reader035/viewer/2022070400/56813507550346895d9c580a/html5/thumbnails/12.jpg)
3D Models
![Page 13: Digital Media](https://reader035.vdocuments.us/reader035/viewer/2022070400/56813507550346895d9c580a/html5/thumbnails/13.jpg)
So…
How do you build a model inside a computer when you can’t touch it?
Constructive Solid Geometry Free Form: Bezier Surfaces Free Form: Extrusion Procedural modeling
![Page 14: Digital Media](https://reader035.vdocuments.us/reader035/viewer/2022070400/56813507550346895d9c580a/html5/thumbnails/14.jpg)
3D models
Constructive solid geometry– building things from known shapes– uses geometric solids: cube, cylinder,
sphere and pyramid– objects build by squishing and
stretching those objects– objects joined using union,
intersection and difference
![Page 15: Digital Media](https://reader035.vdocuments.us/reader035/viewer/2022070400/56813507550346895d9c580a/html5/thumbnails/15.jpg)
Intersection
![Page 16: Digital Media](https://reader035.vdocuments.us/reader035/viewer/2022070400/56813507550346895d9c580a/html5/thumbnails/16.jpg)
Difference
![Page 17: Digital Media](https://reader035.vdocuments.us/reader035/viewer/2022070400/56813507550346895d9c580a/html5/thumbnails/17.jpg)
Union or just two objects?
![Page 18: Digital Media](https://reader035.vdocuments.us/reader035/viewer/2022070400/56813507550346895d9c580a/html5/thumbnails/18.jpg)
Free Form
Building things one side at a time Uses an object’s surface (it’s boundary with the
world) to define it Build surfaces from flat polygons or curved patches
– flat polygons are easier to render and therefore frequently used in games where computational power is limited
Results in an object drawn as a “mesh” Can be done using Bezier surface patch but they
have 16 control points! More tractable (do-able) patch uses a surface called
a non-rational B-spline
![Page 19: Digital Media](https://reader035.vdocuments.us/reader035/viewer/2022070400/56813507550346895d9c580a/html5/thumbnails/19.jpg)
Free Form: Extrusion
Building things using a play-doh factory
Move a 2 dimensional shape through space along a line
The line can be straight or curved
![Page 20: Digital Media](https://reader035.vdocuments.us/reader035/viewer/2022070400/56813507550346895d9c580a/html5/thumbnails/20.jpg)
Procedural modeling
Best known is based on Fractals– Fractals– exhibit the same structure at all levels of
detail aka “self similar”– used to model natural objects
Particle systems... many particles, few controls– Fur, hair, grass…
Physics... distribution of mass, elasticity, optical properties, laws of motion
![Page 21: Digital Media](https://reader035.vdocuments.us/reader035/viewer/2022070400/56813507550346895d9c580a/html5/thumbnails/21.jpg)
3D Rendering
Rendering engine handles the complexity
Wire frames are used to preview objects and their position– can’t tell which surface is closer to us and
which surface is hidden To save computation time, hidden
surfaces are removed before rendering– Why render what can’t be seen?
![Page 22: Digital Media](https://reader035.vdocuments.us/reader035/viewer/2022070400/56813507550346895d9c580a/html5/thumbnails/22.jpg)
3D rendering
Lighting– Added to scene much like an object– spot light, point source, floodlight...– position and intensity
Direct relationship between rendering quality and computational burden(render time)
![Page 23: Digital Media](https://reader035.vdocuments.us/reader035/viewer/2022070400/56813507550346895d9c580a/html5/thumbnails/23.jpg)
![Page 24: Digital Media](https://reader035.vdocuments.us/reader035/viewer/2022070400/56813507550346895d9c580a/html5/thumbnails/24.jpg)
![Page 25: Digital Media](https://reader035.vdocuments.us/reader035/viewer/2022070400/56813507550346895d9c580a/html5/thumbnails/25.jpg)
![Page 26: Digital Media](https://reader035.vdocuments.us/reader035/viewer/2022070400/56813507550346895d9c580a/html5/thumbnails/26.jpg)
![Page 27: Digital Media](https://reader035.vdocuments.us/reader035/viewer/2022070400/56813507550346895d9c580a/html5/thumbnails/27.jpg)
![Page 28: Digital Media](https://reader035.vdocuments.us/reader035/viewer/2022070400/56813507550346895d9c580a/html5/thumbnails/28.jpg)
![Page 29: Digital Media](https://reader035.vdocuments.us/reader035/viewer/2022070400/56813507550346895d9c580a/html5/thumbnails/29.jpg)
![Page 30: Digital Media](https://reader035.vdocuments.us/reader035/viewer/2022070400/56813507550346895d9c580a/html5/thumbnails/30.jpg)