ScholarQuill logoScholarQuillUniversity Notes
My Semester
Explore Notes
Past Papers12 New
Video CoursesNew
Search
Settings
Study Tools
GPA/CGPA Calculator
Schedule & To-Do
Student Portal
Contact
Contact
ScholarQuill logo
My Semester
Explore Notes
Past Papers12 New
Video CoursesNew
Search
Settings
GPA/CGPA Calculator
Schedule & To-Do
Student Portal
Contact
ScholarQuill logoScholarQuillUniversity Notes
Study PortalCOMP3145Polygon Shading
Ctrl + K
Login
Explore
Search
Semester
Papers
CGPA
    COMP3145

    HCI & Computer Graphics

    Progress0 / 73 done
    Topics73
    1Input-output channels2Human memory3Thinking, Reasoning, Problem solving4Emotions and Individual differences5Psychology and design of interacting systems
    6Text entry devices7Positioning, Pointing, and drawing devices8Display devices9Devices for virtual reality and 3D interaction10Physical controls, Sensors and special devices11Paper printing and scanning12Memory, Processing and networks
    13Models of interaction14Frameworks and HCI15Ergonomics16Interaction styles17Elements of the WIMP interfaces18Interactivity and Context of interaction
    19Introduction20Paradigms for interaction
    21What is design22Process of design and User focus23Navigation design24Screen design and layout25Iteration and prototyping
    26Software life cycle27Usability engineering28Iterative design and prototyping29Design rationale30Design rules and Guidelines31Golden rules and heuristics32HCI patterns33Evaluation techniques and methods34Task analysis35Universal design36User support systems37Computer Supported Cooperative Work38Groupware systems39Implementation of synchronous groupware40Ubiquitous computing41History of Computer Graphics42Graphics architectures and software
    43Pinhole camera, Human vision, Synthetic camera44Modeling vs. rendering45OpenGL Architecture46Displaying simple two-dimensional geometric objects47Positioning systems and windowed environment48Color perception and models49RGB, CMY, HLS color models50Color transformations
    51RGB and indexed color
    52Network environment and client-server computing
    53event, sample and request input54Using callbacks and picking
    55translation, rotation, scaling, shear56Homogeneous coordinates and concatenation57Current transformation and matrix stacks
    58Classical viewing59Specifying views in 3D60Affine transformation in 3D61Projective transformations62Ray tracing
    63Illumination and surface modeling64Phong shading model65Polygon shading
    66Line drawing via Bresenham's algorithm67Clipping and polygonal fill68BitBlt operations69Hidden surface removal (z buffer)
    70Buffers71Reading and writing bitmaps and pixel maps72Texture mapping73Compositing
    2 min read
    Topic 65 of 73
    Topic Study Note Illustration
    65

    Polygon shading

    Polygon shading is a technique used to determine the color and brightness of a polygon in a 3D scene based on light interaction and surface properties .

    1. Definition

    Polygon shading is a technique used to determine the color and brightness of a polygon in a 3D scene based on light interaction and surface properties.

    • Polygons are the basic building blocks of 3D models.
    • Shading improves the visual realism of polygons by simulating light and material effects.
    • Depending on how lighting is calculated, polygon shading can be flat, Gouraud, or Phong.

    2. Types of Polygon Shading

    A. Flat Shading

    • Assigns a single color to the entire polygon based on one normal vector (usually the face normal).

    • Steps:

      1. Compute the polygon’s normal.
      2. Apply lighting model (ambient + diffuse + specular) at one point (typically the centroid).
      3. Fill the polygon with that color.
    • Pros: Simple, fast.

    • Cons: Faceted appearance, edges of polygons are visible.


    B. Gouraud Shading

    • Computes lighting at vertices and interpolates colors across the polygon.

    • Steps:

      1. Compute vertex normals (usually by averaging adjacent face normals).
      2. Apply lighting model at each vertex.
      3. Interpolate vertex colors across the polygon during rasterization.
    • Pros: Smooth shading, simple highlights on curved surfaces.

    • Cons: Can miss small specular highlights (e.g., tiny bright spots).


    C. Phong Shading

    • Interpolates normals across the polygon and computes lighting per pixel.

    • Steps:

      1. Compute vertex normals.
      2. Interpolate normals for each pixel inside the polygon.
      3. Apply Phong illumination model per pixel.
    • Pros: Realistic highlights, smooth appearance.

    • Cons: More computationally expensive than Gouraud or flat shading.


    3. Shading Pipeline for Polygons

    1. Vertex Processing: Compute vertex positions and normals.
    2. Lighting Calculation: Apply ambient, diffuse, and specular components.
    3. Interpolation: Depending on shading method, interpolate color or normals across polygon.
    4. Rasterization: Fill polygon pixels with computed colors.

    4. Summary Table

    Shading Method Normal Usage Color Computation Appearance Pros Cons
    Flat One normal per face One color per polygon Faceted Fast Looks blocky
    Gouraud Vertex normals Interpolated vertex colors Smooth Efficient Can miss specular highlights
    Phong Interpolated normals Per-pixel Very smooth, realistic Realistic highlights Computationally expensive

    Key Points:

    • Polygon shading determines how polygons appear under lighting.
    • Choice of shading affects realism, performance, and visual quality.
    • Flat → Gouraud → Phong represents increasing realism and computational cost.

    ← Previous topic 64
    Phong shading model
    Next topic 66 →
    Rasterization: Line drawing via Bresenham's algorithm

    Past Papers

    Open this section to view and download past papers

    Click on Show Past Papers to load available exam papers.

    Reading Progress
    0%
    2mremaining
    349words
    Beginnerlevel
    On This Page

    No headings found

    Study Toolkit

    Subject Portal

    HCI & Computer Graphics