2
Most read
3
Most read
5
Most read
Prof. Neeraj Bhargava
Pooja Dixit
Department of Computer Science
School of Engineering & System Sciences
MDS, University Ajmer, Rajasthan, India
1
 It is an image-space method to identify visible surface.
This method has a depth information for only single scan-
line. In order to require one scan-line of depth values, we
must group and process all polygons intersecting a given
scan-line at the same time before processing the next
scan-line. Two important tables, edge table and polygon
table, are maintained for this.
 The Edge Table − It contains:-
◦ coordinate endpoints of each line in the scene
◦ the inverse slope of each line
◦ and pointers into the polygon table to connect edges to surfaces.
 The Polygon Table − It contains:-
◦ the plane coefficients
◦ surface material properties
◦ other surface data
◦ may be pointers to the edge table.
2
 Each of the scan line is processes from left to right. The surface flag is
turned on at left intersection and at right intersection it is turned off.
 In this method, as each scan line is processed, all polygon
surfaces intersecting that line are examined to determine which
are visible. A cross each scan line, depth calculations are made
for each overlapping surface to determine which is nearest to the
view plane. When the visible surface has been determined, the
intensity value for that position is entered into the image buffer.
 The search for the surfaces that cross a given scan line can be
facilitated by an active list of edges. Only the edges that cross
the scan line is stored by the active list. For indicating whether
the position along a scan line is inside or outside the surface, a
flag is set.
 Each of the scan line is processes from left to right. The surface
flag is turned on at left intersection and at right intersection it is
turned off.
3
4
Scan lines corssing the projection of two furfaces S1, S2 in the
view plane. Dashed lines indicate the boundaries of hidden
surfaces.
 Figure illustrates the scan-line method for locating visible portions of surfaces for pixel
positions along the line. The active list for line 1 contains information from the edge table for
edges AB, BC, EH, and FG. For positions along this scan line between edges AB and BC, only the
flag for surface S1 is on. Therefore no depth calculations are necessary, and intensity
information for surface S1, is entered from the polygon table into the refresh buffer. Similarly,
between edges EH and FG, only the flag for surface S2 is on. NO other positions along scan line
1 intersect surfaces, so the intensity values in the other areas are set to the background
intensity. The background intensity can be loaded throughout the buffer in an initialization
routine.
 For scan lines 2 and 3 in Fig. , the active edge list contains edges AD, EH, BC, and FG. Along
scan line 2 from edge AD to edge EH, only the flag for surface S1 is on. But between edges EH
and BC, the flags for both surfaces are on. In this interval, depth calculations must be made
using the plane coefficients for the two surfaces. For this example, the depth of surface S1 is
assumed to be less than that of S2, so intensities for surface S1 are loaded into the refresh
buffer until boundary BC is encountered. Then the flag for surface S1 goes off, and intensities
for surface S2 are stored until edge FG is passed.
 We can take advantage of-coherence along the scan lines as we pass from one scan line to
the next. In Fig. 4 , scan line 3 has the same active list of edges as scan line 2. Since no
changes have occurred in line intersections, it is unnecessary again to make depth calculations
between edges EH and BC. The two surfaces must be in the same orientation as determined on
scan line 2, so the intensities for surface S1 can be entered without further calculations.
5

More Related Content

PPTX
Back face detection
PPT
2D transformation (Computer Graphics)
PPT
Visible surface detection in computer graphic
PDF
3D Transformation
PPTX
Polygons - Computer Graphics - Notes
PDF
Curves and surfaces
PPTX
Polygon filling algorithm
PPT
Composite transformations
Back face detection
2D transformation (Computer Graphics)
Visible surface detection in computer graphic
3D Transformation
Polygons - Computer Graphics - Notes
Curves and surfaces
Polygon filling algorithm
Composite transformations

What's hot (20)

PPTX
Depth Buffer Method
PPTX
Cohen sutherland line clipping
PPTX
Raster animation
PPTX
Clipping
PPTX
Graphics software standards
PPT
Window to viewport transformation
PPTX
3D Transformation in Computer Graphics
PPT
Visible Surface Detection
PPTX
Frame buffer
PPTX
2 d viewing computer graphics
PDF
Unit 3
PPTX
Output primitives in Computer Graphics
PPTX
Spline representations
PPT
Hidden lines & surfaces
PPTX
Bezier curve & B spline curve
PPTX
Hidden surface removal algorithm
PPTX
Projection In Computer Graphics
PPTX
2D viewing & clipping
PPTX
Raster scan system & random scan system
PPTX
The sutherland hodgeman polygon clipping algorithm
Depth Buffer Method
Cohen sutherland line clipping
Raster animation
Clipping
Graphics software standards
Window to viewport transformation
3D Transformation in Computer Graphics
Visible Surface Detection
Frame buffer
2 d viewing computer graphics
Unit 3
Output primitives in Computer Graphics
Spline representations
Hidden lines & surfaces
Bezier curve & B spline curve
Hidden surface removal algorithm
Projection In Computer Graphics
2D viewing & clipping
Raster scan system & random scan system
The sutherland hodgeman polygon clipping algorithm
Ad

