Docsity

computer graphics ppt, Summaries of Computer Science

Partial preview of the text

Download computer graphics ppt and more Summaries Computer Science in PDF only on Docsity!

Computer graphics

 (^) field of computer science and art that deals with generating, processing, and displaying images and visual content using computers.

Visual representation of Different types

of CG

Real time graphics(real time

rendering)

 (^) process where a computer creates and updates 2D or 3D images so fast (usually 30 to 60 frames per second or more) that the user sees changes immediately.  (^) Instead of waiting hours for a scene to process like in movies, the system draws each frame in milliseconds as you move or interact

TYPES OF COMPUTER GRAPHICS

  • Raster Graphics: Images made of a grid of tiny dots called pixels. Examples include photos and bitmap files like JPEGs.
  • Vector Graphics: Shapes and lines created using math formulas. They can scale to any size without losing quality.
  • 3D Graphics: Objects and scenes that have height, width, and depth. They use geometry to look realistic.
  • Real-Time Graphics: Visuals rendered instantly as a user interacts with them, common in video games.

Computer Display

An electronic visual output / visual data representation that uses a grid of pixels to show images, text, charts, or user interfaces, rather than simple pre-defined alphanumeric characters.

Different types of Computer display

A Cathode Ray Tube (CRT) in computer graphics is a specialized vacuum tube display device that generates images by firing an electron beam onto a phosphor- coated screen. It include electron gun , deflection system , and phosphor screen.

Core Components

  • Electron Gun: Creates a stream of electrons using

heated cathodes and control grids.

  • Focusing and Accelerating Anodes: Shapes and

speeds up the electron beam so it hits the screen

sharply.

  • Deflection Yoke: Uses magnetic or electric fields

to steer the beam horizontally and vertically.

  • Phosphor Screen: Glows and emits light (red, green,

blue) when struck by high-speed electrons.

SCAN CONVERSION

 (^) Direct Method  (^) In this algorithm, we have two endpoints.  (^) We find the slope of the line by using both the points, and we put the slope in the line equation y = mx + b.  (^) Then we find the value of b by putting x and y equal to 0.  (^) After this, we have a relation between x and y.  (^) Now we increase the value of x and find the corresponding value of y. These values will be the intermediate points of the line.  (^) After finding the intermediate points, we’ll plot those points and draw the line. Scan Conversion (also called Rasterization ) is the process of converting the mathematical description of graphical objects (such as points, lines, circles, and polygons) into a set of pixels on a raster display (screen).

Polygon in Computer Graphics

 A polygon is a closed 2D shape made up of three or more straight line segments.  Note:- The line segments are called edges, and their endpoints are called vertices.  Examples  Triangle →3 vertices  Quadrilateral →4 vertices  Pentagon → 5 vertices  Hexagon →6 vertices

A

/ \

/ \

B-----C

 (^) Here:  (^) A, B, C are vertices.  (^) AB, BC, CA are edges.  (^) The enclosed area is the polygon.

Properties of Polygon

Polygon Filling Algorithm

 (^) Process to identify and colour pixels residing along a closed geometric shapes.  (^) There are two primary categories of polygon filling algorithms: scan-line techniques (use the geometry of the polygon) and seed-fill techniques.