SlideShare a Scribd company logo
2
Most read
3
Most read
4
Most read
Prof. Neeraj Bhargava
Pooja Dixit
Department of Computer Science
School of Engineering & System Sciences
MDS, University Ajmer, Rajasthan, India
1
 When we project 3-D objects on a 2-D screen, we need to detect the
faces that are hidden on 2D.
 Back-Face detection, also known as Plane Equation method, is an object
space method in which objects and parts of objects are compared to find
out the visible surfaces.
 Let us consider a triangular surface that whose visibility needs to
decided. The idea is to check if the triangle will be facing away from the
viewer or not. If it does so, discard it for the current frame and move
onto the next one.
 Each surface has a normal vector. If this normal vector is pointing in the
direction of the center of projection, then it is a front face and can be
seen by the viewer. If this normal vector is pointing away from the center
of projection, then it is a back face and can not be seen by the viewer.
 A fast and simple object-space method for locating back faces
 A point (x,y,z) is “inside” a polygon surface with plane parameters A, B,
C, D if :
Ax + By + Cz + D < 0
 When an inside point is along the line of sight to the surface, the
polygon must be a back face and so cannot be seen.
2
 The test is simplified by considering the normal vector N to
the polygon and the viewing vector V
 This is back face if
V · N > 0
 A polygon is a back face if Vview.N > 0. But it should be kept in mind
that after application of the viewing transformation, viewer is
looking down the negative Z-axis. Therefore, a polygon is back face
if :
 (0, 0, -1).N > 0 or if C < 0
3
 In a right-handed viewing system with viewing direction along the
negative Zvaxis, the polygon is a back face if C < 0. Also, we cannot see
any face whose normal has z component C = 0, since your viewing
direction is towards that polygon. Thus, in general, we can label any
polygon as a back face if its normal vector has a z component value −
 C <= 0
 Algorithm for right-handed system :
1) Compute N for every face of object.
2) If (C.(Z component) < 0)
then a back face and don't draw
else
front face and draw
Thus, for the right-handed system, if the Z component of the normal
vector is negative, then it is a back face. If the Z component of the vector
is positive, then it is a front face.
4
 Similar methods can be used in packages that employ a left-handed viewing
system. In these packages, plane parameters A, B, C and D can be calculated
from polygon vertex coordinates specified in a clockwise direction (unlike the
counterclockwise direction used in a right-handed system).
 Also, back faces have normal vectors that point away from the viewing
position and are identified by C >= 0 when the viewing direction is along the
positive Zv
 axis. By examining parameter C for the different planes defining an object,
we can immediately identify all the back faces.
 the Algorithm for left-handed system :
1) Compute N for every face of object.
2) If (C.(Z component) > 0)
then a back face and don't draw
Else
front face and draw
The Back-face detection method is very simple. For the left-handed
system, if the Z component of the normal vector is positive, then
it is a back face. If the Z component of the vector is negative, then
it is a front face.
5
6
Limitations :
1) This method works fine for convex polyhedra, but not necessarily
for concave polyhedra.
2) This method can only be used on solid objects modeled as a
polygon mesh.

More Related Content

PPTX
INDICATOR ELECTRODE
PPTX
Introduction to Research ,Need for research, Need for design of Experiments, ...
PPTX
Depth Buffer Method
PPT
Human Resource planning
PDF
I. AO* SEARCH ALGORITHM
PPT
Risk management(software engineering)
PPT
Solar pond
PPT
2D transformation (Computer Graphics)
INDICATOR ELECTRODE
Introduction to Research ,Need for research, Need for design of Experiments, ...
Depth Buffer Method
Human Resource planning
I. AO* SEARCH ALGORITHM
Risk management(software engineering)
Solar pond
2D transformation (Computer Graphics)

What's hot (20)

