.. | .. |
---|
56 | 56 | static int CURRENTANTIALIAS = 0; // 1; |
---|
57 | 57 | /*static*/ boolean RENDERSHADOW = true; |
---|
58 | 58 | /*static*/ int RENDERPROGRAM = 2; // 0 == none, 1 == fast, 2 == normal |
---|
59 | | - static boolean ANIMATION = false; |
---|
60 | | - static String filename; |
---|
61 | 59 | |
---|
62 | 60 | boolean DISPLAYTEXT = false; |
---|
63 | 61 | //boolean REDUCETEXTURE = true; |
---|
.. | .. |
---|
86 | 84 | static boolean FULLSCREEN = false; |
---|
87 | 85 | static boolean SUPPORT = true; |
---|
88 | 86 | static boolean INERTIA = true; |
---|
89 | | -static boolean FAST = true; // false; |
---|
| 87 | +static boolean FAST = false; |
---|
90 | 88 | static boolean SLOWPOSE = false; |
---|
91 | 89 | static boolean FOOTCONTACT = true; |
---|
92 | 90 | |
---|
.. | .. |
---|
108 | 106 | static boolean OEIL = true; |
---|
109 | 107 | static boolean OEILONCE = false; // do oeilon then oeiloff |
---|
110 | 108 | static boolean LOOKAT = true; |
---|
111 | | -static boolean RANDOM = true; // false; |
---|
| 109 | +static boolean SWITCH = true; // false; |
---|
112 | 110 | static boolean HANDLES = false; // selection doesn't work!! |
---|
113 | 111 | static boolean PAINTMODE = false; |
---|
114 | 112 | |
---|
.. | .. |
---|
2269 | 2267 | |
---|
2270 | 2268 | void ToggleRandom() |
---|
2271 | 2269 | { |
---|
2272 | | - RANDOM ^= true; |
---|
| 2270 | + SWITCH ^= true; |
---|
2273 | 2271 | } |
---|
2274 | 2272 | |
---|
2275 | 2273 | void ToggleHandles() |
---|
.. | .. |
---|
4208 | 4206 | |
---|
4209 | 4207 | com.sun.opengl.util.texture.Texture CompressTexture2(String name) |
---|
4210 | 4208 | { |
---|
| 4209 | + new Exception().printStackTrace(); |
---|
4211 | 4210 | System.exit(0); |
---|
4212 | 4211 | com.sun.opengl.util.texture.Texture texture = null; |
---|
4213 | 4212 | |
---|
.. | .. |
---|
8076 | 8075 | { |
---|
8077 | 8076 | String texname = tex; |
---|
8078 | 8077 | |
---|
8079 | | - String[] split = tex.split("Textures"); |
---|
8080 | | - if (split.length > 1) |
---|
8081 | | - texname = "/Users/nbriere/Textures" + split[split.length-1]; |
---|
8082 | | - else |
---|
8083 | | - if (!texname.startsWith("/")) |
---|
8084 | | - texname = "/Users/nbriere/Textures/" + texname; |
---|
| 8078 | +// String[] split = tex.split("Textures"); |
---|
| 8079 | +// if (split.length > 1) |
---|
| 8080 | +// texname = "/Users/nbriere/Textures" + split[split.length-1]; |
---|
| 8081 | +// else |
---|
| 8082 | +// if (!texname.startsWith("/")) |
---|
| 8083 | +// texname = "/Users/nbriere/Textures/" + texname; |
---|
| 8084 | + if (!new File(tex).exists()) |
---|
| 8085 | + { |
---|
| 8086 | + texname = javax.swing.filechooser.FileSystemView.getFileSystemView().getDefaultDirectory() + "/Textures/" + texname; |
---|
| 8087 | + } |
---|
8085 | 8088 | |
---|
8086 | 8089 | if (CACHETEXTURE) |
---|
8087 | 8090 | texture = textures.get(texname); // TEXTURE CACHE |
---|
.. | .. |
---|
9394 | 9397 | //gl.glFlush(); |
---|
9395 | 9398 | gl.glAccum(gl.GL_ACCUM, 1.0f / ACSIZE); |
---|
9396 | 9399 | |
---|
9397 | | - if (ANIMATION && ABORTED) |
---|
| 9400 | + if (Globals.ANIMATION && ABORTED) |
---|
9398 | 9401 | { |
---|
9399 | 9402 | System.err.println(" ABORTED FRAME"); |
---|
9400 | 9403 | break; |
---|
.. | .. |
---|
9424 | 9427 | setCursor(Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR)); |
---|
9425 | 9428 | |
---|
9426 | 9429 | // save image |
---|
9427 | | - if (ANIMATION && !ABORTED) |
---|
| 9430 | + if (Globals.ANIMATION && !ABORTED) |
---|
9428 | 9431 | { |
---|
9429 | 9432 | VPwidth = viewport[2]; |
---|
9430 | 9433 | VPheight = viewport[3]; |
---|
.. | .. |
---|
9535 | 9538 | |
---|
9536 | 9539 | // imagecount++; |
---|
9537 | 9540 | |
---|
9538 | | - String fullname = filename + (i%100000)/10000 + "" + (i%10000)/1000 + "" + (i%1000)/100 + "" + (i%100)/10 + "" + (i%10) + "." + ext; |
---|
| 9541 | + String fullname = Globals.filename + (i%100000)/10000 + "" + (i%10000)/1000 + "" + (i%1000)/100 + "" + (i%100)/10 + "" + (i%10) + "." + ext; |
---|
9539 | 9542 | |
---|
9540 | 9543 | if (!BOXMODE) |
---|
9541 | 9544 | { |
---|
.. | .. |
---|
11259 | 11262 | { |
---|
11260 | 11263 | renderpass++; |
---|
11261 | 11264 | // System.out.println("Draw object... "); |
---|
| 11265 | + STEP = 1; |
---|
11262 | 11266 | if (FAST) // in case there is no script |
---|
11263 | | - STEP = 16; |
---|
| 11267 | + STEP = 8; |
---|
| 11268 | + |
---|
| 11269 | + if (CURRENTANTIALIAS == 0 || ACSIZE == 1) |
---|
| 11270 | + { |
---|
| 11271 | + STEP *= 4; |
---|
| 11272 | + } |
---|
11264 | 11273 | |
---|
11265 | 11274 | //object.FullInvariants(); |
---|
11266 | 11275 | |
---|
.. | .. |
---|
12598 | 12607 | "MAX ndotl.x, ndotl.x, -ndotl.x;" + |
---|
12599 | 12608 | |
---|
12600 | 12609 | "SUB temp.x, one.x, ndotl.x;" + |
---|
12601 | | - "ADD temp.x, temp.x, options2.z;" + // lightsheen |
---|
12602 | | - "ADD temp.y, one.y, options2.y;" + // sursurface |
---|
| 12610 | + // Tuning for default skin |
---|
| 12611 | + //"ADD temp.x, temp.x, options2.z;" + // lightsheen |
---|
| 12612 | + "MAD temp.x, options2.z, half.y, temp.x;" + // lightsheen |
---|
| 12613 | + "ADD temp.y, one.y, options2.y;" + // subsurface |
---|
12603 | 12614 | "MUL temp.x, temp.x, temp.y;" + |
---|
12604 | 12615 | |
---|
12605 | 12616 | "MUL saturation, saturation, temp.xxxx;" + |
---|
.. | .. |
---|
13946 | 13957 | |
---|
13947 | 13958 | public void run() |
---|
13948 | 13959 | { |
---|
| 13960 | + new Exception().printStackTrace(); |
---|
13949 | 13961 | System.exit(0); |
---|
13950 | 13962 | for (;;) |
---|
13951 | 13963 | { |
---|
.. | .. |
---|
14477 | 14489 | } |
---|
14478 | 14490 | |
---|
14479 | 14491 | boolean capsLocked = Toolkit.getDefaultToolkit().getLockingKeyState(KeyEvent.VK_CAPS_LOCK); |
---|
14480 | | - if (capsLocked || (modifiers & META) == META) |
---|
| 14492 | + if (capsLocked) // || (modifiers & META) == META) |
---|
14481 | 14493 | { |
---|
14482 | 14494 | mouseMode |= VR; // BACKFORTH; |
---|
14483 | 14495 | } |
---|
.. | .. |
---|
15114 | 15126 | { |
---|
15115 | 15127 | //System.out.println("processMouseMotionEvent: " + mouseMode + " " + e.getModifiers() + " " + e.getModifiersEx() + " " + e.getButton()); |
---|
15116 | 15128 | //if (e.getButton() == MouseEvent.NOBUTTON && (mouseMode & SELECT) == 0) |
---|
15117 | | - if ((e.getModifiers() & MouseEvent.BUTTON1_MASK) == 0 && (mouseMode & SELECT) == 0) |
---|
| 15129 | + if ((e.getModifiers() & MouseEvent.BUTTON1_MASK) == 0 && (e.getModifiers() & MouseEvent.BUTTON3_MASK) == 0 && (mouseMode & SELECT) == 0) |
---|
15118 | 15130 | { |
---|
15119 | 15131 | mouseMoved(e); |
---|
15120 | 15132 | } else |
---|
.. | .. |
---|
15144 | 15156 | |
---|
15145 | 15157 | void SelectParent() |
---|
15146 | 15158 | { |
---|
| 15159 | + new Exception().printStackTrace(); |
---|
15147 | 15160 | System.exit(0); |
---|
15148 | 15161 | Composite group = (Composite) object; |
---|
15149 | 15162 | java.util.Vector selectees = new java.util.Vector(group.selection); |
---|
.. | .. |
---|
15167 | 15180 | |
---|
15168 | 15181 | void SelectChildren() |
---|
15169 | 15182 | { |
---|
| 15183 | + new Exception().printStackTrace(); |
---|
15170 | 15184 | System.exit(0); |
---|
15171 | 15185 | /* |
---|
15172 | 15186 | Composite group = (Composite) object; |
---|
.. | .. |
---|
16280 | 16294 | { |
---|
16281 | 16295 | if (!selection) |
---|
16282 | 16296 | { |
---|
| 16297 | + new Exception().printStackTrace(); |
---|
16283 | 16298 | System.exit(0); |
---|
16284 | 16299 | return; |
---|
16285 | 16300 | } |
---|