SlideShare uma empresa Scribd logo
1 de 18
Shri Vaishnav Institute
Of Management
Presentation On Computer
Graphics
Applications
Of Computer
Graphics
Frame
Buffer
Line
Algorithm
Computer Aided Design
Computer Aided Design(CAD) is the Use of Computer
System to Assist in the Creation , Modification , Analysis or
Optimization of Design.
Visualization
Visualization is any Technique For Creating Images , Diagrams
or Animations
To Communicate A Message.
Animation
Animation is the Process Of Creating a Continuous Motion
& Shape Change illusion by means of rapid display of a
Sequence of static Images that Minimally differ from each
other.
Computer Games
Computer Games are Video Games played on a
General Purpose Personal Computer
Frame Buffer
A Frame Buffer is a Large , Contiguous Piece of Computer
Memory(RAM) that stores Picture Definition. This Memory Area Holds
the Set of intensity values for all the Screen points and then retrieved
from the frame buffer and painted on the Screen One Row(Scan Line)
at a time. Each screen point is referred to as a Pixel or pel or Picture
Element.
LINE DRAWING ALGORITHM
Line Drawing Algorithm
There are two basic line drawing algorithm…..
DDA Line Drawing Algorithm
Bresenham’s Line Drawing Algorithm
DDA Line Drawing Algorithm
Programmer Specifies
(x,y) values of end pixels
Need Algorithm to find
out which intermediate
pixels are on line path
Pixel (x,y) constrained to
integer values
Actual Computed
intermediate line values
may be floats
Rounding May
Be Required
0 1 2 3 4 5 6 7 8 9 10 11 12
8
7
6
5
4
3
2
1
(3,2)
(9,6)
DDA Line Drawing Algorithm
DDA Line Drawing Algorithm
DDA stands for “Digital-Differential Analyzer”.
It’s a “Scan-Conversion” line drawing algorithm.
It’s mainly based on calculating either Δx (dx)
or Δy (dy)…
DDA Line Drawing Algorithm
Slope – Intercept Line Equation
y = m . x + b
Given Two End Points (x0,y0) and (x1,y1).
How To Compute m and b ?
(x0,y0)
(x1,y1)
dx
dy
m = dy / dx = (y1 – y0) / (x1 – x0)
b = y0 – m * x0
Δy = m * Δx
Δx = Δy/m
DDA Line Drawing Algorithm
If a line with positive slope (+m) or it’s less than and
equal to 1(m<=1), then we set ‘x’ at unit interval(Δx=1)
And compute each successive ‘y’ value by using following
Formula:-
yk+1 = yk + m
Where subscript ‘k’ takes integer values starting from 1,
For the first point, and increases by 1 until the final end
point is reached..
Left to right
DDA Line Drawing Algorithm
If a line with positive slope (+m) or it’s greater than
1(m>1), then we reverse the rule of ‘x’ and ‘y’, that is set ‘y’
at unit interval(Δy=1) and compute each successive ‘x’ value
by using following Formula:-
xk+1 = xk + 1/m
Where subscript ‘k’ takes integer values starting from 1,
For the first point, and increases by 1 until the final end
point is reached..
Left to right
REFRANCE
 BOOK REFRANCE
 “Computer Graphics C Version” by “Donald Hearn And M. Pauline
Baker”.
Presentation Powered By :
Ashish Sharma
Lokendra Prajapati

Mais conteúdo relacionado

Mais procurados

Visible surface detection in computer graphic
Visible surface detection in computer graphicVisible surface detection in computer graphic
Visible surface detection in computer graphic
anku2266
 
Introduction to computer graphics
Introduction to computer graphics Introduction to computer graphics
Introduction to computer graphics
Priyodarshini Dhar
 
Video display devices
Video display devicesVideo display devices
Video display devices
Mohd Arif
 

Mais procurados (20)

Output primitives in Computer Graphics
Output primitives in Computer GraphicsOutput primitives in Computer Graphics
Output primitives in Computer Graphics
 
Monitors & workstation,Donald ch-2
Monitors & workstation,Donald ch-2Monitors & workstation,Donald ch-2
Monitors & workstation,Donald ch-2
 
