|
|
|
|
|
|
| |
| |
|
|
|
|
| |
| |
|
|
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)
|
|
| |
| |
|
|
|
|
| |
| |
|
|
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
|
|
| |
| |
|
|
|
|
| |
| |
|
|
> > 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
|
|
| |
| |
|
|
|
|
| |
| |
|
|
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
|
|
| |
| |
|
|
|
|
| |
| |
|
|
"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
|
|
| |
| |
|
|
|
|
| |
| |
|
|
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
|
|
| |
| |
|
|
|
|
| |
| |
|
|
> 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
|
|
| |
| |
|
|
|
|
| |
| |
|
|
I couldn't see it.
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
|
|