POV-Ray : Newsgroups : povray.binaries.images : joining the greeble-madness :) Server Time
7 Aug 2024 13:20:50 EDT (-0400)
  joining the greeble-madness :) (Message 21 to 30 of 47)  
<<< Previous 10 Messages Goto Latest 10 Messages Next 10 Messages >>>
From: Zeger Knaepen
Subject: Re: Question
Date: 16 May 2006 09:10:18
Message: <4469cf3a$1@news.povray.org>
"How Camp" <hac### [at] gmailcom> wrote in message 
news:4469c8f4$1@news.povray.org...
> "Zeger Knaepen" <zeg### [at] povplacecom> wrote in message 
> news:4469bfe2@news.povray.org...
> 
> > Right now I'm trying a "universal 4-sided polygon greeble-cell 
generator",
> > with 2 points at the same location.  Looks useful imho.
> 
> 
> Wow, this is really nice.  What more can you share about this 
technique?

here's some code:

-- start code --
camera {
 location <-2,5,-5>/3
 look_at <-.5,.5,0>
}
light_source {<750,180,750> rgb 1+<.5,.4,.3>}
light_source {<-150,180,-75> rgb <.3,.4,.5> }//shadowless}
light_source {<750,80,-500> rgb <.4,.5,.9>/4 shadowless}
light_source {<-75,80,500> rgb 1+<.4,.5,.9>/4}
#declare Seed=seed(4);
#macro Verlaag4(X)
 #local R=X-(1+rand(Seed)*.25);
 R
#end

#macro PointAt(H1,H2,P)
 #local R=H1+(H2-H1)*P;
 R
#end
#macro VerdeelVierhoek(H1,H2,H3,H4,Diepte,Seed)
 #local H1=H1*<1,1>;
 #local H2=H2*<1,1>;
 #local H3=H3*<1,1>;
 #local H4=H4*<1,1>;
 
 #if (Diepte<0)
  #local R=.002;
  #local R2=R*(3+rand(Seed)*0);
  #local M=(H1+H2+H3+H4)/4;
  #local NH1=H1+vnormalize(M-H1)*R2;
  #local NH2=H2+vnormalize(M-H2)*R2;
  #local NH3=H3+vnormalize(M-H3)*R2;
  #local NH4=H4+vnormalize(M-H4)*R2;
   #local NH1=<NH1.u,NH1.v>;
   #local NH2=<NH2.u,NH2.v>;
   #local NH3=<NH3.u,NH3.v>;
   #local NH4=<NH4.u,NH4.v>;
  union {
   prism {
    linear_spline
    linear_sweep
    -.0001,0,
    5
    H1,H2,H3,H4,H1
   }
   #if (vlength(NH1-NH2)!=0) cylinder 
{<NH1.u,0,NH1.v>,<NH2.u,0,NH2.v>,R} #end
   #if (vlength(NH2-NH3)!=0) cylinder 
{<NH2.u,0,NH2.v>,<NH3.u,0,NH3.v>,R} #end
   #if (vlength(NH3-NH4)!=0) cylinder 
{<NH3.u,0,NH3.v>,<NH4.u,0,NH4.v>,R} #end
   #if (vlength(NH4-NH1)!=0) cylinder 
{<NH4.u,0,NH4.v>,<NH1.u,0,NH1.v>,R} #end
   sphere {<NH1.u,0,NH1.v>,R}sphere {<NH2.u,0,NH2.v>,R}
   sphere {<NH3.u,0,NH3.v>,R}sphere {<NH4.u,0,NH4.v>,R}
   prism {
    linear_spline
    linear_sweep
    0,R,
    5
    NH1,NH2,NH3,NH4,NH1
   }
  }
 #else
  #local Procent1=.5+(rand(Seed)-rand(Seed))*.3;
  #local Procent2=.5+(rand(Seed)-rand(Seed))*.3;
  #local H12=PointAt(H1,H2,Procent1);
  #local H34=PointAt(H4,H3,Procent1);

  #local H23=PointAt(H2,H3,Procent2);
  #local H41=PointAt(H1,H4,Procent2);
  
  #local HM=PointAt(H12,H34,Procent2);
  VerdeelVierhoek(H1,H12,HM,H41,Verlaag4(Diepte),Seed)
  VerdeelVierhoek(H12,H2,H23,HM,Verlaag4(Diepte),Seed)
  VerdeelVierhoek(HM,H23,H3,H34,Verlaag4(Diepte),Seed)
  VerdeelVierhoek(H41,HM,H34,H4,Verlaag4(Diepte),Seed)
 #end
#end
#declare obj=
union {
 #declare Depth=4;
 union {
  VerdeelVierhoek(<-1,0>,<-1,1>,<1,1>,<1,0>,Depth,Seed)
  union {
   VerdeelVierhoek(<-1,0>,<1,0>,<1,-1>,<1,-1>,Depth,Seed)
   matrix <
    1,0,0,
    0,1,0,
    0,.5,1,
    0,0,0
    >
  }
  translate -x+y
  matrix <
   1,.5,0,
   0,1,0,
   0,0,1,
   0,0,0
   >
 }
 union {
  VerdeelVierhoek(<-1,0>,<-1,1>,<1,1>,<1,0>,Depth,Seed)
  union {
   VerdeelVierhoek(<-1,0>,<1,0>,<1,-1>,<1,-1>,Depth,Seed)
   matrix <
    1,0,0,
    0,1,0,
    0,.5,1,
    0,0,0
    >
  }
  scale <-1,1,1>
  translate x+y
  matrix <
   1,-.5,0,
   0,1,0,
   0,0,1,
   0,0,0
   >
 }
 pigment {rgb 1}
 finish {specular 1}
}
-- end code --

