POV-Ray : Newsgroups : povray.binaries.images : Parametric Greebles : Re: Parametric Greebles Server Time
1 Aug 2024 16:30:46 EDT (-0400)
  Re: Parametric Greebles  
From: alphaQuad
Date: 30 Jun 2008 13:45:00
Message: <web.48691a5123a83e2534ef70380@news.povray.org>
"Zeger Knaepen" <zeg### [at] povplacecom> wrote:
> Syntax is like this:
>
> ---START CODE---
> //This macro defines the shape, it should be defined before using
> GreebledPatch(..)
> //and redefined everytime you want a different shape
> #macro PatchAt(U,V)
>     #local R=[Surface-definition in function of U and V];
>     //for example, a cylinder from y=0 to y=1 with radius .2 would be:
>     //#local R=vrotate(x*.2+y*U,y*360*V);
>     R
> #end
> mesh {
>     GreebledPatch(U_Start,V_Start, U_End,V_End, RecursionDepth,
> Recursion_U_Probability, Recursion_V_Probability)
>     uv_mapping
>     texture {YourTexture}
> }
> ---END CODE---
>
>
> Hope you like it :)
love it
Understood most of it except the part about actually implementing PatchAt, not
called in this example. Over my head but so close I got a haircut.
 :~(


Post a reply to this message

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