Normand Briere
2019-09-25 51e45bf615e1e2b4aca2edf9f7333b687c7d015e
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.*;
....@@ -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;
....@@ -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 }
....@@ -3601,6 +3590,8 @@
36013590 };
36023591 /**/
36033592
3593
+ static Object3D lastObject;
3594
+
36043595 //com.sun.opengl.util.texture.Texture
36053596 TextureData
36063597 GetFileTexture(String name, boolean bump, int resolution)
....@@ -3637,6 +3628,8 @@
36373628 // return null;
36383629 //if (i == 2)
36393630 // return null;
3631
+ // TIFF issue sept 2019
3632
+ System.err.println("lastObject = " + lastObject);
36403633 e.printStackTrace();
36413634 name = name.split("\\.tif")[0] + ".jpg";
36423635 }
....@@ -6969,30 +6962,30 @@
69696962 short residu = 0;
69706963
69716964 // wraparound workarounds
6972
- short fuck = (short) (buffer[i] & 0xFF);
6965
+ short ww = (short) (buffer[i] & 0xFF);
69736966 /*
6974
- residu += (fuck%2);
6975
- if(fuck/2 < 256-residu/2)
6967
+ residu += (ww%2);
6968
+ if(ww/2 < 256-residu/2)
69766969 {
6977
- fuck = (short)((fuck/2) + residu/2);
6970
+ ww = (short)((ww/2) + residu/2);
69786971 if(residu == 2)
69796972 residu = 0;
69806973 }
69816974 else
69826975 {
69836976 residu = 0;
6984
- fuck /= 2;
6977
+ ww /= 2;
69856978 }
69866979 */
6987
- if (i < imglength / 3 || rnd.nextFloat() < 0.5 || fuck >= 254)
6980
+ if (i < imglength / 3 || rnd.nextFloat() < 0.5 || ww >= 254)
69886981 {
6989
- fuck /= 2;
6982
+ ww /= 2;
69906983 } else
69916984 {
6992
- fuck = (short) ((fuck / 2) + fuck % 2);
6985
+ ww = (short) ((ww / 2) + ww % 2);
69936986 }
69946987
6995
- buffer[i] = (byte) fuck;
6988
+ buffer[i] = (byte) ww;
69966989 }
69976990 //System.out.print(bytes[i] + " ");
69986991 //if(buffer[i] >= 0 && buffer[i]<=eps-1) buffer[i] = eps;
....@@ -9850,7 +9843,7 @@
98509843
98519844 boolean vr = capsLocked && !lightMode;
98529845
9853
- accPerspective(gl, renderCamera.shaper_fovy / ratio * (vr ? 2 : 1),
9846
+ accPerspective(gl, renderCamera.shaper_fovy / ratio * (vr ? 1.2 : 1),
98549847 ratio,
98559848 //near_plane, far_plane,
98569849 renderCamera.shaper_zNear * renderCamera.Distance(), renderCamera.shaper_zFar * renderCamera.Distance(),
....@@ -10912,6 +10905,12 @@
1091210905 else
1091310906 speedkey[RIGHT_ARROW] = 0;
1091410907
10908
+ if (Globals.WALK && capsLocked)
10909
+ {
10910
+ Walk();
10911
+ keyon = true;
10912
+ }
10913
+
1091510914 if (keyon)
1091610915 {
1091710916 repaint();
....@@ -11509,7 +11508,8 @@
1150911508 {
1151011509 boolean vr = capsLocked && !lightMode;
1151111510
11512
- glu.gluPerspective(cam.shaper_fovy / ratio * (vr ? 2 : 1), ratio, cam.shaper_zNear * cam.Distance(), cam.shaper_zFar * cam.Distance());
11511
+ glu.gluPerspective(cam.shaper_fovy / ratio * (vr ? 1.2 : 1),
11512
+ ratio, cam.shaper_zNear * cam.Distance(), cam.shaper_zFar * cam.Distance());
1151311513 }
1151411514 }
1151511515
....@@ -11865,8 +11865,11 @@
1186511865 repaint();
1186611866 }
1186711867
11868
- if (Globals.isLIVE() && DrawMode() == DEFAULT) // may 2013
11868
+ if (Globals.isLIVE() && DrawMode() == DEFAULT || pingthread.live) // may 2013
11869
+ {
11870
+ renderCamera.computeTransform();
1186911871 repaint();
11872
+ }
1187011873
1187111874 displaydone = true;
1187211875 }
....@@ -11941,9 +11944,23 @@
1194111944 //GL gl = getGL();
1194211945 if ((TRACK || SHADOWTRACK) || zoomonce)
1194311946 {
11947
+ if (TRACK)
11948
+ {
11949
+ if (object.selection != null &&
11950
+ object.selection.size() > 0 &&
11951
+ object.selection.elementAt(0) != null &&
11952
+ !(object.selection.elementAt(0) instanceof Camera) &&
11953
+ !(object.selection.elementAt(0) instanceof ScriptNode))
11954
+ {
11955
+ trackedobject = object.selection.elementAt(0);
11956
+ //repaint();
11957
+ }
11958
+ else
11959
+ trackedobject = null;
11960
+ }
1194411961 if ((TRACK || SHADOWTRACK) && trackedobject != null && DrawMode() == SHADOW) // && !lightMode)
1194511962 object.GetWindow().ScreenFit(trackedobject, SHADOWTRACK && !TRACK);
11946
- pingthread.StepToTarget(true); // true);
11963
+ pingthread.StepToTarget(); // true);
1194711964 // zoomonce = false;
1194811965 }
1194911966
....@@ -14324,10 +14341,13 @@
1432414341 public void mouseClicked(MouseEvent e)
1432514342 {
1432614343 System.out.println("mouseClicked: " + e);
14344
+ System.exit(0);
1432714345 }
1432814346
1432914347 public void mousePressed(MouseEvent e)
1433014348 {
14349
+ RigidBody.justclicked = true;
14350
+ System.out.println("justclicked: " + e);
1433114351 //System.out.println("mousePressed: " + e);
1433214352 clickStart(e.getX(), e.getY(), e.getModifiers(), e.getModifiersEx());
1433314353 }
....@@ -14408,7 +14428,7 @@
1440814428 //}
1440914429
1441014430 SetMouseMode(e.getModifiers(), WHEEL | e.getModifiersEx());
14411
- drag(anchorX, anchorY + e.getUnitsToScroll()*8, 0, 0);
14431
+ drag(anchorX, anchorY + e.getUnitsToScroll()*8, e.getModifiers(), e.getModifiersEx());
1441214432 anchorX = ax;
1441314433 anchorY = ay;
1441414434 prevX = px;
....@@ -14503,8 +14523,9 @@
1450314523 // fev 2014???
1450414524 if ((TRACK || SHADOWTRACK) && trackedobject != null) // && DrawMode() == SHADOW) // && !lightMode)
1450514525 object.GetWindow().ScreenFit(trackedobject, SHADOWTRACK && !TRACK);
14506
- pingthread.StepToTarget(true); // true);
14526
+ pingthread.StepToTarget(); // true);
1450714527 }
14528
+
1450814529 // if (!LIVE)
1450914530 super.repaint();
1451014531 }
....@@ -14599,8 +14620,8 @@
1459914620
1460014621 //if (drawing)
1460114622 //return;
14602
- if ((e.getModifiersEx() & CTRL) != 0
14603
- || (e.getModifiersEx() & COMMAND) != 0) // || IsFrozen())
14623
+ if ((e.getModifiersEx() & CTRL) != 0 ||
14624
+ (e.getModifiersEx() & COMMAND) != 0) // || IsFrozen())
1460414625 {
1460514626 //System.out.println("mouseDragged: " + e);
1460614627 clickEnd(e.getX(), e.getY(), e.getModifiersEx());
....@@ -14624,9 +14645,15 @@
1462414645 return targetLookAt;
1462514646 }
1462614647
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
+
1462714653 class PingThread extends Thread
1462814654 {
1462914655 boolean jump;
14656
+ boolean live;
1463014657
1463114658 boolean mute;
1463214659
....@@ -14644,8 +14671,87 @@
1464414671 // only one thread!? synchronized
1464514672 void StepToTarget(boolean jump)
1464614673 {
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
+ RigidBody.wind.set(RigidBody.pos);
14683
+ RigidBody.wind.x -= (float)manipCamera.location.x;
14684
+ RigidBody.wind.y -= (float)manipCamera.location.y;
14685
+ RigidBody.wind.z -= (float)manipCamera.location.z;
14686
+ RigidBody.wind.normalize();
14687
+ }
14688
+
1464714689 if (mute)
1464814690 return;
14691
+
14692
+ if (capsLocked && manipCamera.viewCode == 0)
14693
+ {
14694
+ eye.x = manipCamera.location.x;
14695
+ eye.y = manipCamera.location.y + 0.25;
14696
+ eye.z = manipCamera.location.z;
14697
+
14698
+ dir.y = -1;
14699
+
14700
+ Ray ray = new Ray(eye, dir);
14701
+
14702
+ IntersectResult res = new IntersectResult();
14703
+ res.t = Double.POSITIVE_INFINITY;
14704
+
14705
+ tmp.set(targetLookAt);
14706
+ tmp.sub(manipCamera.location);
14707
+
14708
+ double dist = tmp.length();
14709
+
14710
+ tmp.normalize();
14711
+
14712
+ eye2.x = manipCamera.location.x + tmp.x * 0.25;
14713
+ eye2.y = manipCamera.location.y + 0.25;
14714
+ eye2.z = manipCamera.location.z + tmp.z * 0.25;
14715
+
14716
+ Ray ray2 = new Ray(eye2, dir);
14717
+
14718
+ IntersectResult res2 = new IntersectResult();
14719
+ res2.t = Double.POSITIVE_INFINITY;
14720
+
14721
+ if (object.intersect(ray, res) && object.intersect(ray2, res2) && Math.abs(res.t - res2.t) < 0.25)
14722
+ {
14723
+ //tmp.set(manipCamera.location);
14724
+
14725
+ manipCamera.location.x = ray.eyePoint.x + ray.viewDirection.x * res.t;
14726
+ manipCamera.location.y = ray.eyePoint.y + ray.viewDirection.y * res.t + 0.5;
14727
+ manipCamera.location.z = ray.eyePoint.z + ray.viewDirection.z * res.t;
14728
+
14729
+ //tmp.sub(manipCamera.location);
14730
+
14731
+ targetLookAt.x = ray2.eyePoint.x + ray2.viewDirection.x * res2.t;
14732
+ targetLookAt.y = ray2.eyePoint.y + ray2.viewDirection.y * res2.t + 0.5;
14733
+ targetLookAt.z = ray2.eyePoint.z + ray2.viewDirection.z * res2.t;
14734
+
14735
+ targetLookAt.sub(manipCamera.location);
14736
+ targetLookAt.normalize();
14737
+ targetLookAt.mul(dist);
14738
+ targetLookAt.add(manipCamera.location);
14739
+
14740
+ //if (tmp.dot(tmp) > 0.000001)
14741
+ // System.out.println("INTERSECTION " + manipCamera.location);
14742
+
14743
+ manipCamera.lookAt.set(targetLookAt);
14744
+
14745
+ tmp.x = res.n.x;
14746
+ tmp.y = res.n.y;
14747
+ tmp.z = res.n.z;
14748
+ tmp.x += res2.n.x;
14749
+ tmp.y += res2.n.y;
14750
+ tmp.z += res2.n.z;
14751
+ tmp.normalize();
14752
+ manipCamera.UP.set(tmp);
14753
+ }
14754
+ }
1464914755
1465014756 tmp.set(targetLookAt);
1465114757 tmp.sub(manipCamera.lookAt); // june 2014
....@@ -14684,7 +14790,7 @@
1468414790
1468514791 if (tmp.dot(tmp) > 1) // may 2014. far away: jump to target
1468614792 {
14687
- jump = true; // step = 1;
14793
+ // sep 2019 jump = true; // step = 1;
1468814794 }
1468914795
1469014796 if (OEILONCE && OEIL)
....@@ -14719,7 +14825,10 @@
1471914825 if (tmp.dot(tmp) < 0.00001)
1472014826 {
1472114827 zoomonce = false;
14828
+ live = false;
1472214829 }
14830
+ else
14831
+ live = true;
1472314832
1472414833 tmp.mul(step > step2 ? step : step2);
1472514834 }
....@@ -14746,7 +14855,7 @@
1474614855 {
1474714856 if (LOOKAT)
1474814857 manipCamera.lookAt.add(tmp);
14749
- if (OEIL)
14858
+ if (OEIL && !capsLocked)
1475014859 manipCamera.location.add(tmp);
1475114860
1475214861 {
....@@ -14761,7 +14870,10 @@
1476114870 lightCamera.computeTransform();
1476214871 }
1476314872 }
14764
- manipCamera.computeTransform();
14873
+ if (tmp.x != 0 || tmp.y != 0 || tmp.z != 0)
14874
+ {
14875
+ manipCamera.computeTransform();
14876
+ }
1476514877 }
1476614878 // ?????? mouseDown = true;
1476714879 //System.out.println("---------------- ---------- Paint " + tmp.length2());
....@@ -14858,8 +14970,28 @@
1485814970 PingThread pingthread = new PingThread();
1485914971 int delta = 1;
1486014972 int speed = 1;
14973
+ int walk = 8;
1486114974 boolean autorepeat = false;
1486214975
14976
+ void Walk()
14977
+ {
14978
+ manipCamera.BackForth(0, walk, 1000);
14979
+
14980
+ targetLookAt.set(manipCamera.lookAt);
14981
+ }
14982
+
14983
+ void ViewAngle(float dy)
14984
+ {
14985
+ double factor = Math.exp(-dy/300.0); // (1 + dy/100);
14986
+
14987
+ if (manipCamera.shaper_fovy * factor > 1 &&
14988
+ manipCamera.shaper_fovy * factor < 150)
14989
+ {
14990
+ manipCamera.shaper_fovy *= factor;
14991
+ //System.out.println("fovy = " + shaper_fovy);
14992
+ }
14993
+ }
14994
+
1486314995 void GoDown(int mod)
1486414996 {
1486514997 MODIFIERS |= COMMAND;
....@@ -14870,6 +15002,9 @@
1487015002 // if (isVR)
1487115003 // manipCamera.RotateInterest(0, speed);
1487215004 // else
15005
+ if (isVR)
15006
+ ViewAngle(-speed*delta);
15007
+ else
1487315008 manipCamera.Translate(0, -speed*delta, getWidth());
1487415009 }
1487515010 else
....@@ -14897,6 +15032,8 @@
1489715032
1489815033 void GoUp(int mod)
1489915034 {
15035
+ RigidBody.justclicked = true;
15036
+
1490015037 MODIFIERS |= COMMAND;
1490115038 /**/
1490215039 boolean isVR = (mouseMode&VR)!=0;
....@@ -14906,6 +15043,9 @@
1490615043 // if (isVR)
1490715044 // manipCamera.RotateInterest(0, -speed);
1490815045 // else
15046
+ if (isVR)
15047
+ ViewAngle(speed*delta);
15048
+ else
1490915049 manipCamera.Translate(0, speed*delta, getWidth());
1491015050 }
1491115051 else
....@@ -14936,13 +15076,13 @@
1493615076 MODIFIERS |= COMMAND;
1493715077 /**/
1493815078 if((mod&SHIFT) == SHIFT)
14939
- manipCamera.Translate(speed*delta, 0, getWidth());
15079
+ manipCamera.Translate(speed, 0, getWidth());
1494015080 else
1494115081 {
1494215082 if ((mouseMode&VR)!=0)
14943
- manipCamera.RotateInterest(-speed, 0);
15083
+ manipCamera.RotateInterest(-speed*manipCamera.shaper_fovy/90, 0);
1494415084 else
14945
- manipCamera.RotatePosition(speed, 0);
15085
+ manipCamera.RotatePosition(speed*manipCamera.shaper_fovy/90, 0);
1494615086 }
1494715087
1494815088 /**/
....@@ -14968,13 +15108,13 @@
1496815108 MODIFIERS |= COMMAND;
1496915109 /**/
1497015110 if((mod&SHIFT) == SHIFT)
14971
- manipCamera.Translate(-speed*delta, 0, getWidth());
15111
+ manipCamera.Translate(-speed, 0, getWidth());
1497215112 else
1497315113 {
1497415114 if ((mouseMode&VR)!=0)
14975
- manipCamera.RotateInterest(speed, 0);
15115
+ manipCamera.RotateInterest(speed*manipCamera.shaper_fovy/90, 0);
1497615116 else
14977
- manipCamera.RotatePosition(-speed, 0);
15117
+ manipCamera.RotatePosition(-speed*manipCamera.shaper_fovy/90, 0);
1497815118 }
1497915119
1498015120 /**/
....@@ -15121,6 +15261,11 @@
1512115261 if ((mouseMode & ZOOM) != 0)
1512215262 {
1512315263 //if ((mouseMode & BACKFORTH) != 0)
15264
+ if ((modifiersex & SHIFT) == SHIFT)
15265
+ {
15266
+ ViewAngle(dy);
15267
+ }
15268
+ else
1512415269 if ((mouseMode & VR) != 0)
1512515270 manipCamera.BackForth(dx, dy, getWidth());
1512615271 else
....@@ -15191,6 +15336,9 @@
1519115336
1519215337 public void mouseMoved(MouseEvent e)
1519315338 {
15339
+//object.editWindow.frame.
15340
+ setCursor(Cursor.getDefaultCursor());
15341
+
1519415342 //System.out.println("mouseMoved: " + e);
1519515343 if (isRenderer)
1519615344 return;
....@@ -15435,8 +15583,18 @@
1543515583 float SATPOW = 1; // 2; // 0.5f;
1543615584 float BRIPOW = 1; // 0.5f; // 0.5f;
1543715585
15586
+static BufferedImage cursorImg = new BufferedImage(16, 16, BufferedImage.TYPE_INT_ARGB);
15587
+
15588
+// Create a new blank cursor.
15589
+static Cursor blankCursor = Toolkit.getDefaultToolkit().createCustomCursor(
15590
+ cursorImg, new Point(0, 0), "blank cursor");
15591
+
1543815592 public void keyPressed(int key)
1543915593 {
15594
+// Set the blank cursor to the JFrame.
15595
+//object.editWindow.frame.
15596
+ setCursor(blankCursor);
15597
+
1544015598 if (key >= '0' && key <= '5')
1544115599 clampbit = (key-'0');
1544215600
....@@ -15753,6 +15911,16 @@
1575315911 break;
1575415912 case 'l':
1575515913 lightMode ^= true;
15914
+ if (lightMode)
15915
+ {
15916
+ keepshadow = Globals.RENDERSHADOW;
15917
+ Globals.RENDERSHADOW = false;
15918
+ }
15919
+ else
15920
+ {
15921
+ Globals.RENDERSHADOW = keepshadow;
15922
+ }
15923
+
1575615924 Globals.lighttouched = true;
1575715925 manipCamera = renderCamera = lightMode ? lightCamera : eyeCamera;
1575815926 targetLookAt.set(manipCamera.lookAt);
....@@ -15802,6 +15970,10 @@
1580215970 case ENTER:
1580315971 // object.editWindow.ScreenFit(); // Edit();
1580415972 ToggleLive();
15973
+ if (capsLocked)
15974
+ {
15975
+ Globals.WALK ^= true;
15976
+ }
1580515977 break;
1580615978 case DELETE:
1580715979 ClearSelection();
....@@ -15838,17 +16010,23 @@
1583816010 object.GetWindow().refreshContents(true);
1583916011 break;
1584016012 case '{':
15841
- manipCamera.shaper_fovy /= 1.1;
16013
+ double factor = 1.1;
16014
+ if (manipCamera.shaper_fovy / factor > 0.1)
16015
+ manipCamera.shaper_fovy /= factor;
1584216016 System.out.println("FOV = " + manipCamera.shaper_fovy);
1584316017 repaint();
1584416018 break;
1584516019 case '}':
15846
- manipCamera.shaper_fovy *= 1.1;
16020
+ factor = 1.1;
16021
+ if (manipCamera.shaper_fovy * factor < 150)
16022
+ manipCamera.shaper_fovy *= factor;
1584716023 System.out.println("FOV = " + manipCamera.shaper_fovy);
1584816024 repaint();
1584916025 break;
1585016026 case '[':
15851
- manipCamera.shaper_fovy /= 1.01;
16027
+ factor = 1.01;
16028
+ if (manipCamera.shaper_fovy / factor > 0.1)
16029
+ manipCamera.shaper_fovy /= factor;
1585216030 if (false) //manipCamera.hAspect == 0)
1585316031 {
1585416032 double x = Math.tan(manipCamera.shaper_fovy * Math.PI / 180 / 2);
....@@ -15864,7 +16042,9 @@
1586416042 break;
1586516043 case ']':
1586616044 //manipCamera.shaper_fovy += (180 - manipCamera.shaper_fovy)*0.1;
15867
- manipCamera.shaper_fovy *= 1.01;
16045
+ factor = 1.01;
16046
+ if (manipCamera.shaper_fovy * factor < 150)
16047
+ manipCamera.shaper_fovy *= factor;
1586816048 if (false) //manipCamera.hAspect == 0)
1586916049 {
1587016050 double x = Math.tan(manipCamera.shaper_fovy * Math.PI / 180 / 2);
....@@ -16584,7 +16764,8 @@
1658416764
1658516765 public boolean mouseDrag(Event evt, int x, int y)
1658616766 {
16587
- //System.out.println("mouseDrag: " + evt);
16767
+ System.out.println("mouseDrag: " + evt);
16768
+ System.exit(0);
1658816769 /*
1658916770 drag = true;
1659016771 //System.out.println("Mouse DRAG");
....@@ -16703,6 +16884,7 @@
1670316884 public boolean mouseUp(Event evt, int x, int y)
1670416885 {
1670516886 System.out.println("mouseUp: " + evt);
16887
+ System.exit(0);
1670616888 /*
1670716889 locked = false;
1670816890 if (isRenderer)
....@@ -17410,7 +17592,7 @@
1741017592
1741117593 float depth = depths[y * TEX_SIZE + x];
1741217594
17413
- if (pointselection && mouseMode == SELECT && depth != 0 && depth != 1)
17595
+ if (pointselection && (mouseMode & SELECT) == SELECT && depth != 0 && depth != 1)
1741417596 {
1741517597 pointselection = false;
1741617598
....@@ -18075,7 +18257,9 @@
1807518257 boolean OCCLUSION_CULLING = false; //true;
1807618258 public boolean lightMode = false;
1807718259
18078
- public boolean capsLocked = false; // VR
18260
+ private boolean keepshadow;
18261
+
18262
+ static public boolean capsLocked = false; // VR
1807918263
1808018264 static public int indexcount = 0;
1808118265 /*static*/ cColor vertexOcclusion = new cColor();