POV-Ray : Newsgroups : povray.binaries.images : Parametric Greebles Server Time
6 Nov 2024 06:24:03 EST (-0500)
  Parametric Greebles (Message 1 to 10 of 12)  
Goto Latest 10 Messages Next 2 Messages >>>
From: Zeger Knaepen
Subject: Parametric Greebles
Date: 25 May 2008 12:07:10
Message: <48398eae@news.povray.org>
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 :)

cu!
-- 
#macro G(b,e)b+(e-b)*C/50#end#macro _(b,e,k,l)#local C=0;#while(C<50)
sphere{G(b,e)+3*z.1pigment{rgb G(k,l)}finish{ambient 1}}#local C=C+1;
#end#end _(y-x,y,x,x+y)_(y,-x-y,x+y,y)_(-x-y,-y,y,y+z)_(-y,y,y+z,x+y)
_(0x+y.5+y/2x)_(0x-y.5+y/2x)            // ZK http://www.povplace.com


Post a reply to this message


Attachments:
Download 'parametric_greebles.jpg' (38 KB)

Preview of image 'parametric_greebles.jpg'
parametric_greebles.jpg


 

From: William Tracy
Subject: Re: Parametric Greebles
Date: 26 May 2008 01:27:20
Message: <483a4a38$1@news.povray.org>
I think you have outdone yourself.

-- 
William Tracy
afi### [at] gmailcom -- wtr### [at] calpolyedu

(12:08:22 AM) ***icco wishes that execboard didn't kill themselves
     -- seen on #cplug


Post a reply to this message

From: Nekar Xenos
Subject: Re: Parametric Greebles
Date: 26 May 2008 01:50:00
Message: <483a4f88@news.povray.org>
The best greebles I've seen so far!

-- 
-Nekar Xenos-


Post a reply to this message

From: Thomas de Groot
Subject: Re: Parametric Greebles
Date: 26 May 2008 03:18:57
Message: <483a6461$1@news.povray.org>
"Nekar Xenos" <nek### [at] gmailcom> schreef in bericht 
news:483a4f88@news.povray.org...
> The best greebles I've seen so far!
>
...because Zeger is the king of greebles!  :-)

Very well done! An extension to the existing macros?

Thomas


Post a reply to this message

From: Zeger Knaepen
Subject: Re: Parametric Greebles
Date: 26 May 2008 03:38:04
Message: <483a68dc$1@news.povray.org>
"William Tracy" <wtr### [at] calpolyedu> wrote in message 
news:483a4a38$1@news.povray.org...
>I think you have outdone yourself.

:)

well, it's not finished yet, so hopefully it'll become even better :)

cu!
-- 
#macro G(b,e)b+(e-b)*C/50#end#macro _(b,e,k,l)#local C=0;#while(C<50)
sphere{G(b,e)+3*z.1pigment{rgb G(k,l)}finish{ambient 1}}#local C=C+1;
#end#end _(y-x,y,x,x+y)_(y,-x-y,x+y,y)_(-x-y,-y,y,y+z)_(-y,y,y+z,x+y)
_(0x+y.5+y/2x)_(0x-y.5+y/2x)            // ZK http://www.povplace.com


Post a reply to this message

From: Zeger Knaepen
Subject: Re: Parametric Greebles
Date: 26 May 2008 03:38:17
Message: <483a68e9$1@news.povray.org>
"Nekar Xenos" <nek### [at] gmailcom> wrote in message 
news:483a4f88@news.povray.org...
> The best greebles I've seen so far!

thank you!!

cu!
-- 
#macro G(b,e)b+(e-b)*C/50#end#macro _(b,e,k,l)#local C=0;#while(C<50)
sphere{G(b,e)+3*z.1pigment{rgb G(k,l)}finish{ambient 1}}#local C=C+1;
#end#end _(y-x,y,x,x+y)_(y,-x-y,x+y,y)_(-x-y,-y,y,y+z)_(-y,y,y+z,x+y)
_(0x+y.5+y/2x)_(0x-y.5+y/2x)            // ZK http://www.povplace.com


Post a reply to this message

From: Zeger Knaepen
Subject: Re: Parametric Greebles
Date: 26 May 2008 03:40:09
Message: <483a6959$1@news.povray.org>
"Thomas de Groot" <t.d### [at] internlDOTnet> wrote in message 
news:483a6461$1@news.povray.org...
>
> "Nekar Xenos" <nek### [at] gmailcom> schreef in bericht 
> news:483a4f88@news.povray.org...
>> The best greebles I've seen so far!
>>
> ...because Zeger is the king of greebles!  :-)
>
> Very well done! An extension to the existing macros?

originally I was going to rewrite all greeble-macros, to make them more 
consistent in use, but then I realized it might be a better idea to 
generalize them all into a Parametric-Greebles-macro.  Only the 
polygon-greebles can't be emulated with this macro.

cu!
-- 
#macro G(b,e)b+(e-b)*C/50#end#macro _(b,e,k,l)#local C=0;#while(C<50)
sphere{G(b,e)+3*z.1pigment{rgb G(k,l)}finish{ambient 1}}#local C=C+1;
#end#end _(y-x,y,x,x+y)_(y,-x-y,x+y,y)_(-x-y,-y,y,y+z)_(-y,y,y+z,x+y)
_(0x+y.5+y/2x)_(0x-y.5+y/2x)            // ZK http://www.povplace.com


Post a reply to this message

From: stbenge
Subject: Re: Parametric Greebles
Date: 26 May 2008 18:15:49
Message: <483b3695$1@news.povray.org>
Thomas de Groot wrote:
> "Nekar Xenos" <nek### [at] gmailcom> schreef in bericht 
> news:483a4f88@news.povray.org...
>> The best greebles I've seen so far!
>>
> ...because Zeger is the king of greebles!  :-)

Lol, the name "Zeger's Greebles" is forever imprinted into my brain...

BTW, nice greebles, Zeger. It would be nice to see some other 
structures, like the Millenium Falcon has. Good work, getting them to 
twist with the helix like that.

Sam


Post a reply to this message

From: SharkD
Subject: Re: Parametric Greebles
Date: 29 Jun 2008 13:55:00
Message: <web.4867cc1a23a83e25feb17ab00@news.povray.org>
Wow! That's incredible!

Can the macro/scene be configured to output the necessary maps for importing
into other software?

-Mike


Post a reply to this message

From: alphaQuad
Subject: Re: Parametric Greebles
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

Goto Latest 10 Messages Next 2 Messages >>>

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