POV-Ray : Newsgroups : povray.binaries.scene-files : Crevice Grime Macro Server Time: 25 Apr 2014 04:58:28 GMT
  Crevice Grime Macro (Message 1 to 4 of 4)  
From: Trevor G Quayle
Subject: Crevice Grime Macro
Date: 28 Mar 2011 20:05:00
Message: <web.4d90e91bfde4d4e381c811d20@news.povray.org>
Here is the crevice grime (and edge detect) macro I have been working on.  I
ahve also included a sample scene.  I tried to document it and clean it up
somewhat.  Feel free to try it out and modify.  Please post any results or
problems.

-tgq


Post a reply to this message


Attachments:
Download 'crevice.inc.txt' (11 KB)

From: Trevor G Quayle
Subject: Re: Crevice Grime Macro
Date: 28 Mar 2011 20:10:00
Message: <web.4d90ea6ab2dc5cad81c811d20@news.povray.org>
"Trevor G Quayle" <TinCanMan_2000 [at] hotmailcom> wrote:
> Here is the crevice grime (and edge detect) macro I have been working on.  I
> ahve also included a sample scene.  I tried to document it and clean it up
> somewhat.  Feel free to try it out and modify.  Please post any results or
> problems.
>
> -tgq

Sample scene of image in p.b.i

-tgq


Post a reply to this message


Attachments:
Download 'creviceexample.pov.txt' (3 KB)

From: Trevor G Quayle
Subject: Re: Crevice Grime Macro
Date: 29 Mar 2011 12:50:01
Message: <web.4d91d48bb2dc5cad81c811d20@news.povray.org>
"Trevor G Quayle" <TinCanMan_2000 [at] hotmailcom> wrote:
> Here is the crevice grime (and edge detect) macro I have been working on.  I
> ahve also included a sample scene.  I tried to document it and clean it up
> somewhat.  Feel free to try it out and modify.  Please post any results or
> problems.
>
> -tgq

A slight modification to the macro.  I removed the function wrapper from inside
so it should be used outside now:

pigment{
  function{Crevice(,,,,,,,,)}
  colour_map{...}
}

This allows the convenience of manipulating it with other functions:

#declare Func2=function{pattern{bozo}}

pigment{
  function{Crevice(,,,,,,,,)*Func2(x,y,z)}
  colour_map{...}
}



-tgq


Post a reply to this message


Attachments:
Download 'crevice.inc.txt' (11 KB)

From: Trevor G Quayle
Subject: Re: Crevice Grime Macro
Date: 30 Mar 2011 12:55:01
Message: <web.4d93276fb2dc5cad81c811d20@news.povray.org>
New revision.
I have corrected an error in how it was handling vertical normal vectors.

-tgq


Post a reply to this message


Attachments:
Download 'crevice.inc.txt' (11 KB)

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