Normand Briere
2019-09-15 d5fac992bb6a91e52a90e8318060f5f26ddab982
CameraPane.java
....@@ -9854,7 +9854,7 @@
98549854
98559855 boolean vr = capsLocked && !lightMode;
98569856
9857
- accPerspective(gl, renderCamera.shaper_fovy / ratio * (vr ? 2 : 1),
9857
+ accPerspective(gl, renderCamera.shaper_fovy / ratio * (vr ? 1.2 : 1),
98589858 ratio,
98599859 //near_plane, far_plane,
98609860 renderCamera.shaper_zNear * renderCamera.Distance(), renderCamera.shaper_zFar * renderCamera.Distance(),
....@@ -11513,7 +11513,8 @@
1151311513 {
1151411514 boolean vr = capsLocked && !lightMode;
1151511515
11516
- glu.gluPerspective(cam.shaper_fovy / ratio * (vr ? 2 : 1), ratio, cam.shaper_zNear * cam.Distance(), cam.shaper_zFar * cam.Distance());
11516
+ glu.gluPerspective(cam.shaper_fovy / ratio * (vr ? 1.2 : 1),
11517
+ ratio, cam.shaper_zNear * cam.Distance(), cam.shaper_zFar * cam.Distance());
1151711518 }
1151811519 }
1151911520
....@@ -14603,8 +14604,8 @@
1460314604
1460414605 //if (drawing)
1460514606 //return;
14606
- if ((e.getModifiersEx() & CTRL) != 0
14607
- || (e.getModifiersEx() & COMMAND) != 0) // || IsFrozen())
14607
+ if ((e.getModifiersEx() & CTRL) != 0 ||
14608
+ (e.getModifiersEx() & COMMAND) != 0) // || IsFrozen())
1460814609 {
1460914610 //System.out.println("mouseDragged: " + e);
1461014611 clickEnd(e.getX(), e.getY(), e.getModifiersEx());
....@@ -14750,7 +14751,7 @@
1475014751 {
1475114752 if (LOOKAT)
1475214753 manipCamera.lookAt.add(tmp);
14753
- if (OEIL)
14754
+ if (OEIL && !capsLocked)
1475414755 manipCamera.location.add(tmp);
1475514756
1475614757 {
....@@ -14765,7 +14766,10 @@
1476514766 lightCamera.computeTransform();
1476614767 }
1476714768 }
14768
- manipCamera.computeTransform();
14769
+ if (tmp.x != 0 || tmp.y != 0 || tmp.z != 0)
14770
+ {
14771
+ manipCamera.computeTransform();
14772
+ }
1476914773 }
1477014774 // ?????? mouseDown = true;
1477114775 //System.out.println("---------------- ---------- Paint " + tmp.length2());
....@@ -15195,6 +15199,9 @@
1519515199
1519615200 public void mouseMoved(MouseEvent e)
1519715201 {
15202
+//object.editWindow.frame.
15203
+ setCursor(Cursor.getDefaultCursor());
15204
+
1519815205 //System.out.println("mouseMoved: " + e);
1519915206 if (isRenderer)
1520015207 return;
....@@ -15439,8 +15446,18 @@
1543915446 float SATPOW = 1; // 2; // 0.5f;
1544015447 float BRIPOW = 1; // 0.5f; // 0.5f;
1544115448
15449
+static BufferedImage cursorImg = new BufferedImage(16, 16, BufferedImage.TYPE_INT_ARGB);
15450
+
15451
+// Create a new blank cursor.
15452
+static Cursor blankCursor = Toolkit.getDefaultToolkit().createCustomCursor(
15453
+ cursorImg, new Point(0, 0), "blank cursor");
15454
+
1544215455 public void keyPressed(int key)
1544315456 {
15457
+// Set the blank cursor to the JFrame.
15458
+//object.editWindow.frame.
15459
+ setCursor(blankCursor);
15460
+
1544415461 if (key >= '0' && key <= '5')
1544515462 clampbit = (key-'0');
1544615463