Similar to Scan line method (20)

PPT
Hidden surfaces
PPTX
Visible Surface Detection Methods in Computer Graphics.pptx
PPTX
Visible surface determination
PPT
Computer graphics iv unit
PPTX
Visible Surfacte Detection Methods - Z-Buffer and Scanline methods.pptx
PPTX
Computer Graphics: Visible surface detection methods
PDF
Hidden Surface Removal using Z-buffer
PDF
Visual surface detection computer graphics
PPT
rural marketing ppt
PPT
Visual surface detection i
PPTX
Visible surface identification
PPTX
Hidden surface removal
PPTX
Visible surface detection methods
PPTX
unit 4.pptx
PPTX
UNIT 2hidden surface elimination in graphics.pptx
PPTX
PPTX
Computer Graphics - Hidden Line Removal Algorithm
PPTX
PPTX
B. SC CSIT Computer Graphics Unit 4 By Tekendra Nath Yogi
Hidden surfaces
Visible Surface Detection Methods in Computer Graphics.pptx
Visible surface determination
Computer graphics iv unit
Visible Surfacte Detection Methods - Z-Buffer and Scanline methods.pptx
Computer Graphics: Visible surface detection methods
Hidden Surface Removal using Z-buffer
Visual surface detection computer graphics
rural marketing ppt
Visual surface detection i
Visible surface identification
Hidden surface removal
Visible surface detection methods
unit 4.pptx
UNIT 2hidden surface elimination in graphics.pptx
Computer Graphics - Hidden Line Removal Algorithm
B. SC CSIT Computer Graphics Unit 4 By Tekendra Nath Yogi
Ad

More from Pooja Dixit (20)

PPTX
Combinational circuit.pptx
PPTX
number system.pptx
PPTX
Multiplexer.pptx
PPTX
Logic Gates.pptx
PPTX
K-Map.pptx
PPTX
Karnaugh Map Simplification Rules.pptx
PPTX
Half Subtractor.pptx
PPTX
Gray Code.pptx
PPTX
Flip Flop.pptx
PPTX
Encoder.pptx
PPTX
De-multiplexer.pptx
PPTX
DeMorgan’s Theory.pptx
PPTX
Combinational circuit.pptx
PPTX
Boolean Algebra.pptx
PPTX
Binary Multiplication & Division.pptx
PPTX
Binary addition.pptx
PPTX
Basics of Computer Organization.pptx
PPTX
Decoders
PPTX
Three Address code
PPTX
Cyrus beck line clipping algorithm
Combinational circuit.pptx
number system.pptx
Multiplexer.pptx
Logic Gates.pptx
K-Map.pptx
Karnaugh Map Simplification Rules.pptx
Half Subtractor.pptx
Gray Code.pptx
Flip Flop.pptx
Encoder.pptx
De-multiplexer.pptx
DeMorgan’s Theory.pptx
Combinational circuit.pptx
Boolean Algebra.pptx
Binary Multiplication & Division.pptx
Binary addition.pptx
Basics of Computer Organization.pptx
Decoders
Three Address code
Cyrus beck line clipping algorithm

Recently uploaded (20)

