POV-Ray : Newsgroups : povray.text.scene-files : Re: test for outline (25 kbu) Server Time
23 Dec 2024 11:09:56 EST (-0500)
  Re: test for outline (25 kbu) (Message 1 to 1 of 1)  
From: Wlodzimierz ABX Skiba
Subject: Re: test for outline (25 kbu)
Date: 4 Jan 2001 12:36:21
Message: <3a54b495@news.povray.org>
Wlodzimierz ABX Skiba wrote in message <3a54ae0b@news.povray.org>...
>#macro Outline( Object , Outside , Outline, Inside , Z , N , B , W )

changing sources in news reader is not the best method :-(

here is proper version:

#macro Pigment_Outline( Object , Outside , Outline, Inside , Z , N , B , W )
  #local F1=function{pigment{proximity{Object,1 samples N sample_bailout B
max_density W*0.51 type 1 method 3 sides 2}}}
  #local F2=function{pigment{object{Object color 0 color 1}}}
  #local F3=function{if(F1(x,y,z)-(W/2),if(F2(x,y,z)-0.5,1,0),0.5)}
  pigment{ function{ F3(x,y,Z) } color_map {[0 Outside][0.5 Outline][1
Inside]} }
#end

ABX


Post a reply to this message

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