I am trying to make a way to load .jpg's in real time into the "data" folder and have the sketch place them into an animation sequence. I am trying to have processing count the number of .jpgs (which will appear in the data folder as the sketch is running) and pass the return value of the amount as "number of frames" for the animation.
So far i am running into problems simply getting the number of .jpg's to load...
When I try to use the "Filenamefilter" technique, I get error message that there is no class or type named Filenamefilter...
do i have to define it before?
here is my code:
int numFrames = 4; // The number of frames in the animation
This seems really possible but at my level of experience with Processing it will take me months. So far I have been using OBJLoader to load 3D (.obj) files into Processing, and the video library to import videos. Is there some way I could tell processing to take a point/pixel from the video and map it or place it onto a point/pixel of the the 3D object and then tell processing to register that point in 3D, so that when the user rotates the 3D object the video also rotates accordingly?
Other options may include loading the video as a texture onto the .obj, as like void usetexture(movie.movie) or telling OBJLoader that the video is inside of the .mtl files it uses to map the texture, but i have a feeling this might be more tricky as it is more of a hack approach and involves kind of changing the file directories/filetypes might not be compatible enough.
If anyone has any advice, clues, hints, suggestions, codes, other programs to try out anything would be greatly appreciated!!!