POV-Ray : Newsgroups : povray.binaries.animations : Gouraud-shading Server Time
2 Nov 2024 05:18:47 EDT (-0400)
  Gouraud-shading (Message 1 to 8 of 8)  
From: Zeger Knaepen
Subject: Gouraud-shading
Date: 11 Sep 2002 20:42:10
Message: <3d7fe2e2@news.povray.org>
an animation.. Might be more interesting, 'cause noone seemed to be interested
in the image :-/

First animation is a gouraud-shaded sphere, second animation is a phong-shaded
sphere (just plain smooth_triangles with ordinary textures, that is)

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


Attachments:
Download 'gouraud.avi.dat' (55 KB) Download 'phong.avi.dat' (49 KB)

From: Ken
Subject: Re: Gouraud-shading
Date: 11 Sep 2002 21:11:43
Message: <3D7FEAC8.E4ADFA3D@pacbell.net>
Zeger Knaepen wrote:

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

-- 
Ken Tyler


Post a reply to this message

From: Zeger Knaepen
Subject: Re: Gouraud-shading
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

From: Hugo
Subject: Re: Gouraud-shading
Date: 12 Sep 2002 10:29:12
Message: <3d80a4b8$1@news.povray.org>
I suppose it's a proof of which algoritm is best. A reponse to the recent
thread in p.general. I suppose you have notified the person who started the
thread.

And I learned that phong is also a kind of "shading".

:o)
Hugo


Post a reply to this message

From: Zeger Knaepen
Subject: Re: Gouraud-shading
Date: 12 Sep 2002 12:21:39
Message: <3d80bf13@news.povray.org>
"Hugo" <hua### [at] post3teledk> schreef in bericht
news:3d80a4b8$1@news.povray.org...
> I suppose it's a proof of which algoritm is best. A reponse to the recent
> thread in p.general. I suppose you have notified the person who started the
> thread.
No I haven't, I don't think it is of much use to her actually :)  She needed
smooth_triangles.

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

From: Remco de Korte
Subject: Re: Gouraud-shading
Date: 12 Sep 2002 16:26:42
Message: <3D80F84D.510111A2@onwijs.com>
I don't really understand why you are doing this, in POVRay that
is? Seems to me more something of interest to demo coders (a
couple of years back).
Or is it just for fun's sake?
I must say that you got it working though, looks exactly like
the effect in old modeX demo's (which is crappy compared to the
radiosity & photon enhanced images we get here but was quite
stunning in the real time animated demos).

Remco


Post a reply to this message

From: Zeger Knaepen
Subject: Re: Gouraud-shading
Date: 12 Sep 2002 19:48:29
Message: <3d8127cd@news.povray.org>
> I don't really understand why you are doing this, in POVRay that
> is? Seems to me more something of interest to demo coders (a
> couple of years back).
> Or is it just for fun's sake?
just for fun indeed.

> I must say that you got it working though, looks exactly like
> the effect in old modeX demo's (which is crappy compared to the
> radiosity & photon enhanced images we get here but was quite
> stunning in the real time animated demos).
Like I said: it wasn't my intention to create a good looking effect, just a
useless but interesting (at least, I thought so) effect.

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

From: Greg M  Johnson
Subject: Re: Gouraud-shading
Date: 16 Sep 2002 09:15:47
Message: <3d85d983$1@news.povray.org>
I couldn't see it.


Post a reply to this message

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