|
![](/i/fill.gif) |
Warp wrote:
>
> Tim Nikias <tim### [at] gmx de> wrote:
> > smooth_triangle{
> > Corner_1, Normal_1, Corner_2,Normal_2, Corner_3,Normal_3
> > }
>
> That does not do Gouraud shading.
In the Gouraud model in each vertex of all triangles a normal is
defined. Using this normals the light intensity in the vertices is
determined and the light intensity in each point of a triangle is an
interpolation of the light intensities in the vertices. The Gouraud
model uses an interpolation of LIGHT INTENSITIES.
In the Phong model (smooth triangles) in each vertex of all triangles a
normal is defined. Using this normals the normal in eacht point of a
triangle is an interpolation of the normals in the vertices. The Phong
model (smooth triangles) uses an interpolation of NORMALS. This model is
better adopted to handle reflection, etc...
>
> --
> #macro N(D)#if(D>99)cylinder{M()#local D=div(D,104);M().5,2pigment{rgb M()}}
> N(D)#end#end#macro M()<mod(D,13)-6mod(div(D,13)8)-3,10>#end blob{
> N(11117333955)N(4254934330)N(3900569407)N(7382340)N(3358)N(970)}// - Warp -
--
Herman Serras
Gent (Belgium)
http://cage.rug.ac.be/~hs/
Post a reply to this message
|
![](/i/fill.gif) |