POV-Ray : Newsgroups : povray.binaries.images : Antialias problem with PP_Find_Edges - sourcecode Server Time
29 Mar 2024 10:34:25 EDT (-0400)
  Antialias problem with PP_Find_Edges - sourcecode (Message 1 to 1 of 1)  
From: JSR
Subject: Antialias problem with PP_Find_Edges - sourcecode
Date: 12 Feb 2007 04:20:01
Message: <web.45d03135678903fad8ef73430@news.povray.org>
The sourcecode:

//***********************
//Toon Shader like Effect
//***********************

#version unofficial megapov 1.21;

#include "pprocess.inc"

#declare Depth_Thresh=5000;
#declare Normal_Thresh=0.05;
#declare Color_Thresh=1;
#declare Line_Radius=2.0;
#declare Sharpness=0.5;
#declare Pigment=pigment{rgb 0};

//--- GLOBALS ---
global_settings {

  post_process{

PP_Find_Edges(Depth_Thresh,Normal_Thresh,Color_Thresh,Line_Radius,Sharpness,Pigment)
    save_file concat("pp_",output_filename(0))
  }

  ambient_light 1.0
  assumed_gamma 2.2
  exposure 1.6
  max_trace_level 10
}

//--- SKY ---
sky_sphere
{
  pigment { color rgb <0.45, 0.75, 0.94> }
}

//--- CAMERA ---
camera
{
  location <2207.39,2140.91,5625.02>
  look_at <0,0,0>
  direction <0,0,-1>
  sky <0,1,0>
  up <0,1,0>
  right <400/300,0,0>
  angle 45
}

background { rgb 0.0 }

//--- LIGHT ---
light_source
{
  <-2000,4000,3000>
  color <1.00,1.00,1.00> * 3.00
  //fade_power 2 fade_distance 2000
 }

//--- FLOOR ---
plane {
  y, -1.0
  hollow on
  pigment { color rgb <0.91,0.85,0.73> }
  finish { ambient 0.5 diffuse 0.5 }
}

//--- BOX ---
box {
  <-1000, -1000, -1000> < 1000, 1000, 1000>
  pigment{color rgb <0.2,0.3,0.8>}
  finish{ambient 0.5 diffuse 0.5}
}

//---------------------------------------------------

Joel.


Post a reply to this message

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