|
|
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'
|
|