.. | .. |
---|
8358 | 8358 | // else |
---|
8359 | 8359 | // if (!texname.startsWith("/")) |
---|
8360 | 8360 | // texname = "/Users/nbriere/Textures/" + texname; |
---|
8361 | | - if (!FileExists(texname)) |
---|
| 8361 | + if (!FileExists(texname) && !texname.startsWith("@")) |
---|
8362 | 8362 | { |
---|
8363 | 8363 | texname = fallbackTextureName; |
---|
8364 | 8364 | } |
---|
.. | .. |
---|
8441 | 8441 | new Exception().printStackTrace(); |
---|
8442 | 8442 | } else |
---|
8443 | 8443 | { |
---|
| 8444 | + if (texname.startsWith("@")) |
---|
| 8445 | + { |
---|
| 8446 | + // texturecache = textures.get(texname); // suspicious |
---|
| 8447 | + if (texturecache == null) |
---|
| 8448 | + texturecache = new CacheTexture(GetResourceTexture(texname.substring(1), bump),resolution); |
---|
| 8449 | + else |
---|
| 8450 | + new Exception().printStackTrace(); |
---|
| 8451 | + } else |
---|
| 8452 | + { |
---|
8444 | 8453 | if (textureon) |
---|
8445 | 8454 | { |
---|
8446 | 8455 | String cachename = texname; |
---|
.. | .. |
---|
8500 | 8509 | texturecache = new CacheTexture(texturedata,resolution); |
---|
8501 | 8510 | //texture = GetTexture(tex, bump); |
---|
8502 | 8511 | } |
---|
| 8512 | + } |
---|
8503 | 8513 | } |
---|
8504 | 8514 | //} |
---|
8505 | 8515 | } |
---|
.. | .. |
---|
10841 | 10851 | |
---|
10842 | 10852 | if (wait) |
---|
10843 | 10853 | { |
---|
10844 | | - Sleep(500); |
---|
| 10854 | + Sleep(200); // blocks everything |
---|
10845 | 10855 | |
---|
10846 | 10856 | wait = false; |
---|
10847 | 10857 | } |
---|
.. | .. |
---|
11379 | 11389 | |
---|
11380 | 11390 | // if (cam != lightCamera) |
---|
11381 | 11391 | //for (int count = parentcam.GetTransformCount(); --count>=0;) |
---|
11382 | | - LA.xformDir(lightposition, parentcam.GlobalTransform(), lightposition); // may 2013 |
---|
| 11392 | + LA.xformDir(lightposition, parentcam.GlobalTransformInv(), lightposition); // may 2013 |
---|
11383 | 11393 | } |
---|
11384 | 11394 | |
---|
11385 | 11395 | LA.xformDir(lightposition, cam.toScreen, lightposition); |
---|
.. | .. |
---|
14632 | 14642 | MODIFIERS |= COMMAND; |
---|
14633 | 14643 | /**/ |
---|
14634 | 14644 | if((mod&SHIFT) == SHIFT) |
---|
14635 | | - manipCamera.RotatePosition(0, -speed); |
---|
14636 | | - else |
---|
14637 | 14645 | manipCamera.BackForth(0, -speed*delta, 0); // getWidth()); |
---|
| 14646 | + else |
---|
| 14647 | + manipCamera.RotatePosition(0, -speed); |
---|
14638 | 14648 | /**/ |
---|
14639 | 14649 | if ((mod & SHIFT) == SHIFT) |
---|
14640 | 14650 | { |
---|
.. | .. |
---|
14653 | 14663 | MODIFIERS |= COMMAND; |
---|
14654 | 14664 | /**/ |
---|
14655 | 14665 | if((mod&SHIFT) == SHIFT) |
---|
14656 | | - manipCamera.RotatePosition(0, speed); |
---|
14657 | | - else |
---|
14658 | 14666 | manipCamera.BackForth(0, speed*delta, 0); // getWidth()); |
---|
| 14667 | + else |
---|
| 14668 | + manipCamera.RotatePosition(0, speed); |
---|
14659 | 14669 | /**/ |
---|
14660 | 14670 | if ((mod & SHIFT) == SHIFT) |
---|
14661 | 14671 | { |
---|