Anti- aliasing computer graphics
Anti- aliasing computer graphicsAnti- aliasing computer graphics
Anti- aliasing computer graphics
 
Visible surface detection in computer graphic
Visible surface detection in computer graphicVisible surface detection in computer graphic
Visible surface detection in computer graphic
 
Line clipping
Line clippingLine clipping
Line clipping
 
CRT (Cathode ray tube)
CRT (Cathode ray tube)CRT (Cathode ray tube)
CRT (Cathode ray tube)
 
Computer graphics basic transformation
Computer graphics basic transformationComputer graphics basic transformation
Computer graphics basic transformation
 
Introduction to computer graphics
Introduction to computer graphics Introduction to computer graphics
Introduction to computer graphics
 
Random scan displays and raster scan displays
Random scan displays and raster scan displaysRandom scan displays and raster scan displays
Random scan displays and raster scan displays
 
multimedia image.ppt
multimedia image.pptmultimedia image.ppt
multimedia image.ppt
 
Applications Of Computer Graphics
Applications Of Computer GraphicsApplications Of Computer Graphics
Applications Of Computer Graphics
 
Attributes of Output Primitives
Attributes of Output PrimitivesAttributes of Output Primitives
Attributes of Output Primitives
 
Anti aliasing Computer Graphics
Anti aliasing Computer GraphicsAnti aliasing Computer Graphics
Anti aliasing Computer Graphics
 
Video display devices
Video display devicesVideo display devices
Video display devices
 
Attributes of output Primitive
Attributes of output Primitive Attributes of output Primitive
Attributes of output Primitive
 
Computer Graphics
Computer GraphicsComputer Graphics
Computer Graphics
 
unit-1-intro
 unit-1-intro unit-1-intro
unit-1-intro
 
Raster Scan Graphics, Line Drawing Algorithm and Circle Drawing Algorithm
Raster Scan Graphics, Line Drawing Algorithm and Circle Drawing Algorithm Raster Scan Graphics, Line Drawing Algorithm and Circle Drawing Algorithm
Raster Scan Graphics, Line Drawing Algorithm and Circle Drawing Algorithm
 
Line Drawing Algorithms - Computer Graphics - Notes
Line Drawing Algorithms - Computer Graphics - NotesLine Drawing Algorithms - Computer Graphics - Notes
Line Drawing Algorithms - Computer Graphics - Notes
 
Computer Graphics - clipping
Computer Graphics - clippingComputer Graphics - clipping
Computer Graphics - clipping
 

Destaque

Mid point progression: Part 2
Mid point progression: Part 2Mid point progression: Part 2
Mid point progression: Part 2
cforindliv
 
Motion blur tutorial
Motion blur tutorialMotion blur tutorial
Motion blur tutorial
geekerridge
 
Graphics Output Hardware Devices
Graphics Output Hardware DevicesGraphics Output Hardware Devices
Graphics Output Hardware Devices
Tabeer12
 
Midpoint circle algo
Midpoint circle algoMidpoint circle algo
Midpoint circle algo
Mohd Arif
 
Chapter 5 balance
Chapter 5 balanceChapter 5 balance
Chapter 5 balance
Tracie King
 

Destaque (20)

Mid point progression: Part 2
Mid point progression: Part 2Mid point progression: Part 2
Mid point progression: Part 2
 
American History 2 mid term review
American History 2 mid term reviewAmerican History 2 mid term review
American History 2 mid term review
 
Applications of computer graphics
Applications of computer graphicsApplications of computer graphics
Applications of computer graphics
 
dda algorithm
dda  algorithmdda  algorithm
dda algorithm
 
Cg lab cse-v (1) (1)
Cg lab cse-v (1) (1)Cg lab cse-v (1) (1)
Cg lab cse-v (1) (1)
 
Color and space
Color and spaceColor and space
Color and space
 
Showcase computer graphics 2012
Showcase computer graphics 2012Showcase computer graphics 2012
Showcase computer graphics 2012
 
Motion blur tutorial
Motion blur tutorialMotion blur tutorial
Motion blur tutorial
 
09_motionblur
09_motionblur09_motionblur
09_motionblur
 
Computer Graphics
Computer GraphicsComputer Graphics
Computer Graphics
 
