πŸŽ“ Computer Science & Engineering Portal

Master Engineering Disciplines with Structured Notes

Comprehensive academic lecture notes, exam-oriented unit summaries, laboratory manuals, and previous year question papers designed strictly for university students.

πŸ“‘

University Syllabi

AKTU & AICTE aligned semester guidelines.

πŸ“

Exam Question Papers

Previous 5 years solved university papers.

πŸ’‘

Lab Manuals & Viva

Practical codes with outputs & interview Qs.

Core Subjects & Units Hub

Click on any specific unit to immediately view its lecture notes below

Viewing All Lectures

Back-Face Detection

It is used to plot only surfaces which will face the camera. The objects on the back side are not visible. This method will remove 50% of polygons from the scene if the parallel projection is used. If the perspective projection is used then more than 50% of the invisible area will be removed. The object is nearer to the center of projection, number of polygons from the back will be removed.

It applies to individual objects. It does not consider the interaction between various objects. Many polygons are obscured by front faces, although they are closer to the viewer, so for removing such faces back face removal algorithm is used.

When the projection is taken, any projector ray from the center of projection through viewing screen to object pieces object at two points, one is visible front surfaces, and another is not visible back surface.

This algorithm acts a preprocessing step for another algorithm. The back face algorithm can be represented geometrically. Each polygon has several vertices. All vertices are numbered in clockwise. The normal M1 is generated a cross product of any two successive edge vectors. M1represent vector perpendicular to face and point outward from polyhedron surface

                          N1=(v2-v1 )(v3-v2)
                          If         N1.Pβ‰₯0 visible
                          N1.P<0 invisible

Advantage
  1. It is a simple and straight forward method.
  2. It reduces the size of databases, because no need of store all surfaces in the database, only the visible surface is stored.

Back Face Removed Algorithm

Repeat for all polygons in the scene.

  1. Do numbering of all polygons in clockwise direction i.e.
                  v1 v2 v3.....vz
  2. Calculate normal vector i.e. N1
                  N1=(v2-v1 )*(v3-v2)
  3. Consider projector P, it is projection from any vertex
                  Calculate dot product
                  Dot=N.P
  4. Test and plot whether the surface is visible or not.
                  If Dot β‰₯ 0 then
                surface is visible
                else
                        Not visible

Labels: ,

Discussion & Queries (<$I18NNumComments$>):

<$CommentPager$>
<$I18NAtCommentTimeWithPermalink$>, <$I18NCommentAuthorSaid$>

<$BlogCommentBody$>

<$BlogCommentDeleteIcon$>
<$CommentPager$>