Docstoc

Introduction

Document Sample
Introduction Powered By Docstoc
					COMP 175 | COMPUTER GRAPHICS




Lecture 01:
Introduction

COMP 175: Computer Graphics
September 6, 2011
Remco Chang   01 - Introduction   1/22
COMP 175 | COMPUTER GRAPHICS


People

                                  Instructor:
                                  Remco Chang
                                  remco@cs.tufts.edu

                                  Office: Halligan E009
                                  Hours: Thu 1:15-
                                  2:30pm

                                  TA:
                                  Jordan Crouser
                                  rcrous01@cs.tufts.edu

                                  Office: ??
                                  Hours: Fri 12-1:15pm


Remco Chang   01 - Introduction                           2/22
COMP 175 | COMPUTER GRAPHICS


Clarification!

•   Meeting Time:
    •    Tuesday, Thursday from 12-1:15pm
    •    F+ Block


•   Friday!!
    •    Run by Jordan
    •    Friday 12-1:15pm
    •    In the Windows Lab (Room 122)




Remco Chang    01 - Introduction            3/22
COMP 175 | COMPUTER GRAPHICS


Clarification!

•   Prerequisites
    •    COMP 40
        •     Machine Structure and Assembly-Language Programming
        •     Implies: COMP 15 (Data Structures)
        •     Implies: proficiency with C++ and memory management

    •    Linear Algebra
        •     Vector and Matrix math




Remco Chang       01 - Introduction                                 4/22
COMP 175 | COMPUTER GRAPHICS


Clarification


•       Questions?
    •    Conflicts with schedule?
    •    Don’t have the prereqs?


•       Schedule a time and come talk to me…




Remco Chang     01 - Introduction              5/22
COMP 175 | COMPUTER GRAPHICS


What is Computer Graphics?
   William Fetter coined term “computer graphics” in
    1960 to describe new design methods he was pursuing
    at Boeing

   Created a series of widely reproduced images on pen
    plotter exploring cockpit design, using 3D model of
    human body.
                            “Perhaps the best way to define computer graphics is to find out what it
                            is not. It is not a machine. It is not a computer, nor a group of computer
                            programs. It is not the know-how of a graphic designer, a programmer,
                            a writer, a motion picture specialist, or a reproduction specialist.
                            Computer graphics is all these – a consciously managed and
                            documented technology directed toward communicating information
                            accurately and descriptively.”
                            Computer Graphics, by William A. Fetter, 1966




Remco Chang      01 - Introduction                                                              6/22
COMP 175 | COMPUTER GRAPHICS


What is Interactive Computer Graphics? (1/2)
   User controls contents, structure, and
    appearance of objects and their displayed
    images via rapid visual feedback
   Basic components of an interactive graphics
    system
       input (e.g., mouse, tablet and stylus, multi-
        touch…)
       processing (and storage)
       display/output (e.g., screen, paper-based printer,
        video recorder…)

   First truly interactive graphics system,
    Sketchpad, pioneered at MIT by Ivan
    Sutherland for his 1963 Ph.D. thesis
                                                             Note CRT monitor, light pen
   Used TX-2 transistorized “mainframe” at                  and function-key panel
    Lincoln Lab
Remco Chang           01 - Introduction                                            7/22
COMP 175 | COMPUTER GRAPHICS


DEMO: SketchPad




   http://youtu.be/J6UAYZxFwLc




Remco Chang   01 - Introduction   8/22
    COMP 175 | COMPUTER GRAPHICS


    What is Interactive Computer Graphics? (2/2)
    Almost all key elements of interactive graphics system are expressed in first paragraph
     of Sutherland’s 1963 Ph.D. thesis, Sketchpad, A Man-Machine Graphical Communication
     System:

          The Sketchpad system uses drawing as a novel communication
          medium for a computer. The system contains input, output, and
          computation programs which enable it to interpret information
          drawn directly on a computer display. Sketchpad has shown the most
          usefulness as an aid to the understanding of processes, such as the
          motion of linkages, which can be described with pictures. Sketchpad
          also makes it easy to draw highly repetitive or highly accurate
          drawings and to change drawings previously drawn with it…


    Today, we still use non-interactive batch mode for
    final production-quality video and film (special
    effects – FX), where one frame of a 24 fps movie may
    take 8-24 hours to render on fastest PC!
                                                                           Render farm

    Remco Chang        01 - Introduction                                                       9/22
COMP 175 | COMPUTER GRAPHICS


This Course

   What you should get out of taking this course:

       A firm understanding of the fundamentals of computer
        graphics

       The ability to work out equations/algorithms on paper,
        and implement them in code

       Confidence to be able to build your own graphics
        systems!



