Normand Briere
2019-06-25 ecff440ceef3ad352aa64cedbb913107ec4863a5
CameraPane.java
....@@ -9366,11 +9366,35 @@
93669366 jy8[3] = 0.5f;
93679367 }
93689368
9369
- float[] options1 = new float[]{1000, 0.00001f, 20, 0, 0}; // focus, aperture, Shadow blur, aniso, anisoV
9369
+ float[] options1 = new float[]{100, 0.00001f, 20, 0, 0}; // focus, aperture, Shadow blur, aniso, anisoV
93709370 float[] options2 = new float[]{0, 1, 0, 0}; // fog density, intensity, elevation
93719371 float[] options3 = new float[]{1, 1, 1, 0}; // fog color
93729372 float[] options4 = new float[]{1, 0, 1, 0}; // image intensity, subsurface, lightsheen
93739373
9374
+ void ResetOptions()
9375
+ {
9376
+ options1[0] = 100;
9377
+ options1[1] = 0.00001f;
9378
+ options1[2] = 20;
9379
+ options1[3] = 0;
9380
+ options1[4] = 0;
9381
+
9382
+ options2[0] = 0;
9383
+ options2[1] = 1;
9384
+ options2[2] = 0;
9385
+ options2[3] = 0;
9386
+
9387
+ options3[0] = 1;
9388
+ options3[1] = 1;
9389
+ options3[2] = 1;
9390
+ options3[3] = 0;
9391
+
9392
+ options4[0] = 1;
9393
+ options4[1] = 0;
9394
+ options4[2] = 1;
9395
+ options4[3] = 0;
9396
+ }
9397
+
93749398 static int imagecount = 0; // movie generation
93759399
93769400 static int jitter = 0;
....@@ -10481,6 +10505,7 @@
1048110505 ANTIALIAS = 0;
1048210506 //System.out.println("RESTART");
1048310507 AAtimer.restart();
10508
+ Globals.TIMERRUNNING = true;
1048410509 }
1048510510 }
1048610511 }
....@@ -11479,6 +11504,9 @@
1147911504
1148011505 void DrawObject(GL gl, boolean draw)
1148111506 {
11507
+ // To clear camera values
11508
+ ResetOptions();
11509
+
1148211510 //System.out.println("DRAW OBJECT " + mouseDown);
1148311511 // DrawMode() = SELECTION;
1148411512 //GL gl = getGL();
....@@ -12046,7 +12074,7 @@
1204612074 for (int i = tp.size(); --i >= 0;)
1204712075 {
1204812076 //for (int count = tp.get(i).GetTransformCount(); --count>=0;)
12049
- LA.xformPos(light, tp.get(i).GlobalTransform(), light);
12077
+ LA.xformPos(light, tp.get(i).GlobalTransformInv(), light);
1205012078 }
1205112079
1205212080
....@@ -13840,6 +13868,7 @@
1384013868 else
1384113869 if (evt.getSource() == AAtimer)
1384213870 {
13871
+ Globals.TIMERRUNNING = false;
1384313872 if (mouseDown)
1384413873 {
1384513874 //new Exception().printStackTrace();
....@@ -13914,6 +13943,7 @@
1391413943 return;
1391513944
1391613945 AAtimer.restart(); //
13946
+ Globals.TIMERRUNNING = true;
1391713947
1391813948 // waslive = LIVE;
1391913949 // LIVE = false;
....@@ -14377,7 +14407,7 @@
1437714407 info.camera = renderCamera;
1437814408 info.x = x;
1437914409 info.y = y;
14380
- object.manipWindow.copy
14410
+ object.GetWindow().copy
1438114411 .doEditDrag(info, (modifiers & MouseEvent.BUTTON3_MASK) != 0);
1438214412 } else
1438314413 {
....@@ -15378,7 +15408,7 @@
1537815408 }
1537915409 */
1538015410
15381
- object.editWindow.EditSelection();
15411
+ object.editWindow.EditSelection(false);
1538215412 }
1538315413
1538415414 void SelectParent()