SlideShare a Scribd company logo
A. K. Biswas, Dept. Of Computer Apllication, B.I.T., Durg 1
COMPUTER GRAPHICSCOMPUTER GRAPHICS
Visible Surface DetectionVisible Surface Detection
(Z-Buffer/Depth Buffer)(Z-Buffer/Depth Buffer)
A. K. Biswas, Dept. Of Computer Apllication, B.I.T., Durg 2
DEPTH-BUFFER METHODDEPTH-BUFFER METHOD
 Compares surface depth values throughout a scene
for each pixel position on the projection plane
 Usually applied to scenes only containing polygons
 Fast approach due to easy depth values computation
 Also often called the z-buffer method
(x2, y2) & z2
(x3, y3) & z3
(x1, y1) & z1
 (x1, y1), (x2, y2) &
(x3, y3) are the pixel
positions of surfaces
S1, S2, and S3
respectively.
 z1, z2 and z3 defines
the depth values
(distance) of surfaces
S1, S2, and S3
respectively from the
View Plane
A. K. Biswas, Dept. Of Computer Apllication, B.I.T., Durg 3
DEPTH-BUFFER METHOD (Cont…)DEPTH-BUFFER METHOD (Cont…)
1. Initialise the depth buffer and frame buffer so that for
all buffer positions (x, y)
depthBuff(x, y) = 1.0
frameBuff(x, y) = bgColour
2. Process each polygon in a scene, one at a time
– For each projected (x, y) pixel position of a
polygon, calculate the depth z (if not already
known)
– If z < depthBuff(x, y), compute the surface colour
at that position and set
depthBuff(x, y) = z
frameBuff(x, y) = surfColour(x, y)
 After all surfaces are processed depthBuff and frameBuff
will store correct values
A. K. Biswas, Dept. Of Computer Apllication, B.I.T., Durg 4
DEPTH CALCULATIONDEPTH CALCULATION
ExampleExample
A. K. Biswas, Dept. Of Computer Apllication, B.I.T., Durg 5
1 1 1 1 1 1 1 1
1 1 1 1 1 1 1 1
1 1 1 1 1 1 1 1
1 1 1 1 1 1 1 1
1 1 1 1 1 1 1 1
1 1 1 1 1 1 1 1
1 1 1 1 1 1 1 1
1 1 1 1 1 1 1 1
6 6 6 6 6 6 6
6 6 6 6 6 6
6 6 6 6 6
6 6 6 6
6 6 6
6 6
6
6 6 6 6 6 6 6 1
6 6 6 6 6 6 1 1
6 6 6 6 6 1 1 1
6 6 6 6 1 1 1 1
6 6 6 1 1 1 1 1
6 6 1 1 1 1 1 1
6 1 1 1 1 1 1 1
1 1 1 1 1 1 1 1
6 6 6 6 6 6 6 1
6 6 6 6 6 6 1 1
6 6 6 6 6 1 1 1
6 6 6 6 1 1 1 1
6 6 6 1 1 1 1 1
6 6 1 1 1 1 1 1
6 1 1 1 1 1 1 1
1 1 1 1 1 1 1 1
Surface-1
Depth Buffer
Depth Buffer Frame Buffer
ExampleExample
A. K. Biswas, Dept. Of Computer Apllication, B.I.T., Durg 6
6 6 6 6 6 6 6 1
6 6 6 6 6 6 1 1
6 6 6 6 6 1 1 1
6 6 6 6 1 1 1 1
6 6 6 7 1 1 1 1
6 6 7 7 7 1 1 1
6 7 7 7 7 7 1 1
1 1 1 1 1 1 1 1
6 6 6 6 6 6 6 1
6 6 6 6 6 6 1 1
6 6 6 6 6 1 1 1
6 6 6 6 1 1 1 1
6 6 6 1 1 1 1 1
6 6 1 1 1 1 1 1
6 1 1 1 1 1 1 1
1 1 1 1 1 1 1 1
1 1 1 1 1 1 1 1
7 1 1 1 1 1 1 1
7 1 1 1 1 1 1
7 1 1 1 1 1
7 1 1 1 1
7 1 1 1
7 1 1
1 1 1 1 1 1 1 1
7 7 7 7 7
7 7 7 7
7 7 7
7 7
7
6 6 6 6 6 6 6 1
6 6 6 6 6 6 1 1
6 6 6 6 6 1 1 1
6 6 6 6 1 1 1 1
6 6 6 1 1 1 1 1
6 6 1 1 1 1 1 1
6 1 1 1 1 1 1 1
1 1 1 1 1 1 1 1
Surface-2Depth Buffer
Depth Buffer Frame Buffer
A. K. Biswas, Dept. Of Computer Apllication, B.I.T., Durg 7
Iterative Calculations (cont…)Iterative Calculations (cont…)
top scan line
bottom scan line
y scan line
y - 1 scan line
x x’
A. K. Biswas, Dept. Of Computer Apllication, B.I.T., Durg 8
DISADVANTAGES OF DEPTH BUFFERDISADVANTAGES OF DEPTH BUFFER
This method only find out one visible surface
at each pixel position that means it deals
with only Opaque surface.
1
2
3
4
5
6
1 Red
2 Red
3 Green
4 Blue
5 Green
6 Red

