I am going for a kind of flying-through-space effect with random-colored lines, and I've basically got it, but if I set the "timer" variable too high, I get like an overload of lines and a bunch of random lines intersecting the origin are randomly drawn. The structure of the code is this; there is a class called "littlelight" which are the individual lines erupting from the origin. That class is called every frame--and every frame a new "littlelight" is generated by "ps" which is an instance of the ParticleSystem class. The ParticleSystem class removes "littlelight"'s from the ArrayList when their "timer" has run out. The "timer" is set to run to zero about when that "littlelight" is entirely off-screen; so, once a "littlelight" leaves the screen area, it dies. However, I really have no idea where this overload behavior is coming from.
This uses toxic libs btw. The code is set now to overload as I have described above. If you go down to where the "timer" variable is set, you will see I have commented code that will work.
//GLOBAL VARIABLES
ArrayList particles; // An arraylist for all the particles
Vec3D origin; // An origin point for where particles are born
//CONSTRUCTOR
ParticleSystem(int num, Vec3D v) {
particles = new ArrayList(); // Initialize the arraylist
origin = v; // Store the origin point
// Add "num" amount of particles to the arraylist
//for (int i = 0; i < num; i++) {
//particles.add(new littlelight(origin));
//}
}
//FUNCTIONS
void run() {
for (int i = particles.size() - 1; i>=0; i--) {
littlelight p = (littlelight) particles.get(i);
//p.run();
if (p.dead()) {
particles.remove(i);
}
else p.run();
}
}
Total beginner here, working from Jose's video tutorials if you can't tell. I'm trying to do the following: a bunch of lines of different random colors and lengths erupting from the middle of the screen ad infinitum. I've pasted the code below which gets me lines of different lengths erupting from the middle of the screen in random directions, but I do not know how to get this process moving in time. I want lines erupting from the middle of the screen at very brief but random intervals, and I want a lot of them, but I need this to keep going. I also need these lines to "die" or do something similar once they get off screen. I do not anticipate a problem with the random stroke color.
Finally I'm doing this with Toxic Libs Vec3D class. If there is an eminently better way to do this please let me know.
What is the best way to export video from Processing for use in After Effects, ultimately going into a Prores 422 HQ workflow in Final Cut Pro? I am trying to utilize all Prores 422 HQ assets in After Effects as well, but I don't mind bringing something else in as long as it is high quality and plays nicely with Prores 422 HQ.
the MovieMaker object gives me these codec options, ANIMATION, BASE, BMP, CINEPAK, COMPONENT, CMYK, GIF, GRAPHICS, JPEG, MS_VIDEO, MOTION_JPEG_A, MOTION_JPEG_B, RAW, SORENSON, VIDEO, H261, H263, H264.
and these compression options WORST, LOW, MEDIUM, HIGH, BEST, LOSSLESS.
As I do not see an option for Prores, my initial response is to go with ANIMATION and LOSSLESS. ANIMATION in FCP is an uncompressed setting, so I would think it would be the way to go, but as I haven't worked with Processing much at all I cannot be sure. I did check out this thread
http://processing.org/discourse/yabb2/YaBB.pl?num=1211318862 which would seem to confirm my initial response, but I would like to know if anyone else has any other ideas.
Also, is there anyway to output video from Processing at exactly 29.97 fps? MovieMaker seems only to allow integer values for fps. I could change it later in After Effects, but I would rather get it out of Processing ready to go.