Phong Shading Computer Graphics Last Updated : 11 Apr, 2023 Summarize Comments Improve Suggest changes Share Like Article Like Report Phong shading is a more accurate interpolation-based approach that can be used for rendering a polygon. It was developed by Phong Bui Tuong.It improves upon the Gourand Shading and provides a better approximation of the shading of any smooth surface. It interpolates the normal vector instead of the intensity values. Surface rendering is done with the help of Phong shading in the following manner: Determine the average unit normal vector at each polygon vertex. So, for n polygons => summation of Ni/ | summation of Ni | (where i is initialized from 1 to N) Linearly interpolate the vertex normal over the surfaces of the polygon. N= (y-y2)/(y1-y2) N1 + (y1-y)/(y1-y2) N2Interpolation of the surface normal By applying the illumination model along each scan we have to determine the projected pixel intensities of the surface points.Advantages:Some dark and bright intensity streaks known as mach bands appear on the surface due to the linear intensity interpolation, this method reduces the mach band effects and displays more realistic highlights.It is more accurate as compared to the Gourand Shading.Disadvantages:It is slower as compared to the Gourand Shading.It requires more calculation, hence it increases the cost of shading at each successive step. Comment More infoAdvertise with us Next Article Phong Shading Computer Graphics S sakshambhalla22 Follow Improve Article Tags : Computer Graphics computer-graphics Computer Graphics Basics Computer Graphics Surface-Rendering Methods Similar Reads Digital Image Processing Basics Digital Image Processing means processing digital image by means of a digital computer. We can also say that it is a use of computer algorithms, in order to get enhanced image either to extract some useful information. Digital image processing is the use of algorithms and mathematical models to proc 7 min read DDA Line generation Algorithm in Computer Graphics Introduction : DDA (Digital Differential Analyzer) is a line drawing algorithm used in computer graphics to generate a line segment between two specified endpoints. It is a simple and efficient algorithm that works by using the incremental difference between the x-coordinates and y-coordinates of th 12 min read Introduction to Computer Graphics The term 'Computer Graphics' was coined by Verne Hudson and William Fetter from Boeing who were pioneers in the field. Computer graphics is a dynamic and essential field within computing that involves the creation, manipulation, and rendering of visual content using computers.In today's digital era, 5 min read Bresenhamâs Line Generation Algorithm Given the coordinate of two points A(x1, y1) and B(x2, y2). The task is to find all the intermediate points required for drawing line AB on the computer screen of pixels. Note that every pixel has integer coordinates. Examples: Input : A(0,0), B(4,4)Output : (0,0), (1,1), (2,2), (3,3), (4,4) Input : 14 min read Line Clipping | Set 1 (CohenâSutherland Algorithm) Description:- In this algorithm, we are given 9 regions on the screen. Out of which one region is of the window and the rest 8 regions are around it given by 4 digit binary.  The division of the regions are based on (x_max, y_max) and (x_min, y_min). The central part is the viewing region or window, 15+ min read Projections in Computer Graphics Representing an n-dimensional object into an n-1 dimension is known as projection. It is process of converting a 3D object into 2D object, we represent a 3D object on a 2D plane {(x,y,z)->(x,y)}. It is also defined as mapping or transforming of the object in projection plane or view plane. When g 5 min read Difference between Raster Scan and Random Scan Raster Scan associates degreed, random scan square measure the mechanisms employed in displays for rendering the image or picture. The most distinction between formation scan and random scan lies within the drawing of an image wherever the formation scan points the nonparticulate radiation at the wh 2 min read Window to Viewport Transformation in Computer Graphics with Implementation Window to Viewport Transformation is the process of transforming 2D world-coordinate objects to device coordinates. Objects inside the world or clipping window are mapped to the viewport which is the area on the screen where world coordinates are mapped to be displayed. General Terms: World coordina 8 min read Bresenhamâs circle drawing algorithm It is not easy to display a continuous smooth arc on the computer screen as our computer screen is made of pixels organized in matrix form. So, to draw a circle on a computer screen we should always choose the nearest pixels from a printed pixel so as they could form an arc. There are two algorithm 4 min read Spatial Filtering and its Types Spatial Filtering technique is used directly on pixels of an image. Mask is usually considered to be added in size so that it has specific center pixel. This mask is moved on the image such that the center of the mask traverses all image pixels. Classification on the basis of Linearity There are two 3 min read Like