POV-Ray : Newsgroups : povray.advanced-users : Adding toon-style outlines to objects Server Time
28 Jul 2024 18:24:45 EDT (-0400)
  Adding toon-style outlines to objects (Message 1 to 3 of 3)  
From: Klemen
Subject: Adding toon-style outlines to objects
Date: 26 Feb 2004 11:17:16
Message: <403e1c0c@news.povray.org>
Hello,

An idea popped into my head about implementing a simple toon shader in
POV-Ray (actually, just outlining the object in the scene with a black
outline).

What I was trying to do was the same thing scanline renderers do when trying
to fake this effect - take an object, translate the vertices along the
normals a bit, then apply a black diffuse- and specularless texture to it.
This makes only the interior (or backside) of the object visible and
transparent while looking at it square-on.

So I thought I'd write up a simple scene, containing an outlined sphere,
using something like this:

[...]
sphere {0, 1
    texture {pigment {color red 1}}
}

sphere {0, 1.05
    texture {pigment {color rgbt 1}}
    interior_texture {pigment {color rgb 0}}
    no_shadow
}
[...]

Intiutively, this means that the front side of the outer hull would be
totally transparent while the interior would be completely black. The only
problem is, when i added a pure white background, the radiosity calculation
skipped the whole of the inner sphere when calculating ambient lighting -
resulting in the very same rendering as without radiosity.

Anyone know how to modify the textures in this scene to make radiosity work?
I tried raising the recursion_limit, but i guess it only handles reflections
and doesn't take transmitted rays into account.

    Thanks,

    -Klemen


Post a reply to this message

From: Tim Nikias v2 0
Subject: Re: Adding toon-style outlines to objects
Date: 26 Feb 2004 12:01:15
Message: <403e265b@news.povray.org>
> Anyone know how to modify the textures in this scene to make radiosity
work?
> I tried raising the recursion_limit, but i guess it only handles
reflections
> and doesn't take transmitted rays into account.

You could try and generate the radiosity data without the outlines, then
load the data but use the outlines. That way, radiosity ignores the
outlines. I'm not quiet sure if it'll work flawless though.

Regards,
Tim

-- 
"Tim Nikias v2.0"
Homepage: <http://www.nolights.de>
Email: tim.nikias (@) nolights.de


Post a reply to this message

From: Klemen
Subject: Re: Adding toon-style outlines to objects
Date: 27 Feb 2004 03:37:33
Message: <403f01cd$1@news.povray.org>
"Tim Nikias v2.0" <tim.nikias (@) nolights.de> wrote
> You could try and generate the radiosity data without the outlines, then
> load the data but use the outlines. That way, radiosity ignores the
> outlines. I'm not quiet sure if it'll work flawless though.

Hm... never really thought of reusing radiosity data. I'll give it a shot,
thanks.

    -Klemen


Post a reply to this message

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