| CameraPane.java | ●●●●● patch | view | raw | blame | history | |
| GroupEditor.java | ●●●●● patch | view | raw | blame | history | |
| Mocap.java | ●●●●● patch | view | raw | blame | history | |
| ObjEditor.java | ●●●●● patch | view | raw | blame | history | |
| ParticleNode.java | ●●●●● patch | view | raw | blame | history | |
| Wav.java | ●●●●● patch | view | raw | blame | history | 
CameraPane.java
.. .. @@ -56,8 +56,6 @@ 56 56 static int CURRENTANTIALIAS = 0; // 1; 57 57 /*static*/ boolean RENDERSHADOW = true; 58 58 /*static*/ int RENDERPROGRAM = 2; // 0 == none, 1 == fast, 2 == normal 59  - static boolean ANIMATION = false;60  - static String filename;61 59 62 60 boolean DISPLAYTEXT = false; 63 61 //boolean REDUCETEXTURE = true; .. .. @@ -86,7 +84,7 @@ 86 84 static boolean FULLSCREEN = false; 87 85 static boolean SUPPORT = true; 88 86 static boolean INERTIA = true; 89  -static boolean FAST = true; // false;87  +static boolean FAST = false;90 88 static boolean SLOWPOSE = false; 91 89 static boolean FOOTCONTACT = true; 92 90 .. .. @@ -9395,7 +9393,7 @@ 9395 9393 //gl.glFlush(); 9396 9394 gl.glAccum(gl.GL_ACCUM, 1.0f / ACSIZE); 9397 9395 9398  - if (ANIMATION && ABORTED)9396  + if (Globals.ANIMATION && ABORTED)9399 9397 { 9400 9398 System.err.println(" ABORTED FRAME"); 9401 9399 break; .. .. @@ -9425,7 +9423,7 @@ 9425 9423 setCursor(Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR)); 9426 9424 9427 9425 // save image 9428  - if (ANIMATION && !ABORTED)9426  + if (Globals.ANIMATION && !ABORTED)9429 9427 { 9430 9428 VPwidth = viewport[2]; 9431 9429 VPheight = viewport[3]; .. .. @@ -9536,7 +9534,7 @@ 9536 9534 9537 9535 // imagecount++; 9538 9536 9539  - String fullname = filename + (i%100000)/10000 + "" + (i%10000)/1000 + "" + (i%1000)/100 + "" + (i%100)/10 + "" + (i%10) + "." + ext;9537  + String fullname = Globals.filename + (i%100000)/10000 + "" + (i%10000)/1000 + "" + (i%1000)/100 + "" + (i%100)/10 + "" + (i%10) + "." + ext;9540 9538 9541 9539 if (!BOXMODE) 9542 9540 { .. .. @@ -11260,8 +11258,14 @@ 11260 11258 { 11261 11259 renderpass++; 11262 11260 // System.out.println("Draw object... "); 11261  + STEP = 1;11263 11262 if (FAST) // in case there is no script 11264  - STEP = 16;11263  + STEP = 8;11264  +11265  + if (CURRENTANTIALIAS == 0 || ACSIZE == 1)11266  + {11267  + STEP *= 4;11268  + }11265 11269 11266 11270 //object.FullInvariants(); 11267 11271  GroupEditor.java
.. .. @@ -440,6 +440,10 @@ 440 440 liveCB.setToolTipText("Enabled animation"); 441 441 liveCB.addItemListener(this); 442 442 443  + oe.toolbarPanel.add(fastCB = new cCheckBox("Fast", CameraPane.FAST)); //, constraints);444  + fastCB.setToolTipText("Fast mode");445  + fastCB.addItemListener(this);446  +443 447 oe.toolbarPanel.add(trackCB = new cCheckBox("Track", CameraPane.TRACK)); //, oe.aConstraints); 444 448 trackCB.setToolTipText("Enable tracking"); 445 449 trackCB.addItemListener(this); .. .. @@ -587,39 +591,29 @@ 587 591 588 592 void AddOptions(cGridBag panel) //, GridBagConstraints constraints) 589 593 { 590  - //constraints.gridx = 0;591  - //constraints.gridy = 0;592  - panel.add(fastCB = new cCheckBox("Fast", CameraPane.FAST)); //, constraints);593  - fastCB.setToolTipText("Fast mode");594  - fastCB.addItemListener(this);595  - //constraints.gridy += 1;596 594 panel.add(supportCB = new cCheckBox("Support", CameraPane.SUPPORT)); //, constraints); 597 595 supportCB.setToolTipText("Enabled rigging"); 598 596 supportCB.addItemListener(this); 599 597 600  - // constraints.gridy += 1;601 598 // panel.add(localCB = new cCheckBox("Local", CameraPane.LOCALTRANSFORM), constraints); 602 599 // localCB.addItemListener(this); 603 600 604  - //constraints.gridy += 1;605 601 panel.add(crowdCB = new cCheckBox("Crowd", Globals.CROWD)); //, constraints); 606 602 crowdCB.setToolTipText("Used for crowds"); 607 603 crowdCB.addItemListener(this); 608 604 609  - //constraints.gridy += 1;610 605 panel.add(smoothCB = new cCheckBox("Inertia", CameraPane.INERTIA)); //, constraints); 611 606 smoothCB.setToolTipText("Snapping delay"); 612 607 smoothCB.addItemListener(this); 613 608 614  - //constraints.gridy += 1;615 609 panel.add(slowCB = new cCheckBox("Slow", CameraPane.SLOWPOSE)); //, constraints); 616 610 slowCB.setToolTipText("Smooth interpolation"); 617 611 slowCB.addItemListener(this); 618  - //constraints.gridy += 1;612  +619 613 panel.add(boxCB = new cCheckBox("Box", CameraPane.BOXMODE)); //, constraints); 620 614 boxCB.setToolTipText("Display bounding boxes"); 621 615 boxCB.addItemListener(this); 622  - //constraints.gridy += 1;616  +623 617 panel.add(zoomBoxCB = new cCheckBox("Zoom", CameraPane.ZOOMBOXMODE)); //, constraints); 624 618 zoomBoxCB.setToolTipText("Display bounding boxes when moving the wheel"); 625 619 zoomBoxCB.addItemListener(this); .. .. @@ -648,11 +642,9 @@ 648 642 //panel.add(debugCB = new cCheckBox("Debug", CameraPane.DEBUG), constraints); 649 643 // debugCB.addItemListener(this); 650 644 651  - //constraints.gridy += 1;652 645 panel.add(oeilCB = new cCheckBox("Eye", CameraPane.OEIL)); //, constraints); 653 646 oeilCB.addItemListener(this); 654 647 655  - //constraints.gridy += 1;656 648 panel.add(lookAtCB = new cCheckBox("Target", CameraPane.LOOKAT)); //, constraints); 657 649 lookAtCB.setToolTipText("Look-at target"); 658 650 lookAtCB.addItemListener(this); .. .. @@ -1110,7 +1102,7 @@ 1110 1102 { 1111 1103 menu.add(animationItem = new CheckboxMenuItem("Animation...")); 1112 1104 animationItem.addItemListener(this); 1113  - animationItem.setState(CameraPane.ANIMATION);1105  + animationItem.setState(Globals.ANIMATION);1114 1106 1115 1107 menu.add("-"); 1116 1108 parseverticesItem = menu.add(new MenuItem("Multiplicity")); Mocap.java
.. .. @@ -2267,7 +2267,7 @@ 2267 2267 } 2268 2268 2269 2269 if (!smoothed) 2270  - for (int i=1; --i>=0;)2270  + for (int i=10; --i>=0;)2271 2271 SmoothAnimData(); // much reduces shakiness 2272 2272 2273 2273 smoothed = true; .. .. @@ -3252,12 +3252,13 @@ 3252 3252 3253 3253 int step = 1; 3254 3254 3255  + // patch for running hare3255 3256 if (speedup) // fev 2014 3256 3257 step *= 2; // 4; 3257 3258 if (rewind) // mars 2014 3258 3259 step *= 4; 3259 3260 3260  - if (CameraPane.FAST) // && !CameraPane.HOLD)3261  + //if (CameraPane.FAST) // && !CameraPane.HOLD)3261 3262 step *= CameraPane.STEP; 3262 3263 3263 3264 //System.err.println("Step Mocap frame # " + frame); ObjEditor.java
.. .. @@ -3205,7 +3205,7 @@ 3205 3205 if (!Globals.ANIMATION) 3206 3206 { 3207 3207 FileDialog browser = new FileDialog(frame, "Save Animation As...", FileDialog.SAVE); 3208  - browser.show();3208  + browser.setVisible(true);3209 3209 String filename = browser.getFile(); 3210 3210 if (filename != null && filename.length() > 0) 3211 3211 { ParticleNode.java
.. .. @@ -327,7 +327,9 @@ 327 327 328 328 int step = 1; 329 329 if (CameraPane.FAST) 330  + {330 331 step *= CameraPane.STEP; 332  + }331 333 332 334 getParticleController().update(step); 333 335 for (int i = 0; i < particles.length; i++) Wav.java
.. .. @@ -220,7 +220,7 @@ 220 220 // write out the wav file 221 221 public Wav save() 222 222 { 223  - if (loop == 0 || !CameraPane.ANIMATION)223  + if (loop == 0 || !Globals.ANIMATION)224 224 return this; 225 225 226 226 Object[] options = {"Yes",