Remco Chang      01 - Introduction                           10/22
COMP 175 | COMPUTER GRAPHICS


A Little History…

   Course is based on Brown University’s CS123 by
    Andy van Dam




Remco Chang   01 - Introduction                      11/22
COMP 175 | COMPUTER GRAPHICS


A Little History…

   Course is based on Brown University’s CS123 by
    Andy van Dam




Remco Chang   01 - Introduction                      12/22
COMP 175 | COMPUTER GRAPHICS


General Information
   Course website:
       http://www.cs.tufts.edu/comp/175


   Syllabus
   Support Code
       Qt (C++)
   Textbooks
       Free book vs. original text
   Homework
   Grading
   Accommodation

Remco Chang        01 - Introduction       13/22
COMP 175 | COMPUTER GRAPHICS


Grading

   1. Brush                      16%
   2. Shapes                     16%
   3. Camera                     16%
   4. SceneView                  16%
   5. Modeler                    16%
   6. Ray Tracer                 20%
   Total                         100%



Remco Chang   01 - Introduction          14/22
COMP 175 | COMPUTER GRAPHICS


Late Policy
   Assignments that are turned in late will receive a 0.
   However, you are allowed two "extensions" for the semester.
       Each time you use an extension, you will be granted an extra 3 days.
       The extensions cannot be stacked (meaning that you cannot use two
        extensions for the same assignment).
   The rationales for the late policy are that
       (1) the assignments are built on top of each other (e.g. you cannot
        complete assignment 5 without completing assignment 4). Because of
        this, you must turn in your assignment before the solutions are given out.
       (2) All the assignments are due at 11:59pm on Monday (the night before
        the Tuesday lecture), and the solutions are handed out on Friday of the
        same week during the Lab. Even with an extension, if your assignment is
        not turned in before the lab, you will receive a 0 for the assignment.
   If you have an extraordinary circumstance, you must contact the
    instructor or the TA as soon as possible and obtain written
    approval.

Remco Chang        01 - Introduction                                           15/22
COMP 175 | COMPUTER GRAPHICS


Outside Help

   Collaboration
       Collaboration is encouraged, but you must turn in your
        own work!
       If you need help, talk to the TA or myself


   Online Resources
       There are lots of resources online
       Use them for understanding, but again, you must turn in
        your own work!



Remco Chang      01 - Introduction                           16/22
COMP 175 | COMPUTER GRAPHICS


Assignment 1: Brush

   Manipulation of 2D images
    as pixels

   Create airbrushes using
    masks

   Familiarity with colors,
    blending, and 2D array of
    data

   Event-driven programming
Remco Chang   01 - Introduction   17/22
COMP 175 | COMPUTER GRAPHICS


Assignment 2: Shapes
   Creating 3-dimensional
    objects using triangles

   Write code to break up
    common geometric shapes
    into triangles (tessellation)

   Rectangles, spheres,
    cylinders, and cones

   Data structure of points,
    lines, polygons, shapes
Remco Chang   01 - Introduction     18/22
COMP 175 | COMPUTER GRAPHICS


Assignment 3: Camera
   Write a (software) perspective
    camera

   Maintain transform matrices,
    from world to screen and
    inversely from screen to world

   Implement pan, zoom, rotate,
    etc. for the camera

   Become comfortable with
    matrix manipulation

Remco Chang   01 - Introduction      19/22
COMP 175 | COMPUTER GRAPHICS


Assignment 4: SceneView
   Maintain and render a
    hierarchical scene

   Uses the primitives created in
    Shapes, and the view
    transform from Camera

   Apply hierarchical transform of
    rotation, translation, and
    scaling to render a 3D scene

   Management of hierarchical
    data structure
Remco Chang   01 - Introduction       20/22
COMP 175 | COMPUTER GRAPHICS


Assignment 5: Modeler / Intersect
   Cast rays to intersect with a
    3D scene

   Add user interactivity to
    move the objects using a
    mouse

   Output 3D scene files

   Become comfortable with
    going from 2D to 3D and 3D
    to 2D
Remco Chang   01 - Introduction     21/22
COMP 175 | COMPUTER GRAPHICS


Assignment 6: Recursive Ray Tracer

   Using rays from Modeler,
    recursively bounce to rays to
    create a fully ray-traced 3D
    scene

   Implement Phong Shading

   Implement texture-mapping

   Highly parallel, recursive
    algorithm
Remco Chang   01 - Introduction      22/22
COMP 175 | COMPUTER GRAPHICS




                                  Questions?




Remco Chang   01 - Introduction                23/22

				
DOCUMENT INFO
Shared By:
Categories:
Tags:
Stats:
views:19
posted:5/15/2012
language:
pages:23