cad unit 1 ppt

download cad unit 1 ppt

of 24

Transcript of cad unit 1 ppt

  • 8/11/2019 cad unit 1 ppt

    1/24

    Rajasthan Institute of EngineeringAnd Technology

    PRESENTED BY VIKRAM SINGH

    SUBMITTED TO-PROF. KUNAL SHARMAHOD(ME)

  • 8/11/2019 cad unit 1 ppt

    2/24

    Introduction:Computer-aided design (CAD) is theuse of compute systems to

    assist in the creation, modification,analysis, or optimizationof a design.

  • 8/11/2019 cad unit 1 ppt

    3/24

    (COMPUTER AIDED DESIGN)

  • 8/11/2019 cad unit 1 ppt

    4/24

    What is Computer Graphics?

    Creation, Manipulation, and Storage ofgeometric objects (modeling) and theirimages (rendering)

    Display those images on screens orhardcopy devices

    Image processing

    Others: GUI, Haptics, Displays (VR)...

  • 8/11/2019 cad unit 1 ppt

    5/24

    What drives computer graphics?

    Movie Industry

    Leaders in quality and artistry

    Not slaves to conceptual purity

    Big budgets and tight schedules

    Reminder that there is more toCG than technology

    Defines our expectations

    Slide information from Leonard McMillian's slideshttp://www.cs.unc.edu/~mcmillan/comp136/Lecture1/compgraf.html

  • 8/11/2019 cad unit 1 ppt

    6/24

    What drives computer graphics? Game Industry

    The newest driving force in CG Why? Volume and Profit

    This is why we have commodity GPUs

    Focus on interactivity

    Cost effective solutions Avoiding computating and other tricks

    Games drive the baseline

    Slide information from Leonard McMillian's slideshttp://www.cs.unc.edu/~mcmillan/comp136/Lecture1/compgraf.html

  • 8/11/2019 cad unit 1 ppt

    7/24

    Modeling

    Many model reps

    Bezier, B-spline, box splines, simplex splines,polyhedral splines, quadrics, super-quadrics,implicit, parametric, subdivision, fractal, levelsets, etc (not to mention polygonal)

  • 8/11/2019 cad unit 1 ppt

    8/24

    Image Representation

    Bitmap images (Dots used to draw theimage) Monochrome images

    8 bit grey scale images 24 bit colour Colour lookup tables

    Vector Graphics (Line art) Rasterisation

    Two key concepts Image resolution Colour resolution

  • 8/11/2019 cad unit 1 ppt

    9/24

    1 Bit Images

    Use a single bit to represent each pixel(dot on the screen)

    00101

  • 8/11/2019 cad unit 1 ppt

    10/24

    Use more bits and display as a

    grid

  • 8/11/2019 cad unit 1 ppt

    11/24

    Coordinate Systems

    The use of coordinate systemsisfundamental to computer graphics

    Coordinate systems are used todescribe the locations of points in space

    Multiple coordinate systems make

    graphics algorithms easier to understandand implement

  • 8/11/2019 cad unit 1 ppt

    12/24

    Coordinate Systems

    Different coordinate systems representthe same point in different ways

    Some operations are easier in onecoordinate system than in another

    x

    y

    (2,3)

    u

    v

    x

    y

    (1,2)

    u

    v

  • 8/11/2019 cad unit 1 ppt

    13/24

    Output graphics Display Devices

    Most CG on video monitors

    Still most popular: Cathode Ray Tube (CRT)

    Other popular display types:

    Liquid Crystal Display

    Plasma display

    Field Emission Displays Light Emitting Diodes

    3D display devices (hologram or page scan

    methods)

  • 8/11/2019 cad unit 1 ppt

    14/24

    1. cathode raysemitted by the

    electron gun

    CRT

    2. focusing anddeflection

    3. when electronbeams contact screenphosphor emits light

    4. light fades, redrawrequired in a small

    period (refresh)

  • 8/11/2019 cad unit 1 ppt

    15/24

    Flat CRT

    Electron beams are accelerated parallel tothe screen, then deflected 90to thescreen.

  • 8/11/2019 cad unit 1 ppt

    16/24

    Raster Scan Displays

    Raster: A rectangular array ofpoints or dots

    Pixel:One dot or picture element of

    the raster Scan Line:A row of pixels

  • 8/11/2019 cad unit 1 ppt

    17/24

    Raster Scan Displays

    In a raster scan system, the electronbeam is swept across the screen, onerow at a time from top to bottom.

  • 8/11/2019 cad unit 1 ppt

    18/24

    Raster Scan Displays

    As the electron beam moves acrosseach row, the beam intensity is turnedon and off to create a pattern of

    illuminated spots. Picture definition is stored in a

    memory area called the refresh

    bufferor frame buffer

  • 8/11/2019 cad unit 1 ppt

    19/24

    Raster Scan Displays

    Refresh bufferor frame buffer:This memory area holds the set ofintensity values for all the screen

    points.

    Stored intensity values thenretrieved from refresh buffer andpainted

    on the screen one row

    (scan line) at a time.

  • 8/11/2019 cad unit 1 ppt

    20/24

  • 8/11/2019 cad unit 1 ppt

    21/24

    Simple Raster Display System

    Frame buffer: stored pixel map of screen

    Video controller just refreshes the frame

    buffer on the monitor periodically.

    System Bus

    CPU

    SystemMemory

    FrameBuffer

    VideoController

    PeripheralDevices

    Monitor

  • 8/11/2019 cad unit 1 ppt

    22/24

    Digital Differential Analyzer (DDA):

    Line Drawing Algorithm

    (x0,y0)

    (x1,y1)

    dx

    dy

    Walk through the line, starting at (x0,y0)Constrain x, y increments to values in [0,1] rangeCase a: x is incrementing faster (m < 1)

    Step in x=1 increments, compute and round yCase b: y is incrementing faster (m > 1)

    Step in y=1 increments, compute and round x

  • 8/11/2019 cad unit 1 ppt

    23/24

    Bresenhams Line-Drawing Algorithm

    Problem: Given endpoints (Ax, Ay) and (Bx,By) of a line, want to determine bestsequence of intervening pixels

    First make two simplifying assumptions(remove later):

    (Ax < Bx) and

    (0 < m < 1)

    Define Width W = BxAx

    Height H = By - Ay

  • 8/11/2019 cad unit 1 ppt

    24/24