PPTX
Output primitives in Computer Graphics
PPTX
Projection In Computer Graphics
PPTX
Raster scan system & random scan system
PPT
Visible surface detection in computer graphic
PDF
Unit 3
PPTX
Mid point circle algorithm
PPTX
Parallel projection
PPTX
Cohen sutherland line clipping
PPTX
Spline representations
PPTX
3 d display methods
PPTX
Clipping computer graphics
PPTX
3D transformation in computer graphics
PPTX
Frame buffer
PPTX
Segments in Graphics
PPTX
Clipping
PPTX
Window to viewport transformation&amp;matrix representation of homogeneous co...
PPT
Polygon clipping
PPT
2 d geometric transformations
PPTX
Anti- aliasing computer graphics
PPTX
Line Drawing Algorithms - Computer Graphics - Notes
Output primitives in Computer Graphics
Projection In Computer Graphics
Raster scan system & random scan system
Visible surface detection in computer graphic
Unit 3
Mid point circle algorithm
Parallel projection
Cohen sutherland line clipping
Spline representations
3 d display methods
Clipping computer graphics
3D transformation in computer graphics
Frame buffer
Segments in Graphics
Clipping
Window to viewport transformation&amp;matrix representation of homogeneous co...
Polygon clipping
2 d geometric transformations
Anti- aliasing computer graphics
Line Drawing Algorithms - Computer Graphics - Notes
Ad

Similar to Back face detection (20)

PDF
Hidden Surface Removal using Z-buffer
PDF
Unit 3 visual realism
PPTX
visual realism Unit iii
PPT
7-Surface Detection Methods.ppt
PPT
PPT
visible surface detection
PPTX
Visible surface determination
PDF
posterfinal
PPT
View in 3_d_asper_syllabus
PPT
View in 3_d_asper_syllabus
PDF
Visual surface detection computer graphics
PPT
Visible Surface Detection
PDF
Visualization of general defined space data
PPT
Lecture Ch 03
PDF
Human Face Detection Based on Combination of Logistic Regression, Distance of...
PDF
Stixel based real time object detection for ADAS using surface normal
PPTX
3 d viewing projection
PPT
Computer graphics iv unit
PDF
Computer Aided Design visual realism notes
PPTX
Circle & curve clipping algorithm
Hidden Surface Removal using Z-buffer
Unit 3 visual realism
visual realism Unit iii
7-Surface Detection Methods.ppt
visible surface detection
Visible surface determination
posterfinal
View in 3_d_asper_syllabus
View in 3_d_asper_syllabus
Visual surface detection computer graphics
Visible Surface Detection
Visualization of general defined space data
Lecture Ch 03
Human Face Detection Based on Combination of Logistic Regression, Distance of...
Stixel based real time object detection for ADAS using surface normal
3 d viewing projection
Computer graphics iv unit
Computer Aided Design visual realism notes
Circle & curve clipping algorithm
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
IOT PPTs Week 10 Lecture Material.pptx of NPTEL Smart Cities contd
PPTX
Lesson 3_Tessellation.pptx finite Mathematics
PPTX
Strings in CPP - Strings in C++ are sequences of characters used to store and...
PPTX
Geodesy 1.pptx...............................................
PDF
Evaluating the Democratization of the Turkish Armed Forces from a Normative P...
PPTX
MCN 401 KTU-2019-PPE KITS-MODULE 2.pptx
PDF
Well-logging-methods_new................
PPTX
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
PPTX
CARTOGRAPHY AND GEOINFORMATION VISUALIZATION chapter1 NPTE (2).pptx
PPTX
UNIT 4 Total Quality Management .pptx
PPTX
Welding lecture in detail for understanding
DOCX
ASol_English-Language-Literature-Set-1-27-02-2023-converted.docx
PPT
Mechanical Engineering MATERIALS Selection
PPTX
Internet of Things (IOT) - A guide to understanding
PDF
composite construction of structures.pdf
PPTX
UNIT-1 - COAL BASED THERMAL POWER PLANTS
PPTX
web development for engineering and engineering
PDF
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf
PDF
PPT on Performance Review to get promotions
PPTX
Foundation to blockchain - A guide to Blockchain Tech
IOT PPTs Week 10 Lecture Material.pptx of NPTEL Smart Cities contd
Lesson 3_Tessellation.pptx finite Mathematics
Strings in CPP - Strings in C++ are sequences of characters used to store and...
Geodesy 1.pptx...............................................
Evaluating the Democratization of the Turkish Armed Forces from a Normative P...
MCN 401 KTU-2019-PPE KITS-MODULE 2.pptx
Well-logging-methods_new................
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
CARTOGRAPHY AND GEOINFORMATION VISUALIZATION chapter1 NPTE (2).pptx
UNIT 4 Total Quality Management .pptx
Welding lecture in detail for understanding
ASol_English-Language-Literature-Set-1-27-02-2023-converted.docx
Mechanical Engineering MATERIALS Selection
Internet of Things (IOT) - A guide to understanding
composite construction of structures.pdf
UNIT-1 - COAL BASED THERMAL POWER PLANTS
web development for engineering and engineering
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf
PPT on Performance Review to get promotions
Foundation to blockchain - A guide to Blockchain Tech

