-
Notifications
You must be signed in to change notification settings - Fork 20
/
BvhConvert.pde
30 lines (28 loc) · 745 Bytes
/
BvhConvert.pde
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
int startTime = 0;
void bvhConvert(){
println(bvh1.parser.frame + " " + bvh1.frameMax);
if(bvh1.parser.frame<bvh1.frameMax){
bvh1.update(millis());
xmlRecorderUpdate();
//~~~~~~~~~~~~~~~~~~~~~~~~~~~
}else{
xmlSaveToDisk();
delay(saveDelayInterval);
bvhConversionCounter++;
if(bvhConversionCounter<bvhConversionCounterMax){
bvhBegin();
}else{
doButtonStop();
}
}
}
void bvhBegin(){
masterFileCounter++;
counter=0; //see if this causes any problems
bvh1 = new PBvh(loadStrings((String) bvhNames.get(bvhConversionCounter)),bvhScaleFactor,bvhOffset);
xmlRecorderInit();
startTime = millis();
//countdown.go = true;
//countdown.beep = true;
//parserA = new BvhParser();
}