POV-Ray : Newsgroups : povray.binaries.scene-files : Crevice Grime Macro Server Time
31 Oct 2024 19:31:58 EDT (-0400)
  Crevice Grime Macro (Message 1 to 4 of 4)  
From: Trevor G Quayle
Subject: Crevice Grime Macro
Date: 28 Mar 2011 16: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 16:10:00
Message: <web.4d90ea6ab2dc5cad81c811d20@news.povray.org>
"Trevor G Quayle" <Tin### [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 08:50:01
Message: <web.4d91d48bb2dc5cad81c811d20@news.povray.org>
"Trevor G Quayle" <Tin### [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 08: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-2023 Persistence of Vision Raytracer Pty. Ltd.