Mid point line Algorithm - Computer Graphics
Mid point line Algorithm - Computer GraphicsMid point line Algorithm - Computer Graphics
Mid point line Algorithm - Computer Graphics
 
Graphics Output Hardware Devices
Graphics Output Hardware DevicesGraphics Output Hardware Devices
Graphics Output Hardware Devices
 
Phong Shading over any Polygonal Surface
Phong Shading over any Polygonal Surface Phong Shading over any Polygonal Surface
Phong Shading over any Polygonal Surface
 
3D Movie Presentation
3D Movie Presentation3D Movie Presentation
3D Movie Presentation
 
COMPUTER APPLICATIONS IN EDUCATION,GRAPHICS & MULTIMEDIA
COMPUTER APPLICATIONS IN EDUCATION,GRAPHICS & MULTIMEDIACOMPUTER APPLICATIONS IN EDUCATION,GRAPHICS & MULTIMEDIA
COMPUTER APPLICATIONS IN EDUCATION,GRAPHICS & MULTIMEDIA
 
Midpoint circle algo
Midpoint circle algoMidpoint circle algo
Midpoint circle algo
 
Visual effects
Visual effectsVisual effects
Visual effects
 
Chapter 5 balance
Chapter 5 balanceChapter 5 balance
Chapter 5 balance
 
Computer Graphics - Bresenham's line drawing algorithm & Mid Point Circle alg...
Computer Graphics - Bresenham's line drawing algorithm & Mid Point Circle alg...Computer Graphics - Bresenham's line drawing algorithm & Mid Point Circle alg...
Computer Graphics - Bresenham's line drawing algorithm & Mid Point Circle alg...
 
FACE RECOGNITION ACROSS NON-UNIFORM MOTION BLUR
FACE RECOGNITION ACROSS  NON-UNIFORM MOTION BLUR FACE RECOGNITION ACROSS  NON-UNIFORM MOTION BLUR
FACE RECOGNITION ACROSS NON-UNIFORM MOTION BLUR
 

Semelhante a Computer graphics presentation

Bresenham circlesandpolygons
Bresenham circlesandpolygonsBresenham circlesandpolygons
Bresenham circlesandpolygons
aa11bb11
 
Open GL T0074 56 sm1
Open GL T0074 56 sm1Open GL T0074 56 sm1
Open GL T0074 56 sm1
Roziq Bahtiar
 

Semelhante a Computer graphics presentation (20)

Computer graphics lab manual
Computer graphics lab manualComputer graphics lab manual
Computer graphics lab manual
 
raster algorithm.pdf
raster algorithm.pdfraster algorithm.pdf
raster algorithm.pdf
 
03.Scan Conversion.ppt
03.Scan Conversion.ppt03.Scan Conversion.ppt
03.Scan Conversion.ppt
 
computer graphics-C/C++-dancingdollcode
computer graphics-C/C++-dancingdollcodecomputer graphics-C/C++-dancingdollcode
computer graphics-C/C++-dancingdollcode
 
Computer Graphics Notes 2.pdf
Computer Graphics Notes 2.pdfComputer Graphics Notes 2.pdf
Computer Graphics Notes 2.pdf
 
Bresenham circlesandpolygons
Bresenham circlesandpolygonsBresenham circlesandpolygons
Bresenham circlesandpolygons
 
Bresenham circles and polygons derication
Bresenham circles and polygons dericationBresenham circles and polygons derication
Bresenham circles and polygons derication
 
Computer graphics notes watermark
Computer graphics notes watermarkComputer graphics notes watermark
Computer graphics notes watermark
 
elementry-objects-CG give great effort on learning for exam
elementry-objects-CG give great effort on learning for examelementry-objects-CG give great effort on learning for exam
elementry-objects-CG give great effort on learning for exam
 
Computer graphics notes 2 tutorials duniya
Computer graphics notes 2   tutorials duniyaComputer graphics notes 2   tutorials duniya
Computer graphics notes 2 tutorials duniya
 
4 CG_U1_M3_PPT_4 DDA.pptx
4 CG_U1_M3_PPT_4 DDA.pptx4 CG_U1_M3_PPT_4 DDA.pptx
4 CG_U1_M3_PPT_4 DDA.pptx
 
