We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpPrograms › Interface possibilities using processing
Page Index Toggle Pages: 1
Interface possibilities using processing (Read 407 times)
Interface possibilities using processing
Mar 3rd, 2009, 3:07pm
 
Hi. I am new to processing and am unsure of its possibilities. I want to use it for developing a project but I don't know if it will fulfill all my interface needs. Basically I want my interface to have a 3 different stages..stage one is just a welcome window that can feed in xml information.. when a button for example is clicked it will move onto stage 2. Stage 2 I want it to be able to record the interactions(the interactive visuals that the user is creating). I want the user to finish stage 2, save the video and move onto stage 3 which is really just for information(where the video will be uploaded to for example). I then want the interface to return to stage one so the process can begin again. Is this possible using Processing? Any help or information on this would be greatly appreciated.

John.
Re: Interface possibilities using processing
Reply #1 - Mar 3rd, 2009, 3:33pm
 
Why not keep it simple and do something like:

Code:

int stage;

void setup(){
 stage = 1;
}

void draw(){
 switch(stage){
 
 case 1:
   /* Welcome screen */

   /* read in xml */

   if (xmlLoaded == true) stage = 2;
 
   break;

 case 2:
   /* record interaction */
   if (userInteractionEnded == true) stage = 3;
   
   break;

 case 3:
   /* upload video */
   // do some threaded uploading.
   if (uploadCompleted == true) stage = 1;

   break;
 }
}
   

Re: Interface possibilities using processing
Reply #2 - Mar 7th, 2009, 7:24pm
 
thanks! that makes sence and seems pretty simple..Im only just getting into processing..hoping to develop my final year college project with it!
Page Index Toggle Pages: 1