Back face detection

  • 1. Prof. Neeraj Bhargava Pooja Dixit Department of Computer Science School of Engineering & System Sciences MDS, University Ajmer, Rajasthan, India 1
  • 2.  When we project 3-D objects on a 2-D screen, we need to detect the faces that are hidden on 2D.  Back-Face detection, also known as Plane Equation method, is an object space method in which objects and parts of objects are compared to find out the visible surfaces.  Let us consider a triangular surface that whose visibility needs to decided. The idea is to check if the triangle will be facing away from the viewer or not. If it does so, discard it for the current frame and move onto the next one.  Each surface has a normal vector. If this normal vector is pointing in the direction of the center of projection, then it is a front face and can be seen by the viewer. If this normal vector is pointing away from the center of projection, then it is a back face and can not be seen by the viewer.  A fast and simple object-space method for locating back faces  A point (x,y,z) is “inside” a polygon surface with plane parameters A, B, C, D if : Ax + By + Cz + D < 0  When an inside point is along the line of sight to the surface, the polygon must be a back face and so cannot be seen. 2
  • 3.  The test is simplified by considering the normal vector N to the polygon and the viewing vector V  This is back face if V · N > 0  A polygon is a back face if Vview.N > 0. But it should be kept in mind that after application of the viewing transformation, viewer is looking down the negative Z-axis. Therefore, a polygon is back face if :  (0, 0, -1).N > 0 or if C < 0 3
  • 4.  In a right-handed viewing system with viewing direction along the negative Zvaxis, the polygon is a back face if C < 0. Also, we cannot see any face whose normal has z component C = 0, since your viewing direction is towards that polygon. Thus, in general, we can label any polygon as a back face if its normal vector has a z component value −  C <= 0  Algorithm for right-handed system : 1) Compute N for every face of object. 2) If (C.(Z component) < 0) then a back face and don't draw else front face and draw Thus, for the right-handed system, if the Z component of the normal vector is negative, then it is a back face. If the Z component of the vector is positive, then it is a front face. 4
  • 5.  Similar methods can be used in packages that employ a left-handed viewing system. In these packages, plane parameters A, B, C and D can be calculated from polygon vertex coordinates specified in a clockwise direction (unlike the counterclockwise direction used in a right-handed system).  Also, back faces have normal vectors that point away from the viewing position and are identified by C >= 0 when the viewing direction is along the positive Zv  axis. By examining parameter C for the different planes defining an object, we can immediately identify all the back faces.  the Algorithm for left-handed system : 1) Compute N for every face of object. 2) If (C.(Z component) > 0) then a back face and don't draw Else front face and draw The Back-face detection method is very simple. For the left-handed system, if the Z component of the normal vector is positive, then it is a back face. If the Z component of the vector is negative, then it is a front face. 5
  • 6. 6 Limitations : 1) This method works fine for convex polyhedra, but not necessarily for concave polyhedra. 2) This method can only be used on solid objects modeled as a polygon mesh.