Computer graphics
Computer graphicsComputer graphics
Computer graphics
 
Computer graphics notes
Computer graphics notesComputer graphics notes
Computer graphics notes
 
Bresenham algorithm
Bresenham algorithmBresenham algorithm
Bresenham algorithm
 
Open GL T0074 56 sm1
Open GL T0074 56 sm1Open GL T0074 56 sm1
Open GL T0074 56 sm1
 
99995320.ppt
99995320.ppt99995320.ppt
99995320.ppt
 
DDA algorithm
DDA algorithmDDA algorithm
DDA algorithm
 
Lab lecture 1 line_algo
Lab lecture 1 line_algoLab lecture 1 line_algo
Lab lecture 1 line_algo
 
Unit-2 raster scan graphics,line,circle and polygon algorithms
Unit-2 raster scan graphics,line,circle and polygon algorithmsUnit-2 raster scan graphics,line,circle and polygon algorithms
Unit-2 raster scan graphics,line,circle and polygon algorithms
 
Lecture _Line Scan Conversion.ppt
Lecture _Line Scan Conversion.pptLecture _Line Scan Conversion.ppt
Lecture _Line Scan Conversion.ppt
 

Último

Labelling Requirements and Label Claims for Dietary Supplements and Recommend...
Labelling Requirements and Label Claims for Dietary Supplements and Recommend...Labelling Requirements and Label Claims for Dietary Supplements and Recommend...
Labelling Requirements and Label Claims for Dietary Supplements and Recommend...
Lokesh Kothari
 
SCIENCE-4-QUARTER4-WEEK-4-PPT-1 (1).pptx
SCIENCE-4-QUARTER4-WEEK-4-PPT-1 (1).pptxSCIENCE-4-QUARTER4-WEEK-4-PPT-1 (1).pptx
SCIENCE-4-QUARTER4-WEEK-4-PPT-1 (1).pptx
RizalinePalanog2
 
Seismic Method Estimate velocity from seismic data.pptx
Seismic Method Estimate velocity from seismic  data.pptxSeismic Method Estimate velocity from seismic  data.pptx
Seismic Method Estimate velocity from seismic data.pptx
AlMamun560346
 
Discovery of an Accretion Streamer and a Slow Wide-angle Outflow around FUOri...
Discovery of an Accretion Streamer and a Slow Wide-angle Outflow around FUOri...Discovery of an Accretion Streamer and a Slow Wide-angle Outflow around FUOri...
Discovery of an Accretion Streamer and a Slow Wide-angle Outflow around FUOri...
Sérgio Sacani
 
Pests of cotton_Sucking_Pests_Dr.UPR.pdf
Pests of cotton_Sucking_Pests_Dr.UPR.pdfPests of cotton_Sucking_Pests_Dr.UPR.pdf
Pests of cotton_Sucking_Pests_Dr.UPR.pdf
PirithiRaju
 
Pests of cotton_Borer_Pests_Binomics_Dr.UPR.pdf
Pests of cotton_Borer_Pests_Binomics_Dr.UPR.pdfPests of cotton_Borer_Pests_Binomics_Dr.UPR.pdf
Pests of cotton_Borer_Pests_Binomics_Dr.UPR.pdf
PirithiRaju
 
Formation of low mass protostars and their circumstellar disks
Formation of low mass protostars and their circumstellar disksFormation of low mass protostars and their circumstellar disks
Formation of low mass protostars and their circumstellar disks
Sérgio Sacani
 
Chemical Tests; flame test, positive and negative ions test Edexcel Internati...
Chemical Tests; flame test, positive and negative ions test Edexcel Internati...Chemical Tests; flame test, positive and negative ions test Edexcel Internati...
Chemical Tests; flame test, positive and negative ions test Edexcel Internati...
ssuser79fe74
 

Último (20)

