POV-Ray : Newsgroups : povray.beta-test : crackle pattern request : Re: crackle pattern request Server Time
28 Jul 2024 14:19:04 EDT (-0400)
  Re: crackle pattern request  
From: SharkD
Date: 21 Dec 2008 02:50:00
Message: <web.494df4e827f2863954e70680@news.povray.org>
"Trevor G Quayle" <Tin### [at] hotmailcom> wrote:
> I know i'll probably get shot for this...
>
> But is there any way of adding a crackle pattern that is resolved only on a 2D
> plane rather than 3D space.  I haven't looked at the code and don't have the
> means to program and compile it myself at the moment.
>
> I know I can take a 2D slice of the 3D pattern, but that doesn't achieve what I
> want, there are slight differences.  The current crackle pattern is a Voronoi
> tesselation (I'm pretty certain) based on points in 3D, I wouldn't think it too
> hard to adapt an additional pattern where the points are only evaluated in 2D
> say on the x-y plane.
>
> I could probably dig aroung the source code myself and figure it out, but I
> don't have a compiler and am not sure how to go about it.  What freeware
> compilers are available for Windows XP?
>
> -tgq

Maybe you can convert the pattern into a function and then omit the y
coordinate?

Something like:

#declare FOO = function {pigment {checker}}
pigment
{
  function
  {
    FOO(x,0,z)}
    [PIGMENT_MODIFIERS...]
  }
}

-Mike


Post a reply to this message

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