POV-Ray : Newsgroups : povray.advanced-users : Gouraud Shading??? : Re: Gouraud Shading??? Server Time
29 Jul 2024 08:24:04 EDT (-0400)
  Re: Gouraud Shading???  
From: Herman Serras
Date: 31 Aug 2002 07:42:45
Message: <3D70ABDD.38ED44F4@pandora.be>
Warp wrote:
> 
> Tim Nikias <tim### [at] gmxde> 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

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.