COIS712/ECOM7087CO1S800 Computer Graphics -Principles Systems Advanced Computer Graphics and Multimedia Advanced Computer Graphics and virtual simulation Chapter 4 Graphics Output Primitives (PartIl
COIS712/ECOM708/COIS800 Computer Graphics – Principles & Systems Advanced Computer Graphics and Multimedia Advanced Computer Graphics and Virtual Simulation Chapter 4 Graphics Output Primitives (Part II)
Outline Open gl Curve Functions fill-Area primitives ° Polygon FillAreas Open gl Polygon Fill-area Functions o Pixel Array Primitives ● Character primitiⅤes Open gL functions ° OpenGL Display lists
Outline OpenGL Curve Functions Fill-Area Primitives Polygon FillAreas OpenGL Polygon Fill-area Functions Pixel Array Primitives Character Primitives OpenGL functions OpenGL Display Lists 2
Chapter 4 Graphics Output Primitives(Part D) OpengL Curve Functions Fill-Area Primitives and Polygon FillAreas
Chapter 4 Graphics Output Primitives (Part II) OpenGL Curve Functions Fill-Area Primitives and Polygon FillAreas 3
OpenGL Curve Functions GLu(OpengL Utility) functions BD Quadrics(Spheres, Cylinders) Rational B-Splines(circles, ellipse, Bezier curve) (有理B樣條) gluSphere/ glu cylinder/ gluDisk NURBS(non-uniform rational B-splines) GLuT (Open gL Utility Toolkit)functions BD QuadricsSpheres, Cones etc. glutSolidSphere/glut Wire Sphere glutSolid Cone, glut SolidTorus Approximate a simple curve using a polyline o The more line sections, the smoother appearance of the curve. Write your own curve-generation algorithms Camputer Graphics with Open GL, Third Edition, by Donald Hearn and M. Pauline Baker ISBN0-13-0-15390-7o 2004 Pearson Education, Inc, Upper Saddle River, NJ. All rights reserve
OpenGL Curve Functions GLU (OpenGL Utility) functions: 3D Quadrics (Spheres,Cylinders) Rational B-Splines (circles, ellipse, Beziercurve) (有理B樣條) NURBS (non-uniform rational B-splines) GLUT (OpenGL UtilityToolkit) functions: 3D Quadrics (Spheres, Cones etc.) Approximate a simple curve using a polyline The more line sections, the smootherappearance of the curve. Write your own curve-generation algorithms (By Mark Kilgard) gluSphere/gluCylinder/gluDisk… 4 glutSolidSphere/glutWireSphere, glutSolidCone, glutSolidTorus,…
Fill-Area Primitives ●Fill( Filled)Area An area filled with some solid color or pattern To describe the surfaces of solid objects Most graphics library routines don t support arbitrary fill shapes A fill area is required to be specified as a polygon A set of polygon facets can approximate a curved surface(a polygon mesh), which can be called as SurfaceTessellation
Fill-Area Primitives Fill (Filled)Area An area filled with some solid color orpattern To describe the surfaces of solid objects Most graphics library routines don’t support arbitrary fill shapes. A fill area is required to be specified as a polygon. A set of polygon facets can approximate a curved surface (a polygon mesh),which can be called as SurfaceTessellation. 5