Feature-aligned N-BEATS with Sinkhorn divergence (ICLR '24)
Feature-aligned N-BEATS with Sinkhorn divergence (ICLR '24)Feature-aligned N-BEATS with Sinkhorn divergence (ICLR '24)
Feature-aligned N-BEATS with Sinkhorn divergence (ICLR '24)
 
Labelling Requirements and Label Claims for Dietary Supplements and Recommend...
Labelling Requirements and Label Claims for Dietary Supplements and Recommend...Labelling Requirements and Label Claims for Dietary Supplements and Recommend...
Labelling Requirements and Label Claims for Dietary Supplements and Recommend...
 
Nanoparticles synthesis and characterization​ ​
Nanoparticles synthesis and characterization​  ​Nanoparticles synthesis and characterization​  ​
Nanoparticles synthesis and characterization​ ​
 
SCIENCE-4-QUARTER4-WEEK-4-PPT-1 (1).pptx
SCIENCE-4-QUARTER4-WEEK-4-PPT-1 (1).pptxSCIENCE-4-QUARTER4-WEEK-4-PPT-1 (1).pptx
SCIENCE-4-QUARTER4-WEEK-4-PPT-1 (1).pptx
 
Seismic Method Estimate velocity from seismic data.pptx
Seismic Method Estimate velocity from seismic  data.pptxSeismic Method Estimate velocity from seismic  data.pptx
Seismic Method Estimate velocity from seismic data.pptx
 
Discovery of an Accretion Streamer and a Slow Wide-angle Outflow around FUOri...
Discovery of an Accretion Streamer and a Slow Wide-angle Outflow around FUOri...Discovery of an Accretion Streamer and a Slow Wide-angle Outflow around FUOri...
Discovery of an Accretion Streamer and a Slow Wide-angle Outflow around FUOri...
 
Pests of cotton_Sucking_Pests_Dr.UPR.pdf
Pests of cotton_Sucking_Pests_Dr.UPR.pdfPests of cotton_Sucking_Pests_Dr.UPR.pdf
Pests of cotton_Sucking_Pests_Dr.UPR.pdf
 
Pests of cotton_Borer_Pests_Binomics_Dr.UPR.pdf
Pests of cotton_Borer_Pests_Binomics_Dr.UPR.pdfPests of cotton_Borer_Pests_Binomics_Dr.UPR.pdf
Pests of cotton_Borer_Pests_Binomics_Dr.UPR.pdf
 
Zoology 4th semester series (krishna).pdf
Zoology 4th semester series (krishna).pdfZoology 4th semester series (krishna).pdf
Zoology 4th semester series (krishna).pdf
 
TEST BANK For Radiologic Science for Technologists, 12th Edition by Stewart C...
TEST BANK For Radiologic Science for Technologists, 12th Edition by Stewart C...TEST BANK For Radiologic Science for Technologists, 12th Edition by Stewart C...
TEST BANK For Radiologic Science for Technologists, 12th Edition by Stewart C...
 
Call Girls Alandi Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Alandi Call Me 7737669865 Budget Friendly No Advance BookingCall Girls Alandi Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Alandi Call Me 7737669865 Budget Friendly No Advance Booking
 
COST ESTIMATION FOR A RESEARCH PROJECT.pptx
COST ESTIMATION FOR A RESEARCH PROJECT.pptxCOST ESTIMATION FOR A RESEARCH PROJECT.pptx
COST ESTIMATION FOR A RESEARCH PROJECT.pptx
 
9654467111 Call Girls In Raj Nagar Delhi Short 1500 Night 6000
9654467111 Call Girls In Raj Nagar Delhi Short 1500 Night 60009654467111 Call Girls In Raj Nagar Delhi Short 1500 Night 6000
9654467111 Call Girls In Raj Nagar Delhi Short 1500 Night 6000
 
Connaught Place, Delhi Call girls :8448380779 Model Escorts | 100% verified
Connaught Place, Delhi Call girls :8448380779 Model Escorts | 100% verifiedConnaught Place, Delhi Call girls :8448380779 Model Escorts | 100% verified
Connaught Place, Delhi Call girls :8448380779 Model Escorts | 100% verified
 
Botany 4th semester series (krishna).pdf
Botany 4th semester series (krishna).pdfBotany 4th semester series (krishna).pdf
Botany 4th semester series (krishna).pdf
 
Formation of low mass protostars and their circumstellar disks
Formation of low mass protostars and their circumstellar disksFormation of low mass protostars and their circumstellar disks
Formation of low mass protostars and their circumstellar disks
 
GBSN - Microbiology (Unit 1)
GBSN - Microbiology (Unit 1)GBSN - Microbiology (Unit 1)
GBSN - Microbiology (Unit 1)
 
Chemical Tests; flame test, positive and negative ions test Edexcel Internati...
Chemical Tests; flame test, positive and negative ions test Edexcel Internati...Chemical Tests; flame test, positive and negative ions test Edexcel Internati...
Chemical Tests; flame test, positive and negative ions test Edexcel Internati...
 
American Type Culture Collection (ATCC).pptx
American Type Culture Collection (ATCC).pptxAmerican Type Culture Collection (ATCC).pptx
American Type Culture Collection (ATCC).pptx
 
module for grade 9 for distance learning
module for grade 9 for distance learningmodule for grade 9 for distance learning
module for grade 9 for distance learning
 

Computer graphics presentation

  • 1. Shri Vaishnav Institute Of Management Presentation On Computer Graphics
  • 3.
  • 4. Computer Aided Design Computer Aided Design(CAD) is the Use of Computer System to Assist in the Creation , Modification , Analysis or Optimization of Design.
  • 5. Visualization Visualization is any Technique For Creating Images , Diagrams or Animations To Communicate A Message.
  • 6. Animation Animation is the Process Of Creating a Continuous Motion & Shape Change illusion by means of rapid display of a Sequence of static Images that Minimally differ from each other.
  • 7. Computer Games Computer Games are Video Games played on a General Purpose Personal Computer
  • 8. Frame Buffer A Frame Buffer is a Large , Contiguous Piece of Computer Memory(RAM) that stores Picture Definition. This Memory Area Holds the Set of intensity values for all the Screen points and then retrieved from the frame buffer and painted on the Screen One Row(Scan Line) at a time. Each screen point is referred to as a Pixel or pel or Picture Element.
  • 10. Line Drawing Algorithm There are two basic line drawing algorithm….. DDA Line Drawing Algorithm Bresenham’s Line Drawing Algorithm
  • 11. DDA Line Drawing Algorithm Programmer Specifies (x,y) values of end pixels Need Algorithm to find out which intermediate pixels are on line path Pixel (x,y) constrained to integer values Actual Computed intermediate line values may be floats Rounding May Be Required
  • 12. 0 1 2 3 4 5 6 7 8 9 10 11 12 8 7 6 5 4 3 2 1 (3,2) (9,6) DDA Line Drawing Algorithm
  • 13. DDA Line Drawing Algorithm DDA stands for “Digital-Differential Analyzer”. It’s a “Scan-Conversion” line drawing algorithm. It’s mainly based on calculating either Δx (dx) or Δy (dy)…
  • 14. DDA Line Drawing Algorithm Slope – Intercept Line Equation y = m . x + b Given Two End Points (x0,y0) and (x1,y1). How To Compute m and b ? (x0,y0) (x1,y1) dx dy m = dy / dx = (y1 – y0) / (x1 – x0) b = y0 – m * x0 Δy = m * Δx Δx = Δy/m
  • 15. DDA Line Drawing Algorithm If a line with positive slope (+m) or it’s less than and equal to 1(m<=1), then we set ‘x’ at unit interval(Δx=1) And compute each successive ‘y’ value by using following Formula:- yk+1 = yk + m Where subscript ‘k’ takes integer values starting from 1, For the first point, and increases by 1 until the final end point is reached.. Left to right
  • 16. DDA Line Drawing Algorithm If a line with positive slope (+m) or it’s greater than 1(m>1), then we reverse the rule of ‘x’ and ‘y’, that is set ‘y’ at unit interval(Δy=1) and compute each successive ‘x’ value by using following Formula:- xk+1 = xk + 1/m Where subscript ‘k’ takes integer values starting from 1, For the first point, and increases by 1 until the final end point is reached.. Left to right
  • 17. REFRANCE  BOOK REFRANCE  “Computer Graphics C Version” by “Donald Hearn And M. Pauline Baker”.
  • 18. Presentation Powered By : Ashish Sharma Lokendra Prajapati