POV-Ray : Newsgroups : povray.binaries.images : CrapGadget Oddity :-) [195k] Server Time
2 Aug 2024 00:12:55 EDT (-0400)
  CrapGadget Oddity :-) [195k] (Message 1 to 3 of 3)  
From: [GDS|Entropy]
Subject: CrapGadget Oddity :-) [195k]
Date: 10 Jan 2008 01:28:33
Message: <4785bb11@news.povray.org>
Yeah...

Trying to get used to array storage/retrieval in POV again, screwing 
around..not quite sure where I am going with this.

Essentially I am mucking around with arrays of vectors which connect end to 
end. I am slowly integrating randomness and branch/object property 
variation.

So I guess this could end up being either some kind of pulsing hydraulic 
atrocity when animated, or some sort of shrubbery when used with splines, 
and possibly some mutated horrific retrovirus when used with sphere_sweeps.

I really don't know...or care for that matter, it just looks cool. ;-p
But I would appreciate any code example using adaptive multi-dimensional 
arrays. See below: [this is not the pov code which produced the image, this 
is just a flowing thought which attempts to clairify my goal] (keep in mind 
I've been up for like 18hrs too, so..yeah..I've probably screwed up lots of 
places and need sleep)

BaseObjectSelector Function(object) {
if(foo == null || nothing) {
 throw {error("you fukkd up");}
}
elseif(foo >=0) {
 bar = Object objType;
 switch(value) {
  case(object) {
   bar = foo;
  }
  case(object) {
   bar = foo;
  }
  case(object) {
   foo
  }
  default{
   bar = foo;
  }
 }
 return(bar);
}
}

ArrayDimension Function(num,dimension) {
 myArray = array Array[num];
  // Dimension select block
 return(myArray);
}

/*    this function simplified even further than the above */
BaseObjectArrayIterator Function(obj,dim,numIter,degVariance,radius) {
 cnt = int 0;
 iterations = int numIter;
dimension = int dim;
 theArray = ArrayDimension Function(iterations,dimension);
 while(cnt < iterations) {
   etc...etc..etc...
 cnt = cnt + 1;
 }
}

Essentially What I am looking for in the final function is the ability to 
say: "There are X number of objects type Z of diameter N, in a row, each 
requiring two non-intersecting vectors, and each object to has one vector in 
common with the object which follows it."

Did I state this clearly, or should I go to bed for a while?? ;-)

Maybe I am too tired to continue for today...

Ian


Post a reply to this message


Attachments:
Download 'shrub3.jpg' (196 KB)

Preview of image 'shrub3.jpg'
shrub3.jpg


 

From: stbenge
Subject: Re: CrapGadget Oddity :-) [195k]
Date: 10 Jan 2008 19:11:54
Message: <4786b44a@news.povray.org>
[GDS|Entropy] wrote:
> Yeah...

CrapGadget... classic :)

> Trying to get used to array storage/retrieval in POV again, screwing 
> around..not quite sure where I am going with this.
> 
> Essentially I am mucking around with arrays of vectors which connect end to 
> end. I am slowly integrating randomness and branch/object property 
> variation.
> 
> So I guess this could end up being either some kind of pulsing hydraulic 
> atrocity when animated, or some sort of shrubbery when used with splines, 
> and possibly some mutated horrific retrovirus when used with sphere_sweeps.
> 
> I really don't know...or care for that matter, it just looks cool. ;-p
> But I would appreciate any code example using adaptive multi-dimensional 
> arrays. See below: [this is not the pov code which produced the image, this 
> is just a flowing thought which attempts to clairify my goal] (keep in mind 
> I've been up for like 18hrs too, so..yeah..I've probably screwed up lots of 
> places and need sleep)

Perhaps Gilles Tran has some code suitable for helping you toward your 
goal -> http://www.oyonale.com/

> Essentially What I am looking for in the final function is the ability to 
> say: "There are X number of objects type Z of diameter N, in a row, each 
> requiring two non-intersecting vectors, and each object to has one vector in 
> common with the object which follows it."
> 
> Did I state this clearly, or should I go to bed for a while?? ;-)

Maybe, and probably. Is it possible to label the objects as you put them 
into the array? Maybe another array can be used as a reference?

Sam


Post a reply to this message

From: [GDS|Entropy]
Subject: Re: CrapGadget Oddity :-) [195k]
Date: 13 Jan 2008 02:07:34
Message: <4789b8b6$1@news.povray.org>
"stbenge" <stb### [at] hotmailcom> wrote in message 
news:4786b44a@news.povray.org...
> [GDS|Entropy] wrote:
>> Yeah...
>
> CrapGadget... classic :)

Thanks, I borrowed that from Engadget (kinda like Techcrunch), it just 
seemed so fitting. ;-)

>> Trying to get used to array storage/retrieval in POV again, screwing 
>> around..not quite sure where I am going with this.
>>
>> Essentially I am mucking around with arrays of vectors which connect end 
>> to end. I am slowly integrating randomness and branch/object property 
>> variation.
>>
>> So I guess this could end up being either some kind of pulsing hydraulic 
>> atrocity when animated, or some sort of shrubbery when used with splines, 
>> and possibly some mutated horrific retrovirus when used with 
>> sphere_sweeps.
>>
>> I really don't know...or care for that matter, it just looks cool. ;-p
>> But I would appreciate any code example using adaptive multi-dimensional 
>> arrays. See below: [this is not the pov code which produced the image, 
>> this is just a flowing thought which attempts to clairify my goal] (keep 
>> in mind I've been up for like 18hrs too, so..yeah..I've probably screwed 
>> up lots of places and need sleep)
>
> Perhaps Gilles Tran has some code suitable for helping you toward your 
> goal -> http://www.oyonale.com/

I will look into this. I have always been a fan of his work.

>> Essentially What I am looking for in the final function is the ability to 
>> say: "There are X number of objects type Z of diameter N, in a row, each 
>> requiring two non-intersecting vectors, and each object to has one vector 
>> in common with the object which follows it."
>>
>> Did I state this clearly, or should I go to bed for a while?? ;-)
>
> Maybe, and probably. Is it possible to label the objects as you put them 
> into the array? Maybe another array can be used as a reference?

Hmm...I think I know what you mean, and I can imagine ways to numerically 
link the arrays, but as far as your exact meaning of a label, not so much.
Perhaps some small example?

> Sam

Thanks, Ian


Post a reply to this message

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