POV-Ray : Newsgroups : povray.binaries.images : Nice toonstyle in Megapov : Nice toonstyle in Megapov Server Time
1 Aug 2024 06:19:23 EDT (-0400)
  Nice toonstyle in Megapov  
From: H  Karsten
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


 

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