Normand Briere
2019-05-02 a7277e6c6381e55761f7fa87276260fac1c94d5e
CameraPane.java
....@@ -56,8 +56,6 @@
5656 static int CURRENTANTIALIAS = 0; // 1;
5757 /*static*/ boolean RENDERSHADOW = true;
5858 /*static*/ int RENDERPROGRAM = 2; // 0 == none, 1 == fast, 2 == normal
59
- static boolean ANIMATION = false;
60
- static String filename;
6159
6260 boolean DISPLAYTEXT = false;
6361 //boolean REDUCETEXTURE = true;
....@@ -86,7 +84,7 @@
8684 static boolean FULLSCREEN = false;
8785 static boolean SUPPORT = true;
8886 static boolean INERTIA = true;
89
-static boolean FAST = true; // false;
87
+static boolean FAST = false;
9088 static boolean SLOWPOSE = false;
9189 static boolean FOOTCONTACT = true;
9290
....@@ -108,7 +106,7 @@
108106 static boolean OEIL = true;
109107 static boolean OEILONCE = false; // do oeilon then oeiloff
110108 static boolean LOOKAT = true;
111
-static boolean RANDOM = true; // false;
109
+static boolean SWITCH = true; // false;
112110 static boolean HANDLES = false; // selection doesn't work!!
113111 static boolean PAINTMODE = false;
114112
....@@ -2269,7 +2267,7 @@
22692267
22702268 void ToggleRandom()
22712269 {
2272
- RANDOM ^= true;
2270
+ SWITCH ^= true;
22732271 }
22742272
22752273 void ToggleHandles()
....@@ -9395,7 +9393,7 @@
93959393 //gl.glFlush();
93969394 gl.glAccum(gl.GL_ACCUM, 1.0f / ACSIZE);
93979395
9398
- if (ANIMATION && ABORTED)
9396
+ if (Globals.ANIMATION && ABORTED)
93999397 {
94009398 System.err.println(" ABORTED FRAME");
94019399 break;
....@@ -9425,7 +9423,7 @@
94259423 setCursor(Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR));
94269424
94279425 // save image
9428
- if (ANIMATION && !ABORTED)
9426
+ if (Globals.ANIMATION && !ABORTED)
94299427 {
94309428 VPwidth = viewport[2];
94319429 VPheight = viewport[3];
....@@ -9536,7 +9534,7 @@
95369534
95379535 // imagecount++;
95389536
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;
95409538
95419539 if (!BOXMODE)
95429540 {
....@@ -11260,8 +11258,14 @@
1126011258 {
1126111259 renderpass++;
1126211260 // System.out.println("Draw object... ");
11261
+ STEP = 1;
1126311262 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
+ }
1126511269
1126611270 //object.FullInvariants();
1126711271
....@@ -12599,8 +12603,10 @@
1259912603 "MAX ndotl.x, ndotl.x, -ndotl.x;" +
1260012604
1260112605 "SUB temp.x, one.x, ndotl.x;" +
12602
- "ADD temp.x, temp.x, options2.z;" + // lightsheen
12603
- "ADD temp.y, one.y, options2.y;" + // sursurface
12606
+ // Tuning for default skin
12607
+ //"ADD temp.x, temp.x, options2.z;" + // lightsheen
12608
+ "MAD temp.x, options2.z, half.y, temp.x;" + // lightsheen
12609
+ "ADD temp.y, one.y, options2.y;" + // subsurface
1260412610 "MUL temp.x, temp.x, temp.y;" +
1260512611
1260612612 "MUL saturation, saturation, temp.xxxx;" +