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