More Related Content

What's hot

Computer graphics basic transformation
Computer graphics basic transformationComputer graphics basic transformation
Computer graphics basic transformation
Selvakumar Gna
 
Scan line method
Scan line methodScan line method
Scan line method
Pooja Dixit
 
Cohen-Sutherland Line Clipping Algorithm
Cohen-Sutherland Line Clipping AlgorithmCohen-Sutherland Line Clipping Algorithm
Cohen-Sutherland Line Clipping Algorithm
Maruf Abdullah (Rion)
 
2 d viewing computer graphics
2 d viewing computer graphics2 d viewing computer graphics
2 d viewing computer graphics
KALESHWAR KUMAR
 
Raster scan system & random scan system
Raster scan system & random scan systemRaster scan system & random scan system
Raster scan system & random scan system
shalinikarunakaran1
 
COMPUTER GRAPHICS-"Projection"
COMPUTER GRAPHICS-"Projection"COMPUTER GRAPHICS-"Projection"
COMPUTER GRAPHICS-"Projection"
Ankit Surti
 
Fill area algorithms
Fill area algorithmsFill area algorithms
Fill area algorithms
Kumar
 
Hidden surface removal
Hidden surface removalHidden surface removal
Hidden surface removal
Punyajoy Saha
 
Polygon clipping
Polygon clippingPolygon clipping
Polygon clipping
Mohd Arif
 
Frame buffer
Frame bufferFrame buffer
Frame buffer
Aparna Joshi
 
Hidden surface removal
Hidden surface removalHidden surface removal
Hidden surface removal
Ankit Garg
 
hidden surface elimination using z buffer algorithm
hidden surface elimination using z buffer algorithmhidden surface elimination using z buffer algorithm
hidden surface elimination using z buffer algorithm
rajivagarwal23dei
 
Cyrus beck line clipping algorithm
Cyrus beck line clipping algorithmCyrus beck line clipping algorithm
Cyrus beck line clipping algorithm
Pooja Dixit
 
Bresenham's line drawing algorithm
Bresenham's line drawing algorithmBresenham's line drawing algorithm
Bresenham's line drawing algorithm
nehrurevathy
 
Illumination Models & Shading
Illumination Models & ShadingIllumination Models & Shading
Unit 3
Unit 3Unit 3
Unit 3
ypnrao
 
3 d viewing projection
3 d viewing  projection3 d viewing  projection
3 d viewing projection
Pooja Dixit
 
Computer Graphics - clipping
Computer Graphics - clippingComputer Graphics - clipping
Computer graphics iv unit
Computer graphics iv unitComputer graphics iv unit
Computer graphics iv unit
aravindangc
 
3d transformation computer graphics
3d transformation computer graphics 3d transformation computer graphics
3d transformation computer graphics
University of Potsdam
 

What's hot (20)

Computer graphics basic transformation
Computer graphics basic transformationComputer graphics basic transformation
Computer graphics basic transformation
 
Scan line method
Scan line methodScan line method
Scan line method
 