PPTX
Research Writing, Mechanical Engineering
PDF
Introduction to Machine Learning -Basic concepts,Models and Description
PDF
IAE-V2500 Engine for Airbus Family 319/320
PDF
Engineering Solutions for Ethical Dilemmas in Healthcare (www.kiu.ac.ug)
PPTX
ARCHITECTURE AND PROGRAMMING OF EMBEDDED SYSTEMS
PDF
Artificial Intelligence_ Basics .Artificial Intelligence_ Basics .
PDF
Performance, energy consumption and costs: a comparative analysis of automati...
PPTX
1. Effective HSEW Induction Training - EMCO 2024, O&M.pptx
PDF
V2500 Owner and Operatore Guide for Airbus
PPTX
sub station Simple Design of Substation PPT.pptx
PPTX
Hardware, SLAM tracking,Privacy and AR Cloud Data.
PPTX
INTERNET OF THINGS - EMBEDDED SYSTEMS AND INTERNET OF THINGS
PDF
The Journal of Finance - July 1993 - JENSEN - The Modern Industrial Revolutio...
PDF
PhD defense presentation in field of Computer Science
PDF
BTCVPE506F_Module 1 History & Theories of Town Planning.pdf
PPT
Basics Of Pump types, Details, and working principles.
PPTX
Software-Development-Life-Cycle-SDLC.pptx
PDF
Module 1 part 1.pdf engineering notes s7
PDF
Software defined netwoks is useful to learn NFV and virtual Lans
PPTX
MODULE 02 - CLOUD COMPUTING-Virtual Machines and Virtualization of Clusters a...
Research Writing, Mechanical Engineering
Introduction to Machine Learning -Basic concepts,Models and Description
IAE-V2500 Engine for Airbus Family 319/320
Engineering Solutions for Ethical Dilemmas in Healthcare (www.kiu.ac.ug)
ARCHITECTURE AND PROGRAMMING OF EMBEDDED SYSTEMS
Artificial Intelligence_ Basics .Artificial Intelligence_ Basics .
Performance, energy consumption and costs: a comparative analysis of automati...
1. Effective HSEW Induction Training - EMCO 2024, O&M.pptx
V2500 Owner and Operatore Guide for Airbus
sub station Simple Design of Substation PPT.pptx
Hardware, SLAM tracking,Privacy and AR Cloud Data.
INTERNET OF THINGS - EMBEDDED SYSTEMS AND INTERNET OF THINGS
The Journal of Finance - July 1993 - JENSEN - The Modern Industrial Revolutio...
PhD defense presentation in field of Computer Science
BTCVPE506F_Module 1 History & Theories of Town Planning.pdf
Basics Of Pump types, Details, and working principles.
Software-Development-Life-Cycle-SDLC.pptx
Module 1 part 1.pdf engineering notes s7
Software defined netwoks is useful to learn NFV and virtual Lans
MODULE 02 - CLOUD COMPUTING-Virtual Machines and Virtualization of Clusters a...

Scan line method

  • 1. Prof. Neeraj Bhargava Pooja Dixit Department of Computer Science School of Engineering & System Sciences MDS, University Ajmer, Rajasthan, India 1
  • 2.  It is an image-space method to identify visible surface. This method has a depth information for only single scan- line. In order to require one scan-line of depth values, we must group and process all polygons intersecting a given scan-line at the same time before processing the next scan-line. Two important tables, edge table and polygon table, are maintained for this.  The Edge Table − It contains:- ◦ coordinate endpoints of each line in the scene ◦ the inverse slope of each line ◦ and pointers into the polygon table to connect edges to surfaces.  The Polygon Table − It contains:- ◦ the plane coefficients ◦ surface material properties ◦ other surface data ◦ may be pointers to the edge table. 2
  • 3.  Each of the scan line is processes from left to right. The surface flag is turned on at left intersection and at right intersection it is turned off.  In this method, as each scan line is processed, all polygon surfaces intersecting that line are examined to determine which are visible. A cross each scan line, depth calculations are made for each overlapping surface to determine which is nearest to the view plane. When the visible surface has been determined, the intensity value for that position is entered into the image buffer.  The search for the surfaces that cross a given scan line can be facilitated by an active list of edges. Only the edges that cross the scan line is stored by the active list. For indicating whether the position along a scan line is inside or outside the surface, a flag is set.  Each of the scan line is processes from left to right. The surface flag is turned on at left intersection and at right intersection it is turned off. 3
  • 4. 4 Scan lines corssing the projection of two furfaces S1, S2 in the view plane. Dashed lines indicate the boundaries of hidden surfaces.
  • 5.  Figure illustrates the scan-line method for locating visible portions of surfaces for pixel positions along the line. The active list for line 1 contains information from the edge table for edges AB, BC, EH, and FG. For positions along this scan line between edges AB and BC, only the flag for surface S1 is on. Therefore no depth calculations are necessary, and intensity information for surface S1, is entered from the polygon table into the refresh buffer. Similarly, between edges EH and FG, only the flag for surface S2 is on. NO other positions along scan line 1 intersect surfaces, so the intensity values in the other areas are set to the background intensity. The background intensity can be loaded throughout the buffer in an initialization routine.  For scan lines 2 and 3 in Fig. , the active edge list contains edges AD, EH, BC, and FG. Along scan line 2 from edge AD to edge EH, only the flag for surface S1 is on. But between edges EH and BC, the flags for both surfaces are on. In this interval, depth calculations must be made using the plane coefficients for the two surfaces. For this example, the depth of surface S1 is assumed to be less than that of S2, so intensities for surface S1 are loaded into the refresh buffer until boundary BC is encountered. Then the flag for surface S1 goes off, and intensities for surface S2 are stored until edge FG is passed.  We can take advantage of-coherence along the scan lines as we pass from one scan line to the next. In Fig. 4 , scan line 3 has the same active list of edges as scan line 2. Since no changes have occurred in line intersections, it is unnecessary again to make depth calculations between edges EH and BC. The two surfaces must be in the same orientation as determined on scan line 2, so the intensities for surface S1 can be entered without further calculations. 5