POV-Ray : Newsgroups : povray.binaries.images : CrapGadget Oddity :-) [195k] : CrapGadget Oddity :-) [195k] Server Time
5 Nov 2024 02:18:32 EST (-0500)
  CrapGadget Oddity :-) [195k]  
From: [GDS|Entropy]
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


 

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