POV-Ray : Newsgroups : povray.general : Gouraud Shading??? : Re: Gouraud Shading??? Server Time
5 Aug 2024 14:12:43 EDT (-0400)
  Re: Gouraud Shading???  
From: Warp
Date: 31 Aug 2002 07:19:48
Message: <3d70a654@news.povray.org>
annelize <ann### [at] tiscalidk> wrote:
> I just started learning Pov-Ray. I'm trying to add different shading to my
> objects. Is there anyway I can create a Gouraud Shading??

  As it has been noted, Gouraud shading is something exclusive to polygons,
and mainly developed for scanline rendering. The idea is that for scanline
rendering it's cheaper to do Gouraud shading than Phong shading. However,
the results look a lot worse (specially at polygons which should have a
highlight). I don't see any reason for use this lighting model (even, if
you wanted to use it with meshes) because the result is not nice and Phong
works a lot better.

-- 
#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 -


Post a reply to this message

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