POV-Ray : Newsgroups : povray.binaries.images : Cell Shader: my try Server Time
16 Aug 2024 04:12:49 EDT (-0400)
  Cell Shader: my try (Message 15 to 24 of 34)  
<<< Previous 10 Messages Goto Latest 10 Messages Next 10 Messages >>>
From: Zeger Knaepen
Subject: Re: Cell Shader: my try
Date: 25 Apr 2002 09:28:33
Message: <3cc80481@news.povray.org>
> > nope, POVMan shader-functions.  But I think I can make a similar image
without a
> > shader...  Let's try it :)
> where is contour in inner hole in torus ?
dunno :)

This technique isn't very useful anyway.  It works with "shell-objects", so it's
way too much work for real scenes.

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: Wolfgang Manousek
Subject: Re: Cell Shader: my try
Date: 25 Apr 2002 12:31:45
Message: <3cc82f71@news.povray.org>
Thanks

and


NICE !!!
 (really - doesn't look like computer generated at all ... and that is the
whole point I guess)

--
This posting is provided "AS IS" with no warranties, and confers no rights.


Wolfgang

"Zeger Knaepen" <zeg### [at] studentkuleuvenacbe> wrote in message
news:3cc7f5f9@news.povray.org...
> > well - nice ..
> doesn't sound very enthousiastic, but tnx! :)
>
> > can someone point me to a description of the term cell-shader?
> Hmmm, I just tried to copy the effect Kevin seemed to be trying to get.
As I
> understand it, a cell-shader is supposed to make 3D-objects look like
drawings.
>
> 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: Andrew
Subject: Re: Cell Shader: my try
Date: 25 Apr 2002 14:22:51
Message: <3cc8497b@news.povray.org>
I_think_that_the_effect_should_be_called_"cel_shading",
as_it_emulates_traditional_cel_animation_(ie_cartoons).
Cel_is_of_course_short_for_celluloid,_the_medium_on
which_"normal"_animation_is_drawn.

(Underscores_courtesy_of_my_clumsy_friend_who_spilt
beer_on_the_keyboard_at_the_weekend,_rendering_the
space_bar_useless...)

"Wolfgang Manousek" <wol### [at] hotmailcom> wrote in message
news:3cc7aa18@news.povray.org...
> well - nice ..
>
> can someone point me to a description of the term cell-shader?
>
> thx
> Wolfgang
> "Zeger Knaepen" <zeg### [at] studentkuleuvenacbe> wrote in
message
> news:3cc7709d@news.povray.org...
> > Sometimes I wonder why I'm always copying other people's work...
> > Maybe because I don't need inspiration for that, and inspiration is
> exactly what
> > I don't have these days...
> >
> > Anyway, this is my version of the cell-shader.  It works with
> > perspective-cameras.
> >
> > Comments welcome, as always :)
> >
> > 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: Zeger Knaepen
Subject: Re: Cell Shader: my try
Date: 25 Apr 2002 14:27:06
Message: <3cc84a7a$1@news.povray.org>
"Andrew" <ast### [at] hotmailcom> schreef in bericht
news:3cc8497b@news.povray.org...
> I_think_that_the_effect_should_be_called_"cel_shading",
> as_it_emulates_traditional_cel_animation_(ie_cartoons).
> Cel_is_of_course_short_for_celluloid,_the_medium_on
> which_"normal"_animation_is_drawn.
Hmmm, I think you're right.  But I just copied Kevin's subject :)

> (Underscores_courtesy_of_my_clumsy_friend_who_spilt
> beer_on_the_keyboard_at_the_weekend,_rendering_the
> space_bar_useless...)
LOL!! :)
you could have used alt+32 instead of typing underscores :)

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: Tim Riley
Subject: Re: Cell Shader: my try
Date: 25 Apr 2002 17:24:36
Message: <3CC87415.8641FD9A@its.bldrdoc.gov>
Wolfgang Manousek wrote:
> can someone point me to a description of the term cell-shader?

It should be spelled "cel-shader." It refers to a "cel" that is
used in cartoon animation.

From http://www.legacy-animation.com:

"A cel, derived from the word "celluloid", is the transparent
material on which a cartoon character is painted."


Post a reply to this message

From: Kevin Loney
Subject: Re: Cell Shader: my try
Date: 25 Apr 2002 18:10:50
Message: <3cc87eea$1@news.povray.org>
Ahh, but that's the beauty of mine is it works in 3.5 and is all done with
procedurals (hence the orthographic camera)

--
Kevin
http://www.geocities.com/qsquared_1999/
#macro _(r)#if(r<12)#local
i=asc(substr("oqshilacefg",r,1))-97;disc{<mod(i,7)-3,div(i,7)-1,6>,z,.4pigme
nt{rgb 10}}_(r+1)#end#end _(1)//KL


Post a reply to this message

From: Zeger Knaepen
Subject: Re: Cell Shader: my try
Date: 25 Apr 2002 19:29:37
Message: <3cc89161$1@news.povray.org>
> Ahh, but that's the beauty of mine is it works in 3.5 and is all done with
> procedurals (hence the orthographic camera)
slope_maps to detect the edges?

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: Anton Sherwood
Subject: Re: Cell Shader: my try
Date: 26 Apr 2002 05:24:27
Message: <3CC91CC6.1FF49CB2@pobox.com>
Slime wrote:
> So, how do these work? Are they functions that take the
> cross product of the normal with the vector from the camera?

The dot product would be cheaper and more appropriate.

-- 
Anton Sherwood, http://www.ogre.nu/


Post a reply to this message

From: Kevin Loney
Subject: Re: Cell Shader: my try
Date: 26 Apr 2002 19:36:22
Message: <3cc9e476$1@news.povray.org>
whats the difference between slope_map and slope pattern?

--
Kevin
http://www.geocities.com/qsquared_1999/
#macro _(r)#if(r<12)#local
i=asc(substr("oqshilacefg",r,1))-97;disc{<mod(i,7)-3,div(i,7)-1,6>,z,.4pigme
nt{rgb 10}}_(r+1)#end#end _(1)//KL


Post a reply to this message

From: TinCanMan
Subject: Re: Cell Shader: my try
Date: 26 Apr 2002 19:49:38
Message: <3cc9e792$1@news.povray.org>
> whats the difference between slope_map and slope pattern?

slope_map is for normals, it maps the apparent slope of the surface normals.

slope pattern is a pattern that is dependent on the slope of the surface of
the object applied to.


-tgq


Post a reply to this message

<<< Previous 10 Messages Goto Latest 10 Messages Next 10 Messages >>>

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