190 likes | 285 Views
Illustration III. Computer Graphics Basics. Q : What is a model?. A useful representation It contains significant elements of the object being modeled, but not all elements It is useful Example : A road map. Q : What is a model?. In animation, a mathematical description of the object
E N D
Illustration III Computer Graphics Basics
Q:What is a model? • A useful representation • It contains significant elements of the object being modeled, but not all elements • It is useful • Example: A road map
Q:What is a model? • In animation, a mathematical description of the object • Types of modeling • Surface • Solid • Particle-systems
Surface modeling • Only surface of object is represented • Model is hollow • Often uses either polygonal mesh or spline patches
Solid modeling • Both surface and interior attributes are represented • Model is solid • Allows for Boolean combinations of models
Particle systems • Comprised of particles • Models do not have a fixed or stable shape • Examples: Smoke, rain, fire, clouds
Polygonal Models • Point • 0-dimensional • Literally, a point in some n-space • Line • 1-dimensional (length) • Two points define a line • Plane • 2-dimensional (length, width) • Three points define a plane
Polygonal Models • Edge or Line segment • A portion of a line that falls between two points on the line • Polygon • A closed transit through a series of points • Surface • A polygonal section of a plane, where all points are in the plane
Polygonal Models • Polygon count • Number of polygons in a model • Polygon reduction • Aka polygon thinning or polygon culling • Eliminate/merge polygons to reduce polygon count • Polygon Expansion • Adds/divides polygons to increase count
Polygonal Models • Polygon Rounding • Adds/divides polygons to smoothorround sharp angles
Polygonal Models • Mesh • Polygons organized into rows and columns • Topology • Description of surface organization
Splines & Patches • Linear Approximation (Polyline) • A series of connected line segments • As the number of segments increases, so does the resolution of the polyline • Be careful! This may result in too much data!
Splines & Patches • Spline • Parameterized curve defines by a collection of control points and cubic equations • Interpolated spline • Control points on curve • Cardinal spline • Endpoints not on curve • Approximated spline • Control points not all on curve
Splines & Patches • Patch • Surface defined by cubic spline curves in two directions • Bicubic
Y+ Axes Origin X+ Z+ Coordinate Systems
Coordinate Systems • Right-handed • Z+ axis points towards viewer • Left-handed • Z+ axis points away from viewer
Views • Perspective • Things farther away look smallerThings closer look larger • Orthographic • Same size regardless of distance from viewer • Top, Bottom, Front, Back, Left and Right views
Geometric Primitives Sphere Cube Cylinder Torus
Transformations • Scale • Resize with respect to a given axis • Rotate • Spin with respect to a given axis • Translate • Move to a new position