Cohen-Sutherland Line Clipping Algorithm
Cohen-Sutherland Line Clipping AlgorithmCohen-Sutherland Line Clipping Algorithm
Cohen-Sutherland Line Clipping Algorithm
 
2 d viewing computer graphics
2 d viewing computer graphics2 d viewing computer graphics
2 d viewing computer graphics
 
Raster scan system & random scan system
Raster scan system & random scan systemRaster scan system & random scan system
Raster scan system & random scan system
 
COMPUTER GRAPHICS-"Projection"
COMPUTER GRAPHICS-"Projection"COMPUTER GRAPHICS-"Projection"
COMPUTER GRAPHICS-"Projection"
 
Fill area algorithms
Fill area algorithmsFill area algorithms
Fill area algorithms
 
Hidden surface removal
Hidden surface removalHidden surface removal
Hidden surface removal
 
Polygon clipping
Polygon clippingPolygon clipping
Polygon clipping
 
Frame buffer
Frame bufferFrame buffer
Frame buffer
 
Hidden surface removal
Hidden surface removalHidden surface removal
Hidden surface removal
 
hidden surface elimination using z buffer algorithm
hidden surface elimination using z buffer algorithmhidden surface elimination using z buffer algorithm
hidden surface elimination using z buffer algorithm
 
Cyrus beck line clipping algorithm
Cyrus beck line clipping algorithmCyrus beck line clipping algorithm
Cyrus beck line clipping algorithm
 
Bresenham's line drawing algorithm
Bresenham's line drawing algorithmBresenham's line drawing algorithm
Bresenham's line drawing algorithm
 
Illumination Models & Shading
Illumination Models & ShadingIllumination Models & Shading
Illumination Models & Shading
 
Unit 3
Unit 3Unit 3
Unit 3
 
3 d viewing projection
3 d viewing  projection3 d viewing  projection
3 d viewing projection
 
Computer Graphics - clipping
Computer Graphics - clippingComputer Graphics - clipping
Computer Graphics - clipping
 
Computer graphics iv unit
Computer graphics iv unitComputer graphics iv unit
Computer graphics iv unit
 
3d transformation computer graphics
3d transformation computer graphics 3d transformation computer graphics
3d transformation computer graphics
 

Recently uploaded

Film vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movieFilm vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movie
Nicholas Montgomery
 
How to Make a Field Mandatory in Odoo 17
How to Make a Field Mandatory in Odoo 17How to Make a Field Mandatory in Odoo 17
How to Make a Field Mandatory in Odoo 17
Celine George
 
PIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf IslamabadPIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf Islamabad
AyyanKhan40
 
Life upper-Intermediate B2 Workbook for student
Life upper-Intermediate B2 Workbook for studentLife upper-Intermediate B2 Workbook for student
Life upper-Intermediate B2 Workbook for student
NgcHiNguyn25
 
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama UniversityNatural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
Akanksha trivedi rama nursing college kanpur.
 
The Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collectionThe Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collection
Israel Genealogy Research Association
 
Digital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments UnitDigital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments Unit
chanes7
 
How to Add Chatter in the odoo 17 ERP Module
How to Add Chatter in the odoo 17 ERP ModuleHow to Add Chatter in the odoo 17 ERP Module
How to Add Chatter in the odoo 17 ERP Module
Celine George
 
Pengantar Penggunaan Flutter - Dart programming language1.pptx
Pengantar Penggunaan Flutter - Dart programming language1.pptxPengantar Penggunaan Flutter - Dart programming language1.pptx
Pengantar Penggunaan Flutter - Dart programming language1.pptx
Fajar Baskoro
 
Executive Directors Chat Leveraging AI for Diversity, Equity, and Inclusion
Executive Directors Chat  Leveraging AI for Diversity, Equity, and InclusionExecutive Directors Chat  Leveraging AI for Diversity, Equity, and Inclusion
Executive Directors Chat Leveraging AI for Diversity, Equity, and Inclusion
TechSoup
 
How to Fix the Import Error in the Odoo 17
How to Fix the Import Error in the Odoo 17How to Fix the Import Error in the Odoo 17
How to Fix the Import Error in the Odoo 17
Celine George
 
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UPLAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
RAHUL
 
A Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdfA Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdf
Jean Carlos Nunes Paixão
 
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdfANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
Priyankaranawat4
 
Walmart Business+ and Spark Good for Nonprofits.pdf
Walmart Business+ and Spark Good for Nonprofits.pdfWalmart Business+ and Spark Good for Nonprofits.pdf
Walmart Business+ and Spark Good for Nonprofits.pdf
TechSoup
 
Liberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdfLiberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdf
WaniBasim
 
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Dr. Vinod Kumar Kanvaria
 
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
GeorgeMilliken2
 
How to Build a Module in Odoo 17 Using the Scaffold Method
How to Build a Module in Odoo 17 Using the Scaffold MethodHow to Build a Module in Odoo 17 Using the Scaffold Method
How to Build a Module in Odoo 17 Using the Scaffold Method
Celine George
 
Your Skill Boost Masterclass: Strategies for Effective Upskilling
Your Skill Boost Masterclass: Strategies for Effective UpskillingYour Skill Boost Masterclass: Strategies for Effective Upskilling
Your Skill Boost Masterclass: Strategies for Effective Upskilling
Excellence Foundation for South Sudan
 

Recently uploaded (20)

Film vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movieFilm vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movie
 
How to Make a Field Mandatory in Odoo 17
How to Make a Field Mandatory in Odoo 17How to Make a Field Mandatory in Odoo 17
How to Make a Field Mandatory in Odoo 17
 
PIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf IslamabadPIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf Islamabad
 
Life upper-Intermediate B2 Workbook for student
Life upper-Intermediate B2 Workbook for studentLife upper-Intermediate B2 Workbook for student
Life upper-Intermediate B2 Workbook for student
 
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama UniversityNatural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
 
The Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collectionThe Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collection
 
Digital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments UnitDigital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments Unit
 
How to Add Chatter in the odoo 17 ERP Module
How to Add Chatter in the odoo 17 ERP ModuleHow to Add Chatter in the odoo 17 ERP Module
How to Add Chatter in the odoo 17 ERP Module
 
Pengantar Penggunaan Flutter - Dart programming language1.pptx
Pengantar Penggunaan Flutter - Dart programming language1.pptxPengantar Penggunaan Flutter - Dart programming language1.pptx
Pengantar Penggunaan Flutter - Dart programming language1.pptx
 
Executive Directors Chat Leveraging AI for Diversity, Equity, and Inclusion
Executive Directors Chat  Leveraging AI for Diversity, Equity, and InclusionExecutive Directors Chat  Leveraging AI for Diversity, Equity, and Inclusion
Executive Directors Chat Leveraging AI for Diversity, Equity, and Inclusion
 
How to Fix the Import Error in the Odoo 17
How to Fix the Import Error in the Odoo 17How to Fix the Import Error in the Odoo 17
How to Fix the Import Error in the Odoo 17
 
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UPLAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
 
A Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdfA Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdf
 
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdfANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
 
Walmart Business+ and Spark Good for Nonprofits.pdf
Walmart Business+ and Spark Good for Nonprofits.pdfWalmart Business+ and Spark Good for Nonprofits.pdf
Walmart Business+ and Spark Good for Nonprofits.pdf
 
Liberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdfLiberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdf
 
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
 
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
 
How to Build a Module in Odoo 17 Using the Scaffold Method
How to Build a Module in Odoo 17 Using the Scaffold MethodHow to Build a Module in Odoo 17 Using the Scaffold Method
How to Build a Module in Odoo 17 Using the Scaffold Method
 
Your Skill Boost Masterclass: Strategies for Effective Upskilling
Your Skill Boost Masterclass: Strategies for Effective UpskillingYour Skill Boost Masterclass: Strategies for Effective Upskilling
Your Skill Boost Masterclass: Strategies for Effective Upskilling
 

