POV-Ray : Newsgroups : povray.advanced-users : Cartoon Shading Server Time
1 Nov 2024 13:19:43 EDT (-0400)
  Cartoon Shading (Message 1 to 5 of 5)  
From: Chris Becker
Subject: Cartoon Shading
Date: 10 Mar 2002 13:27:13
Message: <3c8ba581$1@news.povray.org>
Does anyone know how to do cartoon shading in POV-Ray? For example, make an
object either 1 color in the light and another in a shadow but also to have
the black lines surrounding the siloute of the object?


Post a reply to this message

From: Warp
Subject: Re: Cartoon Shading
Date: 10 Mar 2002 13:32:29
Message: <3c8ba6bc@news.povray.org>
MegaPov supports this (though it's based in POV 3.1).

http://nathan.kopp.com/patched.htm

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

From: Chris Becker
Subject: Re: Cartoon Shading
Date: 10 Mar 2002 13:36:52
Message: <3c8ba7c4$1@news.povray.org>
I looked in the features, which one is it?

I'd like to do it in POV-Ray 3.5. I've been able to get the the colors to
look right with some tricks with color_map and the slope modifier but I
can't get the black line siloute.

"Warp" <war### [at] tagpovrayorg> wrote in message
news:3c8ba6bc@news.povray.org...
>   MegaPov supports this (though it's based in POV 3.1).
>
> http://nathan.kopp.com/patched.htm
>
> --
> #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

From: Jan Walzer
Subject: Re: Cartoon Shading
Date: 10 Mar 2002 16:59:30
Message: <3c8bd742$1@news.povray.org>
you can do the "two-color shading" when setting brilliance to 0

for the outline, you'd have to use a PP-Filter of MegaPov ...


Post a reply to this message

From: Warp
Subject: Re: Cartoon Shading
Date: 10 Mar 2002 17:00:06
Message: <3c8bd766@news.povray.org>
Chris Becker <cmb### [at] ritedu> wrote:
> I looked in the features, which one is it?

  Look at the post-processing section of the help file.

> I'd like to do it in POV-Ray 3.5.

  Very difficult.

-- 
#macro M(A,N,D,L)plane{-z,-9pigment{mandel L*9translate N color_map{[0rgb x]
[1rgb 9]}scale<D,D*3D>*1e3}rotate y*A*8}#end M(-3<1.206434.28623>70,7)M(
-1<.7438.1795>1,20)M(1<.77595.13699>30,20)M(3<.75923.07145>80,99)// - Warp -


Post a reply to this message

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