* Application.handleError now stops by default to prevent process from lingering on
* Made sleeps in LwjglCanvas slightly longer to prevent hogging 100% cpu
* Renamed elephant skeletonxml to skeleton.xml
* Compressed HoverTank textures and removed high-res versions
* Compressed Tree textures
git-svn-id: http://jmonkeyengine.googlecode.com/svn/trunk@7203
75d07b2b-3a1a-0410-a2c5-
0572b91ccdca
\r
public void handleError(String errMsg, Throwable t){\r
logger.log(Level.SEVERE, errMsg, t);\r
+ // user should add additional code to handle the error.\r
+ stop(); // stop the application\r
}\r
\r
public void gainFocus(){\r
return;\r
}\r
\r
+ ALCdevice device = AL.getDevice();\r
+ String deviceName = ALC10.alcGetString(device, ALC10.ALC_DEVICE_SPECIFIER);\r
+\r
+ logger.log(Level.FINER, "Audio Device: {0}", deviceName);\r
logger.log(Level.FINER, "Audio Vendor: {0}", alGetString(AL_VENDOR));\r
logger.log(Level.FINER, "Audio Renderer: {0}", alGetString(AL_RENDERER));\r
logger.log(Level.FINER, "Audio Version: {0}", alGetString(AL_VERSION));\r
\r
logger.log(Level.INFO, "AudioRenderer supports {0} channels", channels.length);\r
\r
- ALCdevice device = AL.getDevice();\r
supportEfx = ALC10.alcIsExtensionPresent(device, "ALC_EXT_EFX");\r
logger.log(Level.FINER, "Audio EFX support: {0}", supportEfx);\r
\r
logger.log(Level.INFO, "OGL: Waiting for canvas to become displayable..");
while (!canvas.isDisplayable()){
try {
- Thread.sleep(1);
+ Thread.sleep(10);
} catch (InterruptedException ex) {
logger.log(Level.SEVERE, "OGL: Interrupted! ", ex);
}
logger.log(Level.INFO, "OGL: Waiting for display to become active..");
while (!Display.isCreated()){
try {
- Thread.sleep(1);
+ Thread.sleep(10);
} catch (InterruptedException ex) {
logger.log(Level.SEVERE, "OGL: Interrupted! ", ex);
}
}
logger.log(Level.INFO, "OGL: Input has been reinitialized");
} catch (LWJGLException ex) {
- logger.log(Level.SEVERE, "Failed to re-init input", ex);
+ listener.handleError("Failed to re-init input", ex);
}
SwingUtilities.invokeLater(new Runnable(){
}\r
}\r
} catch (LWJGLException ex) {\r
- logger.log(Level.SEVERE, "Failed to acquire fullscreen display mode!", ex);\r
+ listener.handleError("Failed to acquire fullscreen display mode!", ex);\r
}\r
return null;\r
}\r
<mesh>\r
<submeshes>\r
- <submesh material="Models/HoverTank/tank_highRes.j3m" usesharedvertices="false" use32bitindexes="false" operationtype="triangle_list">\r
+ <submesh material="Models/HoverTank/tank.j3m" usesharedvertices="false" use32bitindexes="false" operationtype="triangle_list">\r
<faces count="9692">\r
<face v1="0" v2="1" v3="3" />\r
<face v1="1" v2="2" v3="3" />\r
-Material My Material : Common/MatDefs/Light/Lighting.j3md {
- MaterialParameters {
- SpecularMap : Models/HoverTank/tank_specular.png
- Shininess : 8
- NormalMap : Models/HoverTank/tank_normals.png
- DiffuseMap : Models/HoverTank/tank_diffuse.png
- GlowMap : Models/HoverTank/tank_glow_map_highres.png
- UseMaterialColors : true
- Ambient : 0.0 0.0 0.0 1.0
- Diffuse : 1.0 1.0 1.0 1.0
- Specular : 1.0 1.0 1.0 1.0
- }
-}
+Material My Material : Common/MatDefs/Light/Lighting.j3md {\r
+ MaterialParameters {\r
+ SpecularMap : Models/HoverTank/tank_specular.jpg\r
+ Shininess : 8\r
+ NormalMap : Models/HoverTank/tank_normals.png\r
+ DiffuseMap : Models/HoverTank/tank_diffuse.jpg\r
+ GlowMap : Models/HoverTank/tank_glow_map.jpg\r
+ UseMaterialColors : true\r
+ Ambient : 0.0 0.0 0.0 1.0\r
+ Diffuse : 1.0 1.0 1.0 1.0\r
+ Specular : 1.0 1.0 1.0 1.0\r
+ }\r
+}\r
+++ /dev/null
-Material My Material : Common/MatDefs/Light/Lighting.j3md {
- MaterialParameters {
- SpecularMap : Models/HoverTank/tank_specular_lowRes.png
- Shininess : 255
- NormalMap : Models/HoverTank/tank_normals_lowRes.png
- DiffuseMap : Models/HoverTank/tank_diffuse_LowRes.png
- GlowMap : Models/HoverTank/tank_glow_map.png
- }
-}