http://wiki.polycount.com/w/index.php?title=Phong&feed=atom&action=historyPhong - Revision history2024-03-29T08:21:24ZRevision history for this page on the wikiMediaWiki 1.23.2http://wiki.polycount.com/w/index.php?title=Phong&diff=5399&oldid=prevCman2k at 08:54, 26 November 20142014-11-26T08:54:11Z<p></p>
<table class='diff diff-contentalign-left'>
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr style='vertical-align: top;'>
<td colspan='2' style="background-color: white; color:black; text-align: center;">← Older revision</td>
<td colspan='2' style="background-color: white; color:black; text-align: center;">Revision as of 08:54, 26 November 2014</td>
</tr><tr><td colspan="2" class="diff-lineno">Line 1:</td>
<td colspan="2" class="diff-lineno">Line 1:</td></tr>
<tr><td class='diff-marker'>−</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del class="diffchange diffchange-inline">__NOTOC__</del></div></td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>= Phong Shading =</div></td></tr>
<tr><td class='diff-marker'>−</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del class="diffchange diffchange-inline">{{:[[OutOfDate]]}}</del></div></td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div></div></td></tr>
<tr><td class='diff-marker'>−</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div> </div></td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div></div></td></tr>
<tr><td class='diff-marker'>−</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del class="diffchange diffchange-inline">= Phong =</del></div></td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div></div></td></tr>
<tr><td class='diff-marker'>−</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div> </div></td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div></div></td></tr>
<tr><td class='diff-marker'>−</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del class="diffchange diffchange-inline">=</del>= Phong Shading =<del class="diffchange diffchange-inline">=</del></div></td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div></div></td></tr>
<tr><td class='diff-marker'>−</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div> </div></td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>A method of [[Shading|shading]] that applies the Phong lighting model not to every [[Polygon|polygon]], but to every [[Pixel|pixel]] of every polygon. Even SGI's Reality Engine can't do Phong shading, so unless you're ready to spend a few million dollars on your next game machine (and write all the games yourself), don't expect to see Phong shading anytime soon.</div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>A method of [[Shading|shading]] that applies the Phong lighting model not to every [[Polygon|polygon]], but to every [[Pixel|pixel]] of every polygon. Even SGI's Reality Engine can't do Phong shading, so unless you're ready to spend a few million dollars on your next game machine (and write all the games yourself), don't expect to see Phong shading anytime soon.</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'>−</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del style="font-weight: bold; text-decoration: none;">== Phong Lighting ==</del></div></td><td colspan="2"> </td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">= Phong Lighting =</ins></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>A method of lighting a 3D world, the Phong lighting model applies three different types of lighting to the [[Vertex|vertex]] of every polygon. Phong lighting works by performing operations based on the normal of the polygon, the "normal" being an imaginary line drawn orthogonal (straight up from) the face of the polygon.  </div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>A method of lighting a 3D world, the Phong lighting model applies three different types of lighting to the [[Vertex|vertex]] of every polygon. Phong lighting works by performing operations based on the normal of the polygon, the "normal" being an imaginary line drawn orthogonal (straight up from) the face of the polygon.  </div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>The first of the three lighting types is ambient light - light which is just there because god (in this case the programmer) said it was. It affects every polygon equally.  </div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>The first of the three lighting types is ambient light - light which is just there because god (in this case the programmer) said it was. It affects every polygon equally.  </div></td></tr>
<tr><td colspan="2" class="diff-lineno">Line 18:</td>
<td colspan="2" class="diff-lineno">Line 12:</td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>The Phong lighting model is fairly realistic for games, but fails to account for the fact that in real life, reflections off of steel or other metals change color depending on what angle they're viewed from, while specular highlighting always gives a reflection of the same color. Phong lighting works only on the vertices of a polygon (using Gouraud shading to color the rest of the polygon), so if a highlight happens to fall in the middle of the polygon, it will be missed, which requires programmers to "tessellate" or break-up large polygons into many small ones to be sure of "catching" highlights at vertices. However, Phong lighting is very fast and doesn't require much processor power.</div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>The Phong lighting model is fairly realistic for games, but fails to account for the fact that in real life, reflections off of steel or other metals change color depending on what angle they're viewed from, while specular highlighting always gives a reflection of the same color. Phong lighting works only on the vertices of a polygon (using Gouraud shading to color the rest of the polygon), so if a highlight happens to fall in the middle of the polygon, it will be missed, which requires programmers to "tessellate" or break-up large polygons into many small ones to be sure of "catching" highlights at vertices. However, Phong lighting is very fast and doesn't require much processor power.</div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;"></ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;"></ins></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>----</div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>----</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>[[Category:Glossary]]</div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>[[Category:Glossary]]</div></td></tr>
</table>Cman2khttp://wiki.polycount.com/w/index.php?title=Phong&diff=2794&oldid=prevCheeseplus: 1 revision2014-07-29T08:44:47Z<p>1 revision</p>
<table class='diff diff-contentalign-left'>
<tr style='vertical-align: top;'>
<td colspan='1' style="background-color: white; color:black; text-align: center;">← Older revision</td>
<td colspan='1' style="background-color: white; color:black; text-align: center;">Revision as of 08:44, 29 July 2014</td>
</tr><tr><td colspan='2' style='text-align: center;'><div class="mw-diff-empty">(No difference)</div>
</td></tr></table>Cheeseplushttp://wiki.polycount.com/w/index.php?title=Phong&diff=2793&oldid=prevBrandonPhoenix: ported and combined phong shading and phong lighting2010-08-16T16:08:27Z<p>ported and combined phong shading and phong lighting</p>
<p><b>New page</b></p><div>__NOTOC__<br />
{{:[[OutOfDate]]}}<br />
<br />
= Phong =<br />
<br />
== Phong Shading ==<br />
<br />
A method of [[Shading|shading]] that applies the Phong lighting model not to every [[Polygon|polygon]], but to every [[Pixel|pixel]] of every polygon. Even SGI's Reality Engine can't do Phong shading, so unless you're ready to spend a few million dollars on your next game machine (and write all the games yourself), don't expect to see Phong shading anytime soon.<br />
<br />
== Phong Lighting ==<br />
<br />
A method of lighting a 3D world, the Phong lighting model applies three different types of lighting to the [[Vertex|vertex]] of every polygon. Phong lighting works by performing operations based on the normal of the polygon, the "normal" being an imaginary line drawn orthogonal (straight up from) the face of the polygon. <br />
The first of the three lighting types is ambient light - light which is just there because god (in this case the programmer) said it was. It affects every polygon equally. <br />
<br />
Diffuse lighting is the second type. It assumes that there is no reflection from the objects it is lighting (clay is an example of a nearly perfect diffuse surface), but it does take into consideration the angle that the light hits the surface. If it hits it fully, it will be 100% illuminated, if the object is turned slightly, it will be less illuminated, etc. <br />
<br />
The third aspect is called specular highlighting, which takes into account the angle between the light-source and the "eye" of the viewer, so that if the light bounces off a particular spot on the object straight into the "camera" it will be illuminated 100%, and less so if it misses the camera. <br />
<br />
The Phong lighting model is fairly realistic for games, but fails to account for the fact that in real life, reflections off of steel or other metals change color depending on what angle they're viewed from, while specular highlighting always gives a reflection of the same color. Phong lighting works only on the vertices of a polygon (using Gouraud shading to color the rest of the polygon), so if a highlight happens to fall in the middle of the polygon, it will be missed, which requires programmers to "tessellate" or break-up large polygons into many small ones to be sure of "catching" highlights at vertices. However, Phong lighting is very fast and doesn't require much processor power.<br />
----<br />
[[Category:Glossary]]</div>BrandonPhoenix