.. | .. |
---|
86 | 86 | static boolean FULLSCREEN = false; |
---|
87 | 87 | static boolean SUPPORT = true; |
---|
88 | 88 | static boolean INERTIA = true; |
---|
89 | | -static boolean FAST = false; |
---|
| 89 | +static boolean FAST = true; // false; |
---|
90 | 90 | static boolean SLOWPOSE = false; |
---|
91 | 91 | static boolean FOOTCONTACT = true; |
---|
92 | 92 | |
---|
93 | 93 | static int tickcount = 0; // slow pose issue |
---|
94 | 94 | |
---|
| 95 | +static boolean BUTTONLESSWHEEL = false; |
---|
| 96 | +static boolean ZOOMBOXMODE = false; |
---|
95 | 97 | static boolean BOXMODE = false; |
---|
96 | 98 | static boolean IMAGEFLIP = false; |
---|
97 | 99 | static boolean SMOOTHFOCUS = false; |
---|
.. | .. |
---|
223 | 225 | public boolean IsBoxMode() |
---|
224 | 226 | { |
---|
225 | 227 | return BOXMODE; |
---|
| 228 | + } |
---|
| 229 | + |
---|
| 230 | + public boolean IsZoomBoxMode() |
---|
| 231 | + { |
---|
| 232 | + return ZOOMBOXMODE; |
---|
226 | 233 | } |
---|
227 | 234 | |
---|
228 | 235 | public void ClearDepth() |
---|
.. | .. |
---|
1612 | 1619 | //col.getColorComponents(ColorSpace.getInstance(ColorSpace.CS_LINEAR_RGB), CameraPane.modelParams0); |
---|
1613 | 1620 | if (!material.multiply) |
---|
1614 | 1621 | { |
---|
1615 | | - display.color = color; |
---|
| 1622 | + display.color = material.color; |
---|
1616 | 1623 | display.saturation = material.modulation; |
---|
1617 | 1624 | } |
---|
1618 | 1625 | else |
---|
1619 | 1626 | { |
---|
1620 | | - display.color *= color*2; |
---|
| 1627 | + display.color *= material.color*2; |
---|
1621 | 1628 | display.saturation *= material.modulation*2; |
---|
1622 | 1629 | } |
---|
1623 | 1630 | |
---|
.. | .. |
---|
2168 | 2175 | public void ToggleBoxMode() |
---|
2169 | 2176 | { |
---|
2170 | 2177 | BOXMODE ^= true; |
---|
| 2178 | + } |
---|
| 2179 | + |
---|
| 2180 | + public void ToggleZoomBoxMode() |
---|
| 2181 | + { |
---|
| 2182 | + ZOOMBOXMODE ^= true; |
---|
2171 | 2183 | } |
---|
2172 | 2184 | |
---|
2173 | 2185 | public void ToggleSmoothFocus() |
---|
.. | .. |
---|
4196 | 4208 | |
---|
4197 | 4209 | com.sun.opengl.util.texture.Texture CompressTexture2(String name) |
---|
4198 | 4210 | { |
---|
| 4211 | + new Exception().printStackTrace(); |
---|
4199 | 4212 | System.exit(0); |
---|
4200 | 4213 | com.sun.opengl.util.texture.Texture texture = null; |
---|
4201 | 4214 | |
---|
.. | .. |
---|
12735 | 12748 | "MUL final.y, fragment.texcoord[0].x, c256;" + |
---|
12736 | 12749 | "FLR final.x, final.y;" + |
---|
12737 | 12750 | "SUB final.y, final.y, final.x;" + |
---|
12738 | | - "MUL final.x, final.x, c256i;" + |
---|
| 12751 | + //"MUL final.x, final.x, c256i;" + |
---|
12739 | 12752 | "MOV final.z, zero.x;" + |
---|
12740 | 12753 | "MOV final.a, one.w;":"" |
---|
12741 | 12754 | ) + |
---|
.. | .. |
---|
12743 | 12756 | "MUL final.y, fragment.texcoord[0].y, c256;" + |
---|
12744 | 12757 | "FLR final.x, final.y;" + |
---|
12745 | 12758 | "SUB final.y, final.y, final.x;" + |
---|
12746 | | - "MUL final.x, final.x, c256i;" + |
---|
| 12759 | + //"MUL final.x, final.x, c256i;" + |
---|
12747 | 12760 | "MOV final.z, zero.x;" + |
---|
12748 | 12761 | "MOV final.a, one.w;":"" |
---|
12749 | 12762 | ) + |
---|
.. | .. |
---|
13523 | 13536 | |
---|
13524 | 13537 | //System.err.println("Dtime = " + Dtime + "; units = " + e.getUnitsToScroll() + "; ratio (units/ms) = " + ratio); |
---|
13525 | 13538 | |
---|
| 13539 | + if (BUTTONLESSWHEEL) |
---|
13526 | 13540 | if (Math.abs(ratio) < 0.1 || Math.abs(Dtime) == 0) // < 30) |
---|
13527 | 13541 | { |
---|
13528 | 13542 | return; |
---|
.. | .. |
---|
13531 | 13545 | boolean capsLocked = Toolkit.getDefaultToolkit().getLockingKeyState(KeyEvent.VK_CAPS_LOCK); |
---|
13532 | 13546 | |
---|
13533 | 13547 | // TIMER |
---|
13534 | | - if (!wheeltimer.isRunning() && e.getModifiersEx() == 0 && !capsLocked) // VR |
---|
| 13548 | + if (ZOOMBOXMODE && !wheeltimer.isRunning() && e.getModifiersEx() == 0 && !capsLocked) // VR |
---|
13535 | 13549 | { |
---|
13536 | 13550 | keepboxmode = BOXMODE; |
---|
13537 | 13551 | keepsupport = SUPPORT; |
---|
.. | .. |
---|
13748 | 13762 | |
---|
13749 | 13763 | public void mouseDragged(MouseEvent e) |
---|
13750 | 13764 | { |
---|
| 13765 | + //System.out.println("mouseDragged: " + e); |
---|
13751 | 13766 | if (isRenderer) |
---|
13752 | 13767 | movingcamera = true; |
---|
13753 | 13768 | //if (drawing) |
---|
13754 | 13769 | //return; |
---|
13755 | | - //System.out.println("mouseDragged: " + e); |
---|
13756 | 13770 | if ((e.getModifiersEx() & CTRL) != 0 |
---|
13757 | 13771 | || (e.getModifiersEx() & COMMAND) != 0) // || IsFrozen()) |
---|
13758 | 13772 | { |
---|
.. | .. |
---|
13933 | 13947 | |
---|
13934 | 13948 | public void run() |
---|
13935 | 13949 | { |
---|
| 13950 | + new Exception().printStackTrace(); |
---|
13936 | 13951 | System.exit(0); |
---|
13937 | 13952 | for (;;) |
---|
13938 | 13953 | { |
---|
.. | .. |
---|
14287 | 14302 | public void mouseMoved(MouseEvent e) |
---|
14288 | 14303 | { |
---|
14289 | 14304 | //System.out.println("mouseMoved: " + e); |
---|
14290 | | - |
---|
14291 | 14305 | if (isRenderer) |
---|
14292 | 14306 | return; |
---|
14293 | 14307 | |
---|
.. | .. |
---|
15100 | 15114 | |
---|
15101 | 15115 | protected void processMouseMotionEvent(MouseEvent e) |
---|
15102 | 15116 | { |
---|
15103 | | - //System.out.println("processMouseMotionEvent: " + mouseMode); |
---|
15104 | | - if (e.getButton() == MouseEvent.NOBUTTON && (mouseMode & SELECT) == 0) |
---|
| 15117 | + //System.out.println("processMouseMotionEvent: " + mouseMode + " " + e.getModifiers() + " " + e.getModifiersEx() + " " + e.getButton()); |
---|
| 15118 | + //if (e.getButton() == MouseEvent.NOBUTTON && (mouseMode & SELECT) == 0) |
---|
| 15119 | + if ((e.getModifiers() & MouseEvent.BUTTON1_MASK) == 0 && (mouseMode & SELECT) == 0) |
---|
15105 | 15120 | { |
---|
15106 | 15121 | mouseMoved(e); |
---|
15107 | 15122 | } else |
---|
.. | .. |
---|
15131 | 15146 | |
---|
15132 | 15147 | void SelectParent() |
---|
15133 | 15148 | { |
---|
| 15149 | + new Exception().printStackTrace(); |
---|
15134 | 15150 | System.exit(0); |
---|
15135 | 15151 | Composite group = (Composite) object; |
---|
15136 | 15152 | java.util.Vector selectees = new java.util.Vector(group.selection); |
---|
.. | .. |
---|
15154 | 15170 | |
---|
15155 | 15171 | void SelectChildren() |
---|
15156 | 15172 | { |
---|
| 15173 | + new Exception().printStackTrace(); |
---|
15157 | 15174 | System.exit(0); |
---|
15158 | 15175 | /* |
---|
15159 | 15176 | Composite group = (Composite) object; |
---|
.. | .. |
---|
16267 | 16284 | { |
---|
16268 | 16285 | if (!selection) |
---|
16269 | 16286 | { |
---|
| 16287 | + new Exception().printStackTrace(); |
---|
16270 | 16288 | System.exit(0); |
---|
16271 | 16289 | return; |
---|
16272 | 16290 | } |
---|