.. | .. |
---|
9366 | 9366 | jy8[3] = 0.5f; |
---|
9367 | 9367 | } |
---|
9368 | 9368 | |
---|
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 |
---|
9370 | 9370 | float[] options2 = new float[]{0, 1, 0, 0}; // fog density, intensity, elevation |
---|
9371 | 9371 | float[] options3 = new float[]{1, 1, 1, 0}; // fog color |
---|
9372 | 9372 | float[] options4 = new float[]{1, 0, 1, 0}; // image intensity, subsurface, lightsheen |
---|
9373 | 9373 | |
---|
| 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 | + |
---|
9374 | 9398 | static int imagecount = 0; // movie generation |
---|
9375 | 9399 | |
---|
9376 | 9400 | static int jitter = 0; |
---|
.. | .. |
---|
10481 | 10505 | ANTIALIAS = 0; |
---|
10482 | 10506 | //System.out.println("RESTART"); |
---|
10483 | 10507 | AAtimer.restart(); |
---|
| 10508 | + Globals.TIMERRUNNING = true; |
---|
10484 | 10509 | } |
---|
10485 | 10510 | } |
---|
10486 | 10511 | } |
---|
.. | .. |
---|
11479 | 11504 | |
---|
11480 | 11505 | void DrawObject(GL gl, boolean draw) |
---|
11481 | 11506 | { |
---|
| 11507 | + // To clear camera values |
---|
| 11508 | + ResetOptions(); |
---|
| 11509 | + |
---|
11482 | 11510 | //System.out.println("DRAW OBJECT " + mouseDown); |
---|
11483 | 11511 | // DrawMode() = SELECTION; |
---|
11484 | 11512 | //GL gl = getGL(); |
---|
.. | .. |
---|
12046 | 12074 | for (int i = tp.size(); --i >= 0;) |
---|
12047 | 12075 | { |
---|
12048 | 12076 | //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); |
---|
12050 | 12078 | } |
---|
12051 | 12079 | |
---|
12052 | 12080 | |
---|
.. | .. |
---|
13840 | 13868 | else |
---|
13841 | 13869 | if (evt.getSource() == AAtimer) |
---|
13842 | 13870 | { |
---|
| 13871 | + Globals.TIMERRUNNING = false; |
---|
13843 | 13872 | if (mouseDown) |
---|
13844 | 13873 | { |
---|
13845 | 13874 | //new Exception().printStackTrace(); |
---|
.. | .. |
---|
13914 | 13943 | return; |
---|
13915 | 13944 | |
---|
13916 | 13945 | AAtimer.restart(); // |
---|
| 13946 | + Globals.TIMERRUNNING = true; |
---|
13917 | 13947 | |
---|
13918 | 13948 | // waslive = LIVE; |
---|
13919 | 13949 | // LIVE = false; |
---|
.. | .. |
---|
14377 | 14407 | info.camera = renderCamera; |
---|
14378 | 14408 | info.x = x; |
---|
14379 | 14409 | info.y = y; |
---|
14380 | | - object.manipWindow.copy |
---|
| 14410 | + object.GetWindow().copy |
---|
14381 | 14411 | .doEditDrag(info, (modifiers & MouseEvent.BUTTON3_MASK) != 0); |
---|
14382 | 14412 | } else |
---|
14383 | 14413 | { |
---|
.. | .. |
---|
15378 | 15408 | } |
---|
15379 | 15409 | */ |
---|
15380 | 15410 | |
---|
15381 | | - object.editWindow.EditSelection(); |
---|
| 15411 | + object.editWindow.EditSelection(false); |
---|
15382 | 15412 | } |
---|
15383 | 15413 | |
---|
15384 | 15414 | void SelectParent() |
---|