Normand Briere
2019-10-04 57c5b6cd8d12ffdaa3e0b099451e3c031012750a
CameraPane.java
....@@ -1,4 +1,5 @@
11
2
+import com.bulletphysics.dynamics.RigidBody;
23 import java.awt.*;
34 import java.awt.event.*;
45 import java.awt.image.*;
....@@ -123,7 +124,7 @@
123124 static boolean LOCALTRANSFORM = false;
124125 static boolean FULLSCREEN = false;
125126 static boolean SUPPORT = true;
126
-static boolean INERTIA = true;
127
+static boolean INERTIA = false; // true;
127128 static boolean FAST = false;
128129 static boolean SLOWPOSE = false;
129130 static boolean FOOTCONTACT = true;
....@@ -134,7 +135,7 @@
134135 static boolean ZOOMBOXMODE = false;
135136 static boolean BOXMODE = false;
136137 static boolean IMAGEFLIP = false;
137
-static boolean SMOOTHFOCUS = false;
138
+static boolean SMOOTHFOCUS = true; // false;
138139 static boolean SPEAKERMOCAP = true; // jan 2014 false;
139140 static boolean SPEAKERCAMERA = false;
140141 static boolean SPEAKERFOCUS = false;
....@@ -249,7 +250,7 @@
249250
250251 public javax.media.opengl.GL GetGL0()
251252 {
252
- return null;
253
+ return currentGL;
253254 }
254255
255256 public int GenList()
....@@ -1529,7 +1530,7 @@
15291530 }
15301531 }
15311532 float b = 0;
1532
- if (obj.support != null && obj.link2master)
1533
+ if (obj.support != null && obj.Link2Support())
15331534 {
15341535 b = 1;
15351536 }
....@@ -2109,7 +2110,7 @@
21092110 // Start with free camera
21102111 SwitchCameras(true);
21112112
2112
- pingthread.jump = true; // optional?
2113
+// pingthread.jump = true; // optional?
21132114
21142115 if (TRACKONCE)
21152116 {
....@@ -2296,18 +2297,6 @@
22962297 public void ToggleTrack()
22972298 {
22982299 TRACK ^= true;
2299
- if (TRACK)
2300
- {
2301
- if (object.selection != null &&
2302
- object.selection.size() > 0 &&
2303
- object.selection.elementAt(0) != null &&
2304
- !(object.selection.elementAt(0) instanceof Camera) &&
2305
- !(object.selection.elementAt(0) instanceof ScriptNode))
2306
- {
2307
- trackedobject = object.selection.elementAt(0);
2308
- repaint();
2309
- }
2310
- }
23112300
23122301 repaint();
23132302 }
....@@ -6973,30 +6962,30 @@
69736962 short residu = 0;
69746963
69756964 // wraparound workarounds
6976
- short fuck = (short) (buffer[i] & 0xFF);
6965
+ short ww = (short) (buffer[i] & 0xFF);
69776966 /*
6978
- residu += (fuck%2);
6979
- if(fuck/2 < 256-residu/2)
6967
+ residu += (ww%2);
6968
+ if(ww/2 < 256-residu/2)
69806969 {
6981
- fuck = (short)((fuck/2) + residu/2);
6970
+ ww = (short)((ww/2) + residu/2);
69826971 if(residu == 2)
69836972 residu = 0;
69846973 }
69856974 else
69866975 {
69876976 residu = 0;
6988
- fuck /= 2;
6977
+ ww /= 2;
69896978 }
69906979 */
6991
- if (i < imglength / 3 || rnd.nextFloat() < 0.5 || fuck >= 254)
6980
+ if (i < imglength / 3 || rnd.nextFloat() < 0.5 || ww >= 254)
69926981 {
6993
- fuck /= 2;
6982
+ ww /= 2;
69946983 } else
69956984 {
6996
- fuck = (short) ((fuck / 2) + fuck % 2);
6985
+ ww = (short) ((ww / 2) + ww % 2);
69976986 }
69986987
6999
- buffer[i] = (byte) fuck;
6988
+ buffer[i] = (byte) ww;
70006989 }
70016990 //System.out.print(bytes[i] + " ");
70026991 //if(buffer[i] >= 0 && buffer[i]<=eps-1) buffer[i] = eps;
....@@ -9854,7 +9843,7 @@
98549843
98559844 boolean vr = capsLocked && !lightMode;
98569845
9857
- accPerspective(gl, renderCamera.shaper_fovy / ratio * (vr ? 2 : 1),
9846
+ accPerspective(gl, renderCamera.shaper_fovy / ratio * (vr ? 1.2 : 1),
98589847 ratio,
98599848 //near_plane, far_plane,
98609849 renderCamera.shaper_zNear * renderCamera.Distance(), renderCamera.shaper_zFar * renderCamera.Distance(),
....@@ -10772,7 +10761,9 @@
1077210761 }
1077310762 /**/
1077410763
10775
- if (selection)
10764
+ boolean control = ((modifiers & CTRL) != 0);
10765
+
10766
+ if (selection && (!Globals.isLIVE() || control))
1077610767 {
1077710768 selectbuffer.display();
1077810769 return;
....@@ -10915,6 +10906,12 @@
1091510906 }
1091610907 else
1091710908 speedkey[RIGHT_ARROW] = 0;
10909
+
10910
+ if (Globals.WALK && capsLocked)
10911
+ {
10912
+ Walk();
10913
+ keyon = true;
10914
+ }
1091810915
1091910916 if (keyon)
1092010917 {
....@@ -11513,7 +11510,8 @@
1151311510 {
1151411511 boolean vr = capsLocked && !lightMode;
1151511512
11516
- glu.gluPerspective(cam.shaper_fovy / ratio * (vr ? 2 : 1), ratio, cam.shaper_zNear * cam.Distance(), cam.shaper_zFar * cam.Distance());
11513
+ glu.gluPerspective(cam.shaper_fovy / ratio * (vr ? 1.2 : 1),
11514
+ ratio, cam.shaper_zNear * cam.Distance(), cam.shaper_zFar * cam.Distance());
1151711515 }
1151811516 }
1151911517
....@@ -11869,8 +11867,11 @@
1186911867 repaint();
1187011868 }
1187111869
11872
- if (Globals.isLIVE() && DrawMode() == DEFAULT) // may 2013
11870
+ if (Globals.isLIVE() && DrawMode() == DEFAULT || pingthread.live) // may 2013
11871
+ {
11872
+ renderCamera.computeTransform();
1187311873 repaint();
11874
+ }
1187411875
1187511876 displaydone = true;
1187611877 }
....@@ -11945,9 +11946,23 @@
1194511946 //GL gl = getGL();
1194611947 if ((TRACK || SHADOWTRACK) || zoomonce)
1194711948 {
11949
+ if (TRACK)
11950
+ {
11951
+ if (object.selection != null &&
11952
+ object.selection.size() > 0 &&
11953
+ object.selection.elementAt(0) != null &&
11954
+ !(object.selection.elementAt(0) instanceof Camera) &&
11955
+ !(object.selection.elementAt(0) instanceof ScriptNode))
11956
+ {
11957
+ trackedobject = object.selection.elementAt(0);
11958
+ //repaint();
11959
+ }
11960
+ else
11961
+ trackedobject = null;
11962
+ }
1194811963 if ((TRACK || SHADOWTRACK) && trackedobject != null && DrawMode() == SHADOW) // && !lightMode)
1194911964 object.GetWindow().ScreenFit(trackedobject, SHADOWTRACK && !TRACK);
11950
- pingthread.StepToTarget(true); // true);
11965
+ pingthread.StepToTarget(); // true);
1195111966 // zoomonce = false;
1195211967 }
1195311968
....@@ -14328,6 +14343,7 @@
1432814343 public void mouseClicked(MouseEvent e)
1432914344 {
1433014345 System.out.println("mouseClicked: " + e);
14346
+ System.exit(0);
1433114347 }
1433214348
1433314349 public void mousePressed(MouseEvent e)
....@@ -14412,7 +14428,7 @@
1441214428 //}
1441314429
1441414430 SetMouseMode(e.getModifiers(), WHEEL | e.getModifiersEx());
14415
- drag(anchorX, anchorY + e.getUnitsToScroll()*8, 0, 0);
14431
+ drag(anchorX, anchorY + e.getUnitsToScroll()*8, e.getModifiers(), e.getModifiersEx());
1441614432 anchorX = ax;
1441714433 anchorY = ay;
1441814434 prevX = px;
....@@ -14507,8 +14523,9 @@
1450714523 // fev 2014???
1450814524 if ((TRACK || SHADOWTRACK) && trackedobject != null) // && DrawMode() == SHADOW) // && !lightMode)
1450914525 object.GetWindow().ScreenFit(trackedobject, SHADOWTRACK && !TRACK);
14510
- pingthread.StepToTarget(true); // true);
14526
+ pingthread.StepToTarget(); // true);
1451114527 }
14528
+
1451214529 // if (!LIVE)
1451314530 super.repaint();
1451414531 }
....@@ -14603,8 +14620,8 @@
1460314620
1460414621 //if (drawing)
1460514622 //return;
14606
- if ((e.getModifiersEx() & CTRL) != 0
14607
- || (e.getModifiersEx() & COMMAND) != 0) // || IsFrozen())
14623
+ if ((e.getModifiersEx() & CTRL) != 0 ||
14624
+ (e.getModifiersEx() & COMMAND) != 0) // || IsFrozen())
1460814625 {
1460914626 //System.out.println("mouseDragged: " + e);
1461014627 clickEnd(e.getX(), e.getY(), e.getModifiersEx());
....@@ -14628,11 +14645,17 @@
1462814645 return targetLookAt;
1462914646 }
1463014647
14648
+ javax.vecmath.Point3d eye = new javax.vecmath.Point3d();
14649
+ javax.vecmath.Point3d eye2 = new javax.vecmath.Point3d();
14650
+ javax.vecmath.Vector3d dir = new javax.vecmath.Vector3d();
14651
+
14652
+
1463114653 class PingThread extends Thread
1463214654 {
1463314655 boolean jump;
14656
+ boolean live;
1463414657
14635
- boolean mute;
14658
+ boolean mute = false;
1463614659
1463714660 // void JumpToTarget()
1463814661 // {
....@@ -14648,8 +14671,94 @@
1464814671 // only one thread!? synchronized
1464914672 void StepToTarget(boolean jump)
1465014673 {
14674
+ RigidBody.pos.x = 0;
14675
+ RigidBody.pos.y = 0;
14676
+ RigidBody.pos.z = 0;
14677
+ if (RigidBody.justclicked)
14678
+ {
14679
+// RigidBody.pos.x = (float)manipCamera.lookAt.x;
14680
+// RigidBody.pos.y = (float)manipCamera.lookAt.y;
14681
+// RigidBody.pos.z = (float)manipCamera.lookAt.z;
14682
+ // System.err.println("selected point = " + Trunk(selectedpoint.toParent[3][0]) + " " + Trunk(selectedpoint.toParent[3][1]) + " " + Trunk(selectedpoint.toParent[3][2]));
14683
+ CreateSelectedPoint();
14684
+
14685
+ RigidBody.pos.x = (float)selectedpoint.toParent[3][0];
14686
+ RigidBody.pos.y = (float)selectedpoint.toParent[3][1];
14687
+ RigidBody.pos.z = (float)selectedpoint.toParent[3][2];
14688
+
14689
+ RigidBody.wind.set(RigidBody.pos);
14690
+ RigidBody.wind.x -= (float)manipCamera.location.x;
14691
+ RigidBody.wind.y -= (float)manipCamera.location.y;
14692
+ RigidBody.wind.z -= (float)manipCamera.location.z;
14693
+ RigidBody.wind.normalize();
14694
+ }
14695
+
1465114696 if (mute)
1465214697 return;
14698
+
14699
+ if (capsLocked && manipCamera.viewCode == 0)
14700
+ {
14701
+ eye.x = manipCamera.location.x;
14702
+ eye.y = manipCamera.location.y + 0.25;
14703
+ eye.z = manipCamera.location.z;
14704
+
14705
+ dir.y = -1;
14706
+
14707
+ Ray ray = new Ray(eye, dir);
14708
+
14709
+ IntersectResult res = new IntersectResult();
14710
+ res.t = Double.POSITIVE_INFINITY;
14711
+
14712
+ tmp.set(targetLookAt);
14713
+ tmp.sub(manipCamera.location);
14714
+
14715
+ double dist = tmp.length();
14716
+
14717
+ tmp.normalize();
14718
+
14719
+ eye2.x = manipCamera.location.x + tmp.x * 0.25;
14720
+ eye2.y = manipCamera.location.y + 0.25;
14721
+ eye2.z = manipCamera.location.z + tmp.z * 0.25;
14722
+
14723
+ Ray ray2 = new Ray(eye2, dir);
14724
+
14725
+ IntersectResult res2 = new IntersectResult();
14726
+ res2.t = Double.POSITIVE_INFINITY;
14727
+
14728
+ if (object.intersect(ray, res) && object.intersect(ray2, res2) && Math.abs(res.t - res2.t) < 0.25)
14729
+ {
14730
+ //tmp.set(manipCamera.location);
14731
+
14732
+ manipCamera.location.x = ray.eyePoint.x + ray.viewDirection.x * res.t;
14733
+ manipCamera.location.y = ray.eyePoint.y + ray.viewDirection.y * res.t + 0.5;
14734
+ manipCamera.location.z = ray.eyePoint.z + ray.viewDirection.z * res.t;
14735
+
14736
+ //tmp.sub(manipCamera.location);
14737
+
14738
+ targetLookAt.x = ray2.eyePoint.x + ray2.viewDirection.x * res2.t;
14739
+ targetLookAt.y = ray2.eyePoint.y + ray2.viewDirection.y * res2.t + 0.5;
14740
+ targetLookAt.z = ray2.eyePoint.z + ray2.viewDirection.z * res2.t;
14741
+
14742
+ targetLookAt.sub(manipCamera.location);
14743
+ targetLookAt.normalize();
14744
+ targetLookAt.mul(dist);
14745
+ targetLookAt.add(manipCamera.location);
14746
+
14747
+ //if (tmp.dot(tmp) > 0.000001)
14748
+ // System.out.println("INTERSECTION " + manipCamera.location);
14749
+
14750
+ manipCamera.lookAt.set(targetLookAt);
14751
+
14752
+ tmp.x = res.n.x;
14753
+ tmp.y = res.n.y;
14754
+ tmp.z = res.n.z;
14755
+ tmp.x += res2.n.x;
14756
+ tmp.y += res2.n.y;
14757
+ tmp.z += res2.n.z;
14758
+ tmp.normalize();
14759
+ manipCamera.UP.set(tmp);
14760
+ }
14761
+ }
1465314762
1465414763 tmp.set(targetLookAt);
1465514764 tmp.sub(manipCamera.lookAt); // june 2014
....@@ -14688,7 +14797,7 @@
1468814797
1468914798 if (tmp.dot(tmp) > 1) // may 2014. far away: jump to target
1469014799 {
14691
- jump = true; // step = 1;
14800
+ // sep 2019 jump = true; // step = 1;
1469214801 }
1469314802
1469414803 if (OEILONCE && OEIL)
....@@ -14723,7 +14832,10 @@
1472314832 if (tmp.dot(tmp) < 0.00001)
1472414833 {
1472514834 zoomonce = false;
14835
+ live = false;
1472614836 }
14837
+ else
14838
+ live = true;
1472714839
1472814840 tmp.mul(step > step2 ? step : step2);
1472914841 }
....@@ -14750,7 +14862,7 @@
1475014862 {
1475114863 if (LOOKAT)
1475214864 manipCamera.lookAt.add(tmp);
14753
- if (OEIL)
14865
+ if (OEIL && !capsLocked)
1475414866 manipCamera.location.add(tmp);
1475514867
1475614868 {
....@@ -14765,7 +14877,10 @@
1476514877 lightCamera.computeTransform();
1476614878 }
1476714879 }
14768
- manipCamera.computeTransform();
14880
+ if (tmp.x != 0 || tmp.y != 0 || tmp.z != 0)
14881
+ {
14882
+ manipCamera.computeTransform();
14883
+ }
1476914884 }
1477014885 // ?????? mouseDown = true;
1477114886 //System.out.println("---------------- ---------- Paint " + tmp.length2());
....@@ -14862,8 +14977,28 @@
1486214977 PingThread pingthread = new PingThread();
1486314978 int delta = 1;
1486414979 int speed = 1;
14980
+ int walk = 8;
1486514981 boolean autorepeat = false;
1486614982
14983
+ void Walk()
14984
+ {
14985
+ manipCamera.BackForth(0, walk, 1000);
14986
+
14987
+ targetLookAt.set(manipCamera.lookAt);
14988
+ }
14989
+
14990
+ void ViewAngle(float dy)
14991
+ {
14992
+ double factor = Math.exp(-dy/300.0); // (1 + dy/100);
14993
+
14994
+ if (manipCamera.shaper_fovy * factor > 1 &&
14995
+ manipCamera.shaper_fovy * factor < 150)
14996
+ {
14997
+ manipCamera.shaper_fovy *= factor;
14998
+ //System.out.println("fovy = " + shaper_fovy);
14999
+ }
15000
+ }
15001
+
1486715002 void GoDown(int mod)
1486815003 {
1486915004 MODIFIERS |= COMMAND;
....@@ -14874,6 +15009,9 @@
1487415009 // if (isVR)
1487515010 // manipCamera.RotateInterest(0, speed);
1487615011 // else
15012
+ if (isVR)
15013
+ ViewAngle(-speed*delta);
15014
+ else
1487715015 manipCamera.Translate(0, -speed*delta, getWidth());
1487815016 }
1487915017 else
....@@ -14901,6 +15039,8 @@
1490115039
1490215040 void GoUp(int mod)
1490315041 {
15042
+ RigidBody.justclicked = true;
15043
+
1490415044 MODIFIERS |= COMMAND;
1490515045 /**/
1490615046 boolean isVR = (mouseMode&VR)!=0;
....@@ -14910,6 +15050,9 @@
1491015050 // if (isVR)
1491115051 // manipCamera.RotateInterest(0, -speed);
1491215052 // else
15053
+ if (isVR)
15054
+ ViewAngle(speed*delta);
15055
+ else
1491315056 manipCamera.Translate(0, speed*delta, getWidth());
1491415057 }
1491515058 else
....@@ -14940,13 +15083,13 @@
1494015083 MODIFIERS |= COMMAND;
1494115084 /**/
1494215085 if((mod&SHIFT) == SHIFT)
14943
- manipCamera.Translate(speed*delta, 0, getWidth());
15086
+ manipCamera.Translate(speed, 0, getWidth());
1494415087 else
1494515088 {
1494615089 if ((mouseMode&VR)!=0)
14947
- manipCamera.RotateInterest(-speed, 0);
15090
+ manipCamera.RotateInterest(-speed*manipCamera.shaper_fovy/90, 0);
1494815091 else
14949
- manipCamera.RotatePosition(speed, 0);
15092
+ manipCamera.RotatePosition(speed*manipCamera.shaper_fovy/90, 0);
1495015093 }
1495115094
1495215095 /**/
....@@ -14972,13 +15115,13 @@
1497215115 MODIFIERS |= COMMAND;
1497315116 /**/
1497415117 if((mod&SHIFT) == SHIFT)
14975
- manipCamera.Translate(-speed*delta, 0, getWidth());
15118
+ manipCamera.Translate(-speed, 0, getWidth());
1497615119 else
1497715120 {
1497815121 if ((mouseMode&VR)!=0)
14979
- manipCamera.RotateInterest(speed, 0);
15122
+ manipCamera.RotateInterest(speed*manipCamera.shaper_fovy/90, 0);
1498015123 else
14981
- manipCamera.RotatePosition(-speed, 0);
15124
+ manipCamera.RotatePosition(-speed*manipCamera.shaper_fovy/90, 0);
1498215125 }
1498315126
1498415127 /**/
....@@ -15125,6 +15268,11 @@
1512515268 if ((mouseMode & ZOOM) != 0)
1512615269 {
1512715270 //if ((mouseMode & BACKFORTH) != 0)
15271
+ if ((modifiersex & SHIFT) == SHIFT)
15272
+ {
15273
+ ViewAngle(dy);
15274
+ }
15275
+ else
1512815276 if ((mouseMode & VR) != 0)
1512915277 manipCamera.BackForth(dx, dy, getWidth());
1513015278 else
....@@ -15195,6 +15343,9 @@
1519515343
1519615344 public void mouseMoved(MouseEvent e)
1519715345 {
15346
+//object.editWindow.frame.
15347
+ setCursor(Cursor.getDefaultCursor());
15348
+
1519815349 //System.out.println("mouseMoved: " + e);
1519915350 if (isRenderer)
1520015351 return;
....@@ -15223,6 +15374,12 @@
1522315374
1522415375 public void mouseReleased(MouseEvent e)
1522515376 {
15377
+ if (isRenderer && !movingcamera)
15378
+ {
15379
+ RigidBody.justclicked = true;
15380
+ System.out.println("justclicked: " + e);
15381
+ }
15382
+
1522615383 Globals.MOUSEDRAGGED = false;
1522715384
1522815385 movingcamera = false;
....@@ -15439,8 +15596,18 @@
1543915596 float SATPOW = 1; // 2; // 0.5f;
1544015597 float BRIPOW = 1; // 0.5f; // 0.5f;
1544115598
15599
+static BufferedImage cursorImg = new BufferedImage(16, 16, BufferedImage.TYPE_INT_ARGB);
15600
+
15601
+// Create a new blank cursor.
15602
+static Cursor blankCursor = Toolkit.getDefaultToolkit().createCustomCursor(
15603
+ cursorImg, new Point(0, 0), "blank cursor");
15604
+
1544215605 public void keyPressed(int key)
1544315606 {
15607
+// Set the blank cursor to the JFrame.
15608
+//object.editWindow.frame.
15609
+ setCursor(blankCursor);
15610
+
1544415611 if (key >= '0' && key <= '5')
1544515612 clampbit = (key-'0');
1544615613
....@@ -15816,6 +15983,10 @@
1581615983 case ENTER:
1581715984 // object.editWindow.ScreenFit(); // Edit();
1581815985 ToggleLive();
15986
+ if (capsLocked)
15987
+ {
15988
+ Globals.WALK ^= true;
15989
+ }
1581915990 break;
1582015991 case DELETE:
1582115992 ClearSelection();
....@@ -15852,17 +16023,23 @@
1585216023 object.GetWindow().refreshContents(true);
1585316024 break;
1585416025 case '{':
15855
- manipCamera.shaper_fovy /= 1.1;
16026
+ double factor = 1.1;
16027
+ if (manipCamera.shaper_fovy / factor > 0.1)
16028
+ manipCamera.shaper_fovy /= factor;
1585616029 System.out.println("FOV = " + manipCamera.shaper_fovy);
1585716030 repaint();
1585816031 break;
1585916032 case '}':
15860
- manipCamera.shaper_fovy *= 1.1;
16033
+ factor = 1.1;
16034
+ if (manipCamera.shaper_fovy * factor < 150)
16035
+ manipCamera.shaper_fovy *= factor;
1586116036 System.out.println("FOV = " + manipCamera.shaper_fovy);
1586216037 repaint();
1586316038 break;
1586416039 case '[':
15865
- manipCamera.shaper_fovy /= 1.01;
16040
+ factor = 1.01;
16041
+ if (manipCamera.shaper_fovy / factor > 0.1)
16042
+ manipCamera.shaper_fovy /= factor;
1586616043 if (false) //manipCamera.hAspect == 0)
1586716044 {
1586816045 double x = Math.tan(manipCamera.shaper_fovy * Math.PI / 180 / 2);
....@@ -15878,7 +16055,9 @@
1587816055 break;
1587916056 case ']':
1588016057 //manipCamera.shaper_fovy += (180 - manipCamera.shaper_fovy)*0.1;
15881
- manipCamera.shaper_fovy *= 1.01;
16058
+ factor = 1.01;
16059
+ if (manipCamera.shaper_fovy * factor < 150)
16060
+ manipCamera.shaper_fovy *= factor;
1588216061 if (false) //manipCamera.hAspect == 0)
1588316062 {
1588416063 double x = Math.tan(manipCamera.shaper_fovy * Math.PI / 180 / 2);
....@@ -16598,7 +16777,8 @@
1659816777
1659916778 public boolean mouseDrag(Event evt, int x, int y)
1660016779 {
16601
- //System.out.println("mouseDrag: " + evt);
16780
+ System.out.println("mouseDrag: " + evt);
16781
+ System.exit(0);
1660216782 /*
1660316783 drag = true;
1660416784 //System.out.println("Mouse DRAG");
....@@ -16717,6 +16897,7 @@
1671716897 public boolean mouseUp(Event evt, int x, int y)
1671816898 {
1671916899 System.out.println("mouseUp: " + evt);
16900
+ System.exit(0);
1672016901 /*
1672116902 locked = false;
1672216903 if (isRenderer)
....@@ -16987,7 +17168,7 @@
1698717168 return;
1698817169 }
1698917170
16990
- if (WIREFRAME)
17171
+ //if (WIREFRAME)
1699117172 gl.glPolygonMode(gl.GL_FRONT_AND_BACK, gl.GL_FILL);
1699217173
1699317174 gl.glDisable(gl.GL_CULL_FACE);
....@@ -17087,6 +17268,8 @@
1708717268
1708817269 if (WIREFRAME)
1708917270 gl.glPolygonMode(gl.GL_FRONT_AND_BACK, gl.GL_LINE);
17271
+ else
17272
+ gl.glPolygonMode(gl.GL_FRONT_AND_BACK, gl.GL_FILL);
1709017273 }
1709117274
1709217275 private void DrawChecker(GL gl)
....@@ -18091,7 +18274,7 @@
1809118274
1809218275 private boolean keepshadow;
1809318276
18094
- public boolean capsLocked = false; // VR
18277
+ static public boolean capsLocked = false; // VR
1809518278
1809618279 static public int indexcount = 0;
1809718280 /*static*/ cColor vertexOcclusion = new cColor();