Computer Graphics Notes
Computer Graphics Notes: Comprehensive Guide
Module - I: Overview of Computer Graphics Systems
- General Definition: Computer graphics encompasses computer image fusion theory and technology, producing images quickly and economically. It includes rendering photos, sketches, animations, or representations of unseen objects (e.g., internal body parts).
- Key Components:
- Video Display Devices: Types of display technologies like CRTs, LCDs, LEDs.
- Display Systems:
- Raster Scan Systems: The electron beam sweeps in horizontal lines.
- Random Scan Systems: Electron beam directed as needed.
- Graphics Monitors and Workstations: Devices specifically built for graphical computing.
- Input Devices: Tools for interaction with graphical systems (e.g., mouse, keyboard).
- Hardcopy Devices: Printers and plotters used to produce physical copies of graphical outputs.
- Graphics Software: Applications that enable the creation and manipulation of graphics.
Computer Graphics Definitions
- Computer Graphics: Technology for designing and representing visual data on monitors.
- Key Types:
- Interactive Computer Graphics: User-controlled, enabling real-time modifications.
- Examples: Video games, drawing applications.
- Non-interactive Computer Graphics: Program-controlled outputs without user manipulation.
- Examples: Screen savers, static images in PDFs.
- Graphic Representation Types:
- Raster Graphics:
- Composed of pixels (bitmap format). Requires high resolution for clarity.
- Example Tools: Adobe Photoshop
- Vector Graphics:
- Utilizes mathematical formulas for curves and lines. Resizes without losing quality.
- Example Tools: Corel Draw, CAD software.
Raster Graphics vs. Vector Graphics
- Raster Graphics:
- Definition: Composed of pixels, requires high resolution.
- File Extensions: .BMP, .TIF, .JPG.
- Vector Graphics:
- Definition: Composed of paths described mathematically.
- File Extensions: .SVG, .PDF, .AI.
Video Display Devices
- Cathode Ray Tube (CRT): Traditional monitor technology utilizing a vacuum tube.
- Components:
- Electron Gun: Generates electron beams.
- Anodes: Focus and accelerate the beam.
- Deflection Plates: Guide the beam's path.
- Phosphorous Coating: Illuminates upon interaction with the electron beam.
- Modern Display Types:
- LCDs: Uses liquid crystals to display information, energy-efficient.
- LEDs: Semiconductor devices emitting light when current passes through.
- Advantages: Adjustable brightness, durability, low operational voltage.
Input Devices
- Categories:
- Keyboard: Common input device with variations in layout.
- Mouse: Controls cursor movement with buttons for commands.
- Joystick: Input for control in gaming and design applications.
- Light Pen: Used to select items or draw on screen directly.
- Track Ball: Alternative to mouse, stationary with ball manipulation.
- Scanner & Digitizer: Converts images & graphics into digital form.
Output Devices
- Defining Output Devices: Hardware components delivering results from computer processing.[Ex: Printers, Monitors, Projectors].
- Types:
- Impact Printers: Produce images through direct contact with ink ribbons.
- Non-impact Printers: Print without physical contact, faster, higher quality.
- Examples: Laser, Inkjet Printers.
- Advantages: Less noise, high speed.
Output Primitives
- Definitions:
- Points and Lines: Fundamental elements for graphics representation.
- Line Drawing Algorithms: Techniques such as DDA and Bresenham's for discrete representation.
Line Drawing Algorithm Examples
- Digital Differential Analyzer (DDA) Algorithm
- Uses incremental calculation to generate lines, considers slope cases for rendering.
- Bresenham’s Line Drawing Algorithm
- Utilizes only integer calculations to determine pixel locations for line segments.
2D Geometric Transformations
- Purpose: Alter graphical object representations via translation, scaling, rotation, and shearing.
- Matrices: Employ 3x3 matrices for composite transformations involving scaling and rotation, enhancing computational efficiency.
- Key Transformations:
- Translation:
- Formula:
- Rotation:
- Formula: egin{bmatrix}x'\y'\end{bmatrix} = egin{bmatrix} ext{cos}( heta) & - ext{sin}( heta)\ ext{sin}( heta) & ext{cos}( heta)\end{bmatrix} egin{bmatrix}x\y\\end{bmatrix}
- Scaling:
- Formula:
- Reflection and Shearing: Involve transformations across axis or lines to deform shapes.
3D Geometric Transformations
- Key Operations: Include all 2D transformations plus manipulation of the Z-axis.
- Matrix Construction: Similar to 2D but incorporates 3D factors.
3D Transformation Formulas
- Translation:
- Scaling:
- Rotation: Similar to 2D with additional matrix representation for the Z-axis.
Visible Surface Detection Methods
- Overview: Algorithms designed to identify visible parts of scenes and eliminate hidden surfaces.
- Classification:
- Object-Space Methods: Analysis on object surfaces and sorting.
- Image-Space Methods: Pixel range comparisons, evaluating depth.
- Z-Buffer Method: Depth comparisons to ascertain the correct rendering order.
Applications of Computer Graphics
- Common Areas of Use:
- Education & Training (e.g., Flight Simulators)
- Medical Imaging
- CAD
- Entertainment (Movies, Video Games)
- Software Tools: Examples include Adobe Photoshop, Corel Draw, AutoCAD, etc.
Conclusion: Significance of Computer Graphics
- Computer graphics plays a crucial role in various sectors, enhancing visualization and usability in digital environments from entertainment to scientific research.