Z buffer

  • 1. A. K. Biswas, Dept. Of Computer Apllication, B.I.T., Durg 1 COMPUTER GRAPHICSCOMPUTER GRAPHICS Visible Surface DetectionVisible Surface Detection (Z-Buffer/Depth Buffer)(Z-Buffer/Depth Buffer)
  • 2. A. K. Biswas, Dept. Of Computer Apllication, B.I.T., Durg 2 DEPTH-BUFFER METHODDEPTH-BUFFER METHOD  Compares surface depth values throughout a scene for each pixel position on the projection plane  Usually applied to scenes only containing polygons  Fast approach due to easy depth values computation  Also often called the z-buffer method (x2, y2) & z2 (x3, y3) & z3 (x1, y1) & z1  (x1, y1), (x2, y2) & (x3, y3) are the pixel positions of surfaces S1, S2, and S3 respectively.  z1, z2 and z3 defines the depth values (distance) of surfaces S1, S2, and S3 respectively from the View Plane
  • 3. A. K. Biswas, Dept. Of Computer Apllication, B.I.T., Durg 3 DEPTH-BUFFER METHOD (Cont…)DEPTH-BUFFER METHOD (Cont…) 1. Initialise the depth buffer and frame buffer so that for all buffer positions (x, y) depthBuff(x, y) = 1.0 frameBuff(x, y) = bgColour 2. Process each polygon in a scene, one at a time – For each projected (x, y) pixel position of a polygon, calculate the depth z (if not already known) – If z < depthBuff(x, y), compute the surface colour at that position and set depthBuff(x, y) = z frameBuff(x, y) = surfColour(x, y)  After all surfaces are processed depthBuff and frameBuff will store correct values
  • 4. A. K. Biswas, Dept. Of Computer Apllication, B.I.T., Durg 4 DEPTH CALCULATIONDEPTH CALCULATION
  • 5. ExampleExample A. K. Biswas, Dept. Of Computer Apllication, B.I.T., Durg 5 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 1 6 6 6 6 6 6 1 1 6 6 6 6 6 1 1 1 6 6 6 6 1 1 1 1 6 6 6 1 1 1 1 1 6 6 1 1 1 1 1 1 6 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 6 6 6 6 6 6 6 1 6 6 6 6 6 6 1 1 6 6 6 6 6 1 1 1 6 6 6 6 1 1 1 1 6 6 6 1 1 1 1 1 6 6 1 1 1 1 1 1 6 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 Surface-1 Depth Buffer Depth Buffer Frame Buffer
  • 6. ExampleExample A. K. Biswas, Dept. Of Computer Apllication, B.I.T., Durg 6 6 6 6 6 6 6 6 1 6 6 6 6 6 6 1 1 6 6 6 6 6 1 1 1 6 6 6 6 1 1 1 1 6 6 6 7 1 1 1 1 6 6 7 7 7 1 1 1 6 7 7 7 7 7 1 1 1 1 1 1 1 1 1 1 6 6 6 6 6 6 6 1 6 6 6 6 6 6 1 1 6 6 6 6 6 1 1 1 6 6 6 6 1 1 1 1 6 6 6 1 1 1 1 1 6 6 1 1 1 1 1 1 6 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 7 1 1 1 1 1 1 1 7 1 1 1 1 1 1 7 1 1 1 1 1 7 1 1 1 1 7 1 1 1 7 1 1 1 1 1 1 1 1 1 1 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 6 6 6 6 6 6 6 1 6 6 6 6 6 6 1 1 6 6 6 6 6 1 1 1 6 6 6 6 1 1 1 1 6 6 6 1 1 1 1 1 6 6 1 1 1 1 1 1 6 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 Surface-2Depth Buffer Depth Buffer Frame Buffer
  • 7. A. K. Biswas, Dept. Of Computer Apllication, B.I.T., Durg 7 Iterative Calculations (cont…)Iterative Calculations (cont…) top scan line bottom scan line y scan line y - 1 scan line x x’
  • 8. A. K. Biswas, Dept. Of Computer Apllication, B.I.T., Durg 8 DISADVANTAGES OF DEPTH BUFFERDISADVANTAGES OF DEPTH BUFFER This method only find out one visible surface at each pixel position that means it deals with only Opaque surface. 1 2 3 4 5 6 1 Red 2 Red 3 Green 4 Blue 5 Green 6 Red