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