I still need to add the greebles themselves, but that shouldn't be too 
much of a problem.

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: Sven Littkowski
Subject: Ehh, yu, anodda question!
Date: 16 May 2006 09:23:06
Message: <4469d23a$1@news.povray.org>
Hi Zeger,

you replied to John van Sickle that you did some SF images. Is it possible 
to see them? Is there some website, or can you e-mail them to me?

I would be curious.

Thanks,

Sven


Post a reply to this message

From: Zeger Knaepen
Subject: Re: Ehh, yu, anodda question!
Date: 16 May 2006 09:27:59
Message: <4469d35f$1@news.povray.org>
"Sven Littkowski" <sve### [at] jamaica-focuscom> wrote in message 
news:4469d23a$1@news.povray.org...
> Hi Zeger,
> 
> you replied to John van Sickle that you did some SF images. Is it 
possible 
> to see them? Is there some website, or can you e-mail them to me?
> 
> I would be curious.

see sig

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: Sven Littkowski
Subject: Ehh, yu, me a stupid!
Date: 16 May 2006 09:40:09
Message: <4469d639$1@news.povray.org>
Hmmm, it has been always there and I somehow managed to not to recognize it. 
Sorry, and big thanks!

Sven


"Zeger Knaepen" <zeg### [at] povplacecom> schrieb im Newsbeitrag 
news:4469d35f$1@news.povray.org...
see sig
_(0x+y.5+y/2x)_(0x-y.5+y/2x)            // ZK http://www.povplace.com


Post a reply to this message

From: How Camp
Subject: Re: Question
Date: 16 May 2006 14:13:36
Message: <446a1650$1@news.povray.org>
"Zeger Knaepen" <zeg### [at] povplacecom> wrote in message 
news:4469cf3a$1@news.povray.org...

> here's some code:

Thanks!  This was a lot of fun to play with.  It is surprisingly flexible, 
too...

- How


Post a reply to this message


Attachments:
Download 'knaepen01.jpg' (97 KB) Download 'knaepen02.jpg' (36 KB)

Preview of image 'knaepen01.jpg'
knaepen01.jpg

Preview of image 'knaepen02.jpg'
knaepen02.jpg


 

From: Sven Littkowski
Subject: Re: joining the greeble-madness :)
Date: 16 May 2006 22:03:05
Message: <446a8459@news.povray.org>
Greetings!

Zeger, I have there a starship I am developing, and would like to try out 
your greebles macro for some parts of that ship. I want to ask you for the 
code of the macro you have published in your posting here.

Another question: do you plan a macro which can automatically adjust to the 
heights and surfaces of an object (union or difference or blob)? Maybe a 
combination of surface greebles and a side greebles, which, depending on the 
angle ration, decides how to keep the greebles of one kind (surface or 
side), or to mix the two kinds of greebles.

But again: I would like to try out your macro, if it is okay for you.

Greetings,

Sven


Post a reply to this message

From: Zeger Knaepen
Subject: Re: joining the greeble-madness :)
Date: 17 May 2006 02:02:33
Message: <446abc79$1@news.povray.org>
"Sven Littkowski" <sve### [at] jamaica-focuscom> wrote in message 
news:446a8459@news.povray.org...
> Greetings!
> 
> Zeger, I have there a starship I am developing, and would like to try 
out 
> your greebles macro for some parts of that ship. I want to ask you for 
the 
> code of the macro you have published in your posting here.

np, I'll send you the code for this image and for the latest image

I didn't clean the code though, don't have time now :-/
 
> Another question: do you plan a macro which can automatically adjust 
to the 
> heights and surfaces of an object (union or difference or blob)? Maybe 
a 
> combination of surface greebles and a side greebles, which, depending 
on the 
> angle ration, decides how to keep the greebles of one kind (surface or 

> side), or to mix the two kinds of greebles.

I don't think I can

I was planning however to make greeble-macros for some primitives, like 
cylinders, spheres, boxes, cones and torii
 
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: Sven Littkowski
Subject: Re: joining the greeble-madness :)
Date: 17 May 2006 13:53:02
Message: <446b62fe@news.povray.org>
"Zeger Knaepen" <zeg### [at] povplacecom> schrieb im Newsbeitrag 
news:446abc79$1@news.povray.org...
> np, I'll send you the code for this image and for the latest image

Thanks a lot, I have received them. I am checking them now. I appreciate it 
a lot, and promise you to give you very well credits if I manage to use them 
for the imperial carrier I am working on. Promised!

> I was planning however to make greeble-macros for some primitives, like 
> cylinders, spheres, boxes, cones and torii

Yes! Go ahead with them! Tora! Tora! Tora!
Pleeeaaase, inform me (or all of us, here) somehow once you have them ready.


Post a reply to this message

From: Sven Littkowski
Subject: Re: Feedback
Date: 30 Jan 2016 07:45:01
Message: <web.56acb020394b51b3a4b8f9e70@news.povray.org>
Ten years later. Any progress? Any news? :-D


Post a reply to this message

From: Stephen
Subject: Re: Feedback
Date: 30 Jan 2016 08:11:05
Message: <56acb669$1@news.povray.org>
On 1/30/2016 12:44 PM, Sven Littkowski wrote:
> Ten years later. Any progress? Any news? :-D
>

News of what, Sven?

None of your recent posts have quoted who or what you are replying to. 
As you say it was 10 years ago and if you are using a newsreader, like 
me. Your posts appear as orphaned posts.


-- 

Regards
     Stephen


Post a reply to this message

<<< Previous 10 Messages Goto Latest 10 Messages Next 10 Messages >>>

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