POV-Ray : Newsgroups : povray.binaries.animations : Gouraud-shading : Re: Gouraud-shading Server Time
2 Nov 2024 03:16:27 EDT (-0400)
  Re: Gouraud-shading  
From: Zeger Knaepen
Date: 12 Sep 2002 06:44:02
Message: <3d806ff2@news.povray.org>
> > First animation is a gouraud-shaded sphere, second animation is a
phong-shaded
> > sphere (just plain smooth_triangles with ordinary textures, that is)
> I prefer the phong shading.
hmm, you probably do.. That's what phong is all about :)
But it wasn't meant to look better than the phong-shaded version, it was just
meant as a special effect.

I thought it would be interesting to simulate gouraud-shading in POV-Ray...
Useless, but interesting...

cu!
--
camera{location-z*3}#macro G(b,e)b+(e-b)*(C/50)#end#macro L(b,e,k,l)#local C=0
;#while(C<50)sphere{G(b,e),.1pigment{rgb G(k,l)}finish{ambient 1}}#local C=C+1
;#end#end L(y-x,y,x,x+y)L(y,-x-y,x+y,y)L(-x-y,-y,y,y+z)L(-y,y,y+z,x+y)L(0,x+y,
<.5,1,.5>,x)L(0,x-y,<.5,1,.5>,x)               // ZK http://www.povplace.be.tf


Post a reply to this message

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