Hey nudel, if were to speak for the community, welcome!
Pretty crisp analysis if you ask me. I think you're right. I also believe the solution you pose might just work.
How you'd save the values? I'd suggest you run the sketch pretty much like it is now, except for all the 3d drawing. Instead, you save the values that would set the sphere size to a file.
Without looking at your code, this would be something like this:
Code:float[] sizes;
void setup() {
sizes = new float[0];
}
void draw() {
float spheresize = random(100); //player.mix.level;
sizes = append(sizes, spheresize);
}
void keyReleased() {
String[] strings = str(sizes);
saveStrings("file.txt", strings);
}
You can then in another patch load this data, and have it render 3d imagery by looping through an array containing this data:
Code:float[] sizes;
int iterant = 0;
void setup() {
sizes = float(loadStrings("file.txt"));
}
void draw() {
if(iterant < sizes.length) {
background(255);
ellipseMode(CENTER);
ellipse(width/2, height/2, sizes[iterant], sizes[iterant]);
//saveFrame();
iterant++;
}
}