POV-Ray : Newsgroups : povray.binaries.images : Three povray approximations of cartoon shading technique Server Time
20 Nov 2024 06:46:40 EST (-0500)
  Three povray approximations of cartoon shading technique (Message 1 to 1 of 1)  
From: Greg M  Johnson
Subject: Three povray approximations of cartoon shading technique
Date: 23 Jun 2003 13:05:16
Message: <3ef7334c$1@news.povray.org>
Same blob character, just with different lighting and textures.

The example on the right uses very high specular and IMHO has the most
promise,  althought its effect is  limited to colors of rgb <a,b,c> where
a,b,c are either 1 or 0.  If there were perhaps a patch that changed  the
color sensitivity of the specular  keyword.



//  LEFT: -----------------------------

#declare your_texture=texture{
        pigment {  slope {-body_position+camera_location }
                pigment_map{
                        [0.65 rgb 0]
                        [0.65 rgb <0.8,.3,.1>]                        }
        }
        finish{diffuse 0 ambient 1}
        }


// MIDDLE: ----------------

#declare your_texture=texture{
        pigment{rgb 1}
        finish{ phong 1 phong_size 0}
        }
#declare bodyLight = light_source { camera_location rgb <0.8,.3,.1>*1}

light_group{
        light_source{bodyLight}
        object{defeined_blob_object      translate body_position}
        }
// similar treatment for eyes, etc.

//  RIGHT  ---------------------------

#declare your_texture=texture{
        pigment{rgb 0}
        finish{specular 1e7}
        }
#declare bodyLight = light_source { camera_location  rgb <0*0.8,.3,.1>*1}

light_group{
        light_source{bodyLight}
        object{defeined_blob_object      translate body_position}
        }
// similar treatment for eyes, etc.


Post a reply to this message


Attachments:
Download 'cartshower05.jpg' (50 KB)

Preview of image 'cartshower05.jpg'
cartshower05.jpg


 

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