POV-Ray : Newsgroups : povray.binaries.images : Nice toonstyle in Megapov Server Time
1 Aug 2024 08:22:20 EDT (-0400)
  Nice toonstyle in Megapov (Message 1 to 4 of 4)  
From: H  Karsten
Subject: Nice toonstyle in Megapov
Date: 10 Nov 2008 14:30:01
Message: <web.49188b19fd2a694020776f0@news.povray.org>
Hi people,
I found a way to get a nice way for a toon style with the projection-map in
megapov.
You can use it as an occlusion-shader also.

Play with this:

#version unofficial MegaPov 1.21;

camera {
  location  <0.0, 2.0, -3.0>
  look_at   <0.0, 0.0,  0.0>
  right     x*image_width/image_height
}

background{color rgb 1}

#declare Exposure=10;
#declare Exposure_Gain=1.0;

global_settings {
  tone_mapping {
    function { Exposure_Gain - exp( -Exposure * x ) * Exposure_Gain }
  }
}

#declare Scene=union{
sphere{0,1}
plane{-y,1}
plane{x,1}
plane{z,1}
}
#declare Samples=0; //toon
//#declare Samples=1000; //occlusion
#declare Blur=1;
#declare Min=0;

#declare Material=material{
texture{
pigment {
projection {Scene
normal on
blur Blur,Samples}color_map {[0 rgb 1][1 rgb Min]}}
finish{ambient 1}
}}


object{Scene material{Material}}


Watch the animation:
web.491889e0fd2a694020776f0@news.povray.org


Post a reply to this message


Attachments:
Download 'toon_still.png' (99 KB)

Preview of image 'toon_still.png'
toon_still.png


 

From: Zeger Knaepen
Subject: Re: Nice toonstyle in Megapov
Date: 10 Nov 2008 16:05:36
Message: <4918a220$1@news.povray.org>
without reading the text, how is the result different from texture {pigment 
{rgb 1}finish {ambient 0 diffuse 1 brilliance 0}} ?

cu!
-- 
#macro G(b,e)b+(e-b)*C/50#end#macro _(b,e,k,l)#local C=0;#while(C<50)
sphere{G(b,e)+3*z.1pigment{rgb G(k,l)}finish{ambient 1}}#local C=C+1;
#end#end _(y-x,y,x,x+y)_(y,-x-y,x+y,y)_(-x-y,-y,y,y+z)_(-y,y,y+z,x+y)
_(0x+y.5+y/2x)_(0x-y.5+y/2x)            // ZK http://www.povplace.com


Post a reply to this message

From: H  Karsten
Subject: Re: Nice toonstyle in Megapov
Date: 11 Nov 2008 09:40:00
Message: <web.491998c97b7e3bc20776f0@news.povray.org>
The shadows comes from the normals, not from the lightsource.


Post a reply to this message

From: William Tracy
Subject: Re: Nice toonstyle in Megapov
Date: 17 Nov 2008 12:34:11
Message: <4921ab13$1@news.povray.org>
Really nifty.

Does it work if you choose colours (my spell-checker seems to be stuck 
on British English today) other than pure black and white, or does 
Povray's shading start to interfere then?

-- 
William Tracy
afi### [at] gmailcom -- wtr### [at] calpolyedu


Post a reply to this message

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