- set logging from Level.INFO to Level.FINE for most logging
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10271 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
This commit is contained in:
parent
2e19f4e1b7
commit
7ba657e430
@ -156,7 +156,7 @@ public class AndroidHarness extends Activity implements TouchListener, DialogInt
|
||||
|
||||
@Override
|
||||
public Object onRetainNonConfigurationInstance() {
|
||||
logger.log(Level.INFO, "onRetainNonConfigurationInstance");
|
||||
logger.log(Level.FINE, "onRetainNonConfigurationInstance");
|
||||
final DataObject data = new DataObject();
|
||||
data.app = this.app;
|
||||
inConfigChange = true;
|
||||
@ -184,7 +184,7 @@ public class AndroidHarness extends Activity implements TouchListener, DialogInt
|
||||
|
||||
final DataObject data = (DataObject) getLastNonConfigurationInstance();
|
||||
if (data != null) {
|
||||
logger.log(Level.INFO, "Using Retained App");
|
||||
logger.log(Level.FINE, "Using Retained App");
|
||||
this.app = data.app;
|
||||
|
||||
} else {
|
||||
@ -195,7 +195,7 @@ public class AndroidHarness extends Activity implements TouchListener, DialogInt
|
||||
Log.d("AndroidHarness", "Resolution from Window, width:" + disp.getWidth() + ", height: " + disp.getHeight());
|
||||
|
||||
// Create Settings
|
||||
logger.log(Level.INFO, "Creating settings");
|
||||
logger.log(Level.FINE, "Creating settings");
|
||||
AppSettings settings = new AppSettings(true);
|
||||
settings.setEmulateMouse(mouseEventsEnabled);
|
||||
settings.setEmulateMouseFlipAxis(mouseEventsInvertX, mouseEventsInvertY);
|
||||
@ -292,7 +292,7 @@ public class AndroidHarness extends Activity implements TouchListener, DialogInt
|
||||
//pause the audio
|
||||
AudioRenderer result = app.getAudioRenderer();
|
||||
if (result != null) {
|
||||
logger.log(Level.INFO, "pause: {0}", result.getClass().getSimpleName());
|
||||
logger.log(Level.FINE, "pause: {0}", result.getClass().getSimpleName());
|
||||
if (result instanceof AndroidAudioRenderer) {
|
||||
AndroidAudioRenderer renderer = (AndroidAudioRenderer) result;
|
||||
renderer.pauseAll();
|
||||
@ -417,9 +417,9 @@ public class AndroidHarness extends Activity implements TouchListener, DialogInt
|
||||
}
|
||||
|
||||
public void layoutDisplay() {
|
||||
logger.log(Level.INFO, "Splash Screen Picture Resource ID: {0}", splashPicID);
|
||||
logger.log(Level.FINE, "Splash Screen Picture Resource ID: {0}", splashPicID);
|
||||
if (view == null) {
|
||||
logger.log(Level.INFO, "view is null!");
|
||||
logger.log(Level.FINE, "view is null!");
|
||||
}
|
||||
if (splashPicID != 0) {
|
||||
FrameLayout.LayoutParams lp = new FrameLayout.LayoutParams(
|
||||
@ -448,15 +448,15 @@ public class AndroidHarness extends Activity implements TouchListener, DialogInt
|
||||
frameLayout.addView(splashImageView, lp);
|
||||
|
||||
setContentView(frameLayout);
|
||||
logger.log(Level.INFO, "Splash Screen Created");
|
||||
logger.log(Level.FINE, "Splash Screen Created");
|
||||
} else {
|
||||
logger.log(Level.INFO, "Splash Screen Skipped.");
|
||||
logger.log(Level.FINE, "Splash Screen Skipped.");
|
||||
setContentView(view);
|
||||
}
|
||||
}
|
||||
|
||||
public void removeSplashScreen() {
|
||||
logger.log(Level.INFO, "Splash Screen Picture Resource ID: {0}", splashPicID);
|
||||
logger.log(Level.FINE, "Splash Screen Picture Resource ID: {0}", splashPicID);
|
||||
if (splashPicID != 0) {
|
||||
if (frameLayout != null) {
|
||||
if (splashImageView != null) {
|
||||
@ -469,10 +469,10 @@ public class AndroidHarness extends Activity implements TouchListener, DialogInt
|
||||
}
|
||||
});
|
||||
} else {
|
||||
logger.log(Level.INFO, "splashImageView is null");
|
||||
logger.log(Level.FINE, "splashImageView is null");
|
||||
}
|
||||
} else {
|
||||
logger.log(Level.INFO, "frameLayout is null");
|
||||
logger.log(Level.FINE, "frameLayout is null");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -51,7 +51,7 @@ public class AndroidImageInfo extends ImageRaster {
|
||||
if (bitmap != null && !bitmap.isRecycled()) {
|
||||
bitmap.recycle();
|
||||
bitmap = null;
|
||||
logger.log(Level.INFO, "Bitmap was deleted. ");
|
||||
logger.log(Level.FINE, "Bitmap was deleted. ");
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -141,7 +141,7 @@ public class AndroidSensorJoyInput implements JoyInput, SensorEventListener {
|
||||
// Get instance of Vibrator from current Context
|
||||
vibrator = (Vibrator) activity.getSystemService(Context.VIBRATOR_SERVICE);
|
||||
if (vibrator == null) {
|
||||
logger.log(Level.INFO, "Vibrator Service not found.");
|
||||
logger.log(Level.FINE, "Vibrator Service not found.");
|
||||
}
|
||||
}
|
||||
|
||||
@ -160,10 +160,10 @@ public class AndroidSensorJoyInput implements JoyInput, SensorEventListener {
|
||||
sensorData.sensor = sensorManager.getDefaultSensor(sensorType);
|
||||
|
||||
if (sensorData.sensor != null) {
|
||||
logger.log(Level.INFO, "Sensor Type {0} found.", sensorType);
|
||||
logger.log(Level.FINE, "Sensor Type {0} found.", sensorType);
|
||||
success = registerListener(sensorType);
|
||||
} else {
|
||||
logger.log(Level.INFO, "Sensor Type {0} not found.", sensorType);
|
||||
logger.log(Level.FINE, "Sensor Type {0} not found.", sensorType);
|
||||
}
|
||||
|
||||
if (success) {
|
||||
@ -177,7 +177,7 @@ public class AndroidSensorJoyInput implements JoyInput, SensorEventListener {
|
||||
SensorData sensorData = sensors.get(sensorType);
|
||||
if (sensorData != null) {
|
||||
if (sensorData.enabled) {
|
||||
logger.log(Level.INFO, "Sensor Already Active: SensorType: {0}, active: {1}",
|
||||
logger.log(Level.FINE, "Sensor Already Active: SensorType: {0}, active: {1}",
|
||||
new Object[]{sensorType, sensorData.enabled});
|
||||
return true;
|
||||
}
|
||||
@ -185,12 +185,12 @@ public class AndroidSensorJoyInput implements JoyInput, SensorEventListener {
|
||||
if (sensorData.sensor != null) {
|
||||
if (sensorManager.registerListener(this, sensorData.sensor, sensorData.androidSensorSpeed)) {
|
||||
sensorData.enabled = true;
|
||||
logger.log(Level.INFO, "SensorType: {0}, actived: {1}",
|
||||
logger.log(Level.FINE, "SensorType: {0}, actived: {1}",
|
||||
new Object[]{sensorType, sensorData.enabled});
|
||||
return true;
|
||||
} else {
|
||||
sensorData.enabled = false;
|
||||
logger.log(Level.INFO, "Sensor Type {0} activation failed.", sensorType);
|
||||
logger.log(Level.FINE, "Sensor Type {0} activation failed.", sensorType);
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -205,7 +205,7 @@ public class AndroidSensorJoyInput implements JoyInput, SensorEventListener {
|
||||
}
|
||||
sensorData.enabled = false;
|
||||
sensorData.haveData = false;
|
||||
logger.log(Level.INFO, "SensorType: {0} deactivated, active: {1}",
|
||||
logger.log(Level.FINE, "SensorType: {0} deactivated, active: {1}",
|
||||
new Object[]{sensorType, sensorData.enabled});
|
||||
}
|
||||
}
|
||||
@ -261,11 +261,11 @@ public class AndroidSensorJoyInput implements JoyInput, SensorEventListener {
|
||||
int yDir = SensorManager.AXIS_Y;
|
||||
int curRotation = getScreenRotation();
|
||||
if (lastRotation != curRotation) {
|
||||
logger.log(Level.INFO, "Device Rotation changed to: {0}", curRotation);
|
||||
logger.log(Level.FINE, "Device Rotation changed to: {0}", curRotation);
|
||||
}
|
||||
lastRotation = curRotation;
|
||||
|
||||
// logger.log(Level.INFO, "Screen Rotation: {0}", getScreenRotation());
|
||||
// logger.log(Level.FINE, "Screen Rotation: {0}", getScreenRotation());
|
||||
switch (getScreenRotation()) {
|
||||
// device natural position
|
||||
case Surface.ROTATION_0:
|
||||
@ -380,7 +380,7 @@ public class AndroidSensorJoyInput implements JoyInput, SensorEventListener {
|
||||
final float [] orientValues = new float[3];
|
||||
if (remapCoordinates(curRotationMat, rotatedRotationMat)) {
|
||||
SensorManager.getOrientation(rotatedRotationMat, orientValues);
|
||||
// logger.log(Level.INFO, "Orientation Values: {0}, {1}, {2}",
|
||||
// logger.log(Level.FINE, "Orientation Values: {0}, {1}, {2}",
|
||||
// new Object[]{orientValues[0], orientValues[1], orientValues[2]});
|
||||
|
||||
|
||||
@ -414,11 +414,11 @@ public class AndroidSensorJoyInput implements JoyInput, SensorEventListener {
|
||||
|
||||
return true;
|
||||
} else {
|
||||
logger.log(Level.INFO, "remapCoordinateSystem failed");
|
||||
logger.log(Level.FINE, "remapCoordinateSystem failed");
|
||||
}
|
||||
|
||||
} else {
|
||||
logger.log(Level.INFO, "getRotationMatrix returned false");
|
||||
logger.log(Level.FINE, "getRotationMatrix returned false");
|
||||
}
|
||||
|
||||
return false;
|
||||
@ -438,7 +438,7 @@ public class AndroidSensorJoyInput implements JoyInput, SensorEventListener {
|
||||
};
|
||||
final int rumbleRepeatFrom = 0; // index into rumble pattern to repeat from
|
||||
|
||||
logger.log(Level.INFO, "Rumble amount: {0}, rumbleOnDur: {1}, rumbleOffDur: {2}",
|
||||
logger.log(Level.FINE, "Rumble amount: {0}, rumbleOnDur: {1}, rumbleOffDur: {2}",
|
||||
new Object[]{amount, rumbleOnDur, rumbleOffDur});
|
||||
|
||||
if (rumbleOnDur > 0) {
|
||||
@ -470,7 +470,7 @@ public class AndroidSensorJoyInput implements JoyInput, SensorEventListener {
|
||||
|
||||
List<Sensor> availSensors = sensorManager.getSensorList(Sensor.TYPE_ALL);
|
||||
for (Sensor sensor: availSensors) {
|
||||
logger.log(Level.INFO, "{0} Sensor is available, Type: {1}, Vendor: {2}, Version: {3}",
|
||||
logger.log(Level.FINE, "{0} Sensor is available, Type: {1}, Vendor: {2}, Version: {3}",
|
||||
new Object[]{sensor.getName(), sensor.getType(), sensor.getVendor(), sensor.getVersion()});
|
||||
}
|
||||
|
||||
@ -580,7 +580,7 @@ public class AndroidSensorJoyInput implements JoyInput, SensorEventListener {
|
||||
}
|
||||
|
||||
public void destroy() {
|
||||
logger.log(Level.INFO, "Doing Destroy.");
|
||||
logger.log(Level.FINE, "Doing Destroy.");
|
||||
pauseSensors();
|
||||
if (sensorManager != null) {
|
||||
sensorManager.unregisterListener(this);
|
||||
@ -660,9 +660,9 @@ public class AndroidSensorJoyInput implements JoyInput, SensorEventListener {
|
||||
int sensorType = sensor.getType();
|
||||
SensorData sensorData = sensors.get(sensorType);
|
||||
if (sensorData != null) {
|
||||
logger.log(Level.INFO, "onAccuracyChanged for {0}: accuracy: {1}",
|
||||
logger.log(Level.FINE, "onAccuracyChanged for {0}: accuracy: {1}",
|
||||
new Object[]{sensor.getName(), i});
|
||||
logger.log(Level.INFO, "MaxRange: {0}, Resolution: {1}",
|
||||
logger.log(Level.FINE, "MaxRange: {0}, Resolution: {1}",
|
||||
new Object[]{sensor.getMaximumRange(), sensor.getResolution()});
|
||||
sensorData.sensorAccuracy = i;
|
||||
}
|
||||
@ -787,7 +787,7 @@ public class AndroidSensorJoyInput implements JoyInput, SensorEventListener {
|
||||
|
||||
public void calibrateCenter() {
|
||||
zeroRawValue = lastRawValue;
|
||||
logger.log(Level.INFO, "Calibrating axis {0} to {1}",
|
||||
logger.log(Level.FINE, "Calibrating axis {0} to {1}",
|
||||
new Object[]{getName(), zeroRawValue});
|
||||
}
|
||||
|
||||
|
@ -148,10 +148,10 @@ public class OGLESShaderRenderer implements Renderer {
|
||||
}
|
||||
|
||||
public void initialize() {
|
||||
logger.log(Level.INFO, "Vendor: {0}", GLES20.glGetString(GLES20.GL_VENDOR));
|
||||
logger.log(Level.INFO, "Renderer: {0}", GLES20.glGetString(GLES20.GL_RENDERER));
|
||||
logger.log(Level.INFO, "Version: {0}", GLES20.glGetString(GLES20.GL_VERSION));
|
||||
logger.log(Level.INFO, "Shading Language Version: {0}", GLES20.glGetString(GLES20.GL_SHADING_LANGUAGE_VERSION));
|
||||
logger.log(Level.FINE, "Vendor: {0}", GLES20.glGetString(GLES20.GL_VENDOR));
|
||||
logger.log(Level.FINE, "Renderer: {0}", GLES20.glGetString(GLES20.GL_RENDERER));
|
||||
logger.log(Level.FINE, "Version: {0}", GLES20.glGetString(GLES20.GL_VERSION));
|
||||
logger.log(Level.FINE, "Shading Language Version: {0}", GLES20.glGetString(GLES20.GL_SHADING_LANGUAGE_VERSION));
|
||||
|
||||
powerVr = GLES20.glGetString(GLES20.GL_RENDERER).contains("PowerVR");
|
||||
|
||||
@ -180,14 +180,14 @@ public class OGLESShaderRenderer implements Renderer {
|
||||
|
||||
GLES20.glGetIntegerv(GLES20.GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS, intBuf16);
|
||||
vertexTextureUnits = intBuf16.get(0);
|
||||
logger.log(Level.INFO, "VTF Units: {0}", vertexTextureUnits);
|
||||
logger.log(Level.FINE, "VTF Units: {0}", vertexTextureUnits);
|
||||
if (vertexTextureUnits > 0) {
|
||||
caps.add(Caps.VertexTextureFetch);
|
||||
}
|
||||
|
||||
GLES20.glGetIntegerv(GLES20.GL_MAX_TEXTURE_IMAGE_UNITS, intBuf16);
|
||||
fragTextureUnits = intBuf16.get(0);
|
||||
logger.log(Level.INFO, "Texture Units: {0}", fragTextureUnits);
|
||||
logger.log(Level.FINE, "Texture Units: {0}", fragTextureUnits);
|
||||
|
||||
// Multiply vector count by 4 to get float count.
|
||||
GLES20.glGetIntegerv(GLES20.GL_MAX_VERTEX_UNIFORM_VECTORS, intBuf16);
|
||||
@ -204,11 +204,11 @@ public class OGLESShaderRenderer implements Renderer {
|
||||
|
||||
GLES20.glGetIntegerv(GLES20.GL_MAX_VERTEX_ATTRIBS, intBuf16);
|
||||
vertexAttribs = intBuf16.get(0);
|
||||
logger.log(Level.INFO, "Vertex Attributes: {0}", vertexAttribs);
|
||||
logger.log(Level.FINE, "Vertex Attributes: {0}", vertexAttribs);
|
||||
|
||||
GLES20.glGetIntegerv(GLES20.GL_SUBPIXEL_BITS, intBuf16);
|
||||
int subpixelBits = intBuf16.get(0);
|
||||
logger.log(Level.INFO, "Subpixel Bits: {0}", subpixelBits);
|
||||
logger.log(Level.FINE, "Subpixel Bits: {0}", subpixelBits);
|
||||
|
||||
// GLES10.glGetIntegerv(GLES10.GL_MAX_ELEMENTS_VERTICES, intBuf16);
|
||||
// maxVertCount = intBuf16.get(0);
|
||||
@ -220,11 +220,11 @@ public class OGLESShaderRenderer implements Renderer {
|
||||
|
||||
GLES20.glGetIntegerv(GLES20.GL_MAX_TEXTURE_SIZE, intBuf16);
|
||||
maxTexSize = intBuf16.get(0);
|
||||
logger.log(Level.INFO, "Maximum Texture Resolution: {0}", maxTexSize);
|
||||
logger.log(Level.FINE, "Maximum Texture Resolution: {0}", maxTexSize);
|
||||
|
||||
GLES20.glGetIntegerv(GLES20.GL_MAX_CUBE_MAP_TEXTURE_SIZE, intBuf16);
|
||||
maxCubeTexSize = intBuf16.get(0);
|
||||
logger.log(Level.INFO, "Maximum CubeMap Resolution: {0}", maxCubeTexSize);
|
||||
logger.log(Level.FINE, "Maximum CubeMap Resolution: {0}", maxCubeTexSize);
|
||||
|
||||
/*
|
||||
if (ctxCaps.GL_ARB_color_buffer_float){
|
||||
@ -306,7 +306,7 @@ public class OGLESShaderRenderer implements Renderer {
|
||||
*/
|
||||
|
||||
String extensions = GLES20.glGetString(GLES20.GL_EXTENSIONS);
|
||||
logger.log(Level.INFO, "GL_EXTENSIONS: {0}", extensions);
|
||||
logger.log(Level.FINE, "GL_EXTENSIONS: {0}", extensions);
|
||||
|
||||
// Get number of compressed formats available.
|
||||
GLES20.glGetIntegerv(GLES20.GL_NUM_COMPRESSED_TEXTURE_FORMATS, intBuf16);
|
||||
@ -318,7 +318,7 @@ public class OGLESShaderRenderer implements Renderer {
|
||||
|
||||
// Print compressed formats.
|
||||
for (int i = 0; i < numCompressedFormats; i++) {
|
||||
logger.log(Level.INFO, "Compressed Texture Formats: {0}", compressedFormats.get(i));
|
||||
logger.log(Level.FINE, "Compressed Texture Formats: {0}", compressedFormats.get(i));
|
||||
}
|
||||
|
||||
TextureUtil.loadTextureFeatures(extensions);
|
||||
@ -332,13 +332,13 @@ public class OGLESShaderRenderer implements Renderer {
|
||||
// but for jME3 it doesn't matter since android versions 1.5 and below
|
||||
// are not supported.
|
||||
if (Build.VERSION.SDK_INT >= 9){
|
||||
logger.log(Level.INFO, "Force-enabling VBO (Android 2.3 or higher)");
|
||||
logger.log(Level.FINE, "Force-enabling VBO (Android 2.3 or higher)");
|
||||
useVBO = true;
|
||||
} else {
|
||||
useVBO = false;
|
||||
}
|
||||
|
||||
logger.log(Level.INFO, "Caps: {0}", caps);
|
||||
logger.log(Level.FINE, "Caps: {0}", caps);
|
||||
}
|
||||
|
||||
/**
|
||||
@ -806,7 +806,7 @@ public class OGLESShaderRenderer implements Renderer {
|
||||
|
||||
if (compiledOK) {
|
||||
if (infoLog != null) {
|
||||
logger.log(Level.INFO, "compile success: {0}, {1}", new Object[]{source.getName(), infoLog});
|
||||
logger.log(Level.FINE, "compile success: {0}, {1}", new Object[]{source.getName(), infoLog});
|
||||
} else {
|
||||
logger.log(Level.FINE, "compile success: {0}", source.getName());
|
||||
}
|
||||
@ -863,7 +863,7 @@ public class OGLESShaderRenderer implements Renderer {
|
||||
|
||||
if (linkOK) {
|
||||
if (infoLog != null) {
|
||||
logger.log(Level.INFO, "shader link success. \n{0}", infoLog);
|
||||
logger.log(Level.FINE, "shader link success. \n{0}", infoLog);
|
||||
} else {
|
||||
logger.fine("shader link success");
|
||||
}
|
||||
@ -1984,7 +1984,7 @@ public class OGLESShaderRenderer implements Renderer {
|
||||
}
|
||||
|
||||
public void updateVertexArray(Mesh mesh) {
|
||||
logger.log(Level.INFO, "updateVertexArray({0})", mesh);
|
||||
logger.log(Level.FINE, "updateVertexArray({0})", mesh);
|
||||
int id = mesh.getId();
|
||||
/*
|
||||
if (id == -1){
|
||||
|
@ -216,16 +216,16 @@ public class AndroidConfigChooser implements EGLConfigChooser {
|
||||
num_config)) {
|
||||
throw new IllegalArgumentException("eglChooseConfig#2 failed");
|
||||
}
|
||||
// logger.log(Level.INFO, "num_config: {0}", num_config[0]);
|
||||
// logger.log(Level.FINE, "num_config: {0}", num_config[0]);
|
||||
//
|
||||
// logger.log(Level.INFO, "There are {0} configurations that match the configAttrs", num_config[0]);
|
||||
// logger.log(Level.INFO, "All Matching Configs:");
|
||||
// logger.log(Level.FINE, "There are {0} configurations that match the configAttrs", num_config[0]);
|
||||
// logger.log(Level.FINE, "All Matching Configs:");
|
||||
// for (int i=0; i<configs.length; i++) {
|
||||
// if (configs[i] != null) {
|
||||
// logger.log(Level.INFO, "configs{0} is not null", i);
|
||||
// logger.log(Level.FINE, "configs{0} is not null", i);
|
||||
// logEGLConfig(configs[i], display, egl);
|
||||
// } else {
|
||||
// logger.log(Level.INFO, "configs{0} is null", i);
|
||||
// logger.log(Level.FINE, "configs{0} is null", i);
|
||||
// }
|
||||
// }
|
||||
|
||||
|
@ -64,13 +64,13 @@ public class JmeAndroidSystem extends JmeSystemDelegate {
|
||||
|
||||
@Override
|
||||
public AssetManager newAssetManager(URL configFile) {
|
||||
logger.log(Level.INFO, "Creating asset manager with config {0}", configFile);
|
||||
logger.log(Level.FINE, "Creating asset manager with config {0}", configFile);
|
||||
return new AndroidAssetManager(configFile);
|
||||
}
|
||||
|
||||
@Override
|
||||
public AssetManager newAssetManager() {
|
||||
logger.log(Level.INFO, "Creating asset manager with default config");
|
||||
logger.log(Level.FINE, "Creating asset manager with default config");
|
||||
return new AndroidAssetManager(null);
|
||||
}
|
||||
|
||||
@ -143,7 +143,7 @@ public class JmeAndroidSystem extends JmeSystemDelegate {
|
||||
} catch (SecurityException ex) {
|
||||
logger.log(Level.SEVERE, "Security error in creating log file", ex);
|
||||
}
|
||||
logger.log(Level.INFO, "Running on {0}", getFullName());
|
||||
logger.log(Level.FINE, "Running on {0}", getFullName());
|
||||
}
|
||||
|
||||
@Override
|
||||
@ -200,7 +200,7 @@ public class JmeAndroidSystem extends JmeSystemDelegate {
|
||||
storageFolder = storageFolders.get(type);
|
||||
if (storageFolder == null) {
|
||||
String state = Environment.getExternalStorageState();
|
||||
logger.log(Level.INFO, "ExternalStorageState: {0}", state);
|
||||
logger.log(Level.FINE, "ExternalStorageState: {0}", state);
|
||||
if (state.equals(Environment.MEDIA_MOUNTED)) {
|
||||
storageFolder = activity.getApplicationContext().getExternalFilesDir(null);
|
||||
storageFolders.put(type, storageFolder);
|
||||
@ -211,9 +211,9 @@ public class JmeAndroidSystem extends JmeSystemDelegate {
|
||||
break;
|
||||
}
|
||||
if (storageFolder != null) {
|
||||
logger.log(Level.INFO, "Base Storage Folder Path: {0}", storageFolder.getAbsolutePath());
|
||||
logger.log(Level.FINE, "Base Storage Folder Path: {0}", storageFolder.getAbsolutePath());
|
||||
} else {
|
||||
logger.log(Level.INFO, "Base Storage Folder not found!");
|
||||
logger.log(Level.FINE, "Base Storage Folder not found!");
|
||||
}
|
||||
return storageFolder;
|
||||
}
|
||||
|
@ -131,7 +131,7 @@ public class OGLESContext implements JmeContext, GLSurfaceView.Renderer, SoftTex
|
||||
|
||||
int[] version = new int[2];
|
||||
if (egl.eglInitialize(display, version) == true) {
|
||||
logger.log(Level.INFO, "Display EGL Version: {0}.{1}", new Object[]{version[0], version[1]});
|
||||
logger.log(Level.CONFIG, "Display EGL Version: {0}.{1}", new Object[]{version[0], version[1]});
|
||||
}
|
||||
|
||||
try {
|
||||
@ -192,7 +192,7 @@ public class OGLESContext implements JmeContext, GLSurfaceView.Renderer, SoftTex
|
||||
created.set(true);
|
||||
|
||||
logger.info("OGLESContext create");
|
||||
logger.log(Level.INFO, "Running on thread: {0}", Thread.currentThread().getName());
|
||||
logger.log(Level.FINE, "Running on thread: {0}", Thread.currentThread().getName());
|
||||
|
||||
// Setup unhandled Exception Handler
|
||||
Thread.currentThread().setUncaughtExceptionHandler(new Thread.UncaughtExceptionHandler() {
|
||||
@ -310,7 +310,7 @@ public class OGLESContext implements JmeContext, GLSurfaceView.Renderer, SoftTex
|
||||
// SystemListener:reshape
|
||||
@Override
|
||||
public void onSurfaceChanged(GL10 gl, int width, int height) {
|
||||
logger.log(Level.INFO, "GL Surface changed, width: {0} height: {1}", new Object[]{width, height});
|
||||
logger.log(Level.FINE, "GL Surface changed, width: {0} height: {1}", new Object[]{width, height});
|
||||
settings.setResolution(width, height);
|
||||
listener.reshape(width, height);
|
||||
}
|
||||
@ -339,7 +339,7 @@ public class OGLESContext implements JmeContext, GLSurfaceView.Renderer, SoftTex
|
||||
|
||||
// Enforce a FPS cap
|
||||
if (milliDelta < minFrameDuration) {
|
||||
//logger.log(Level.INFO, "Time per frame {0}", milliDelta);
|
||||
//logger.log(Level.FINE, "Time per frame {0}", milliDelta);
|
||||
try {
|
||||
Thread.sleep(minFrameDuration - milliDelta);
|
||||
} catch (InterruptedException e) {
|
||||
@ -394,7 +394,7 @@ public class OGLESContext implements JmeContext, GLSurfaceView.Renderer, SoftTex
|
||||
}
|
||||
|
||||
public void requestDialog(final int id, final String title, final String initialValue, final SoftTextDialogInputListener listener) {
|
||||
logger.log(Level.INFO, "requestDialog: title: {0}, initialValue: {1}",
|
||||
logger.log(Level.FINE, "requestDialog: title: {0}, initialValue: {1}",
|
||||
new Object[]{title, initialValue});
|
||||
|
||||
final Activity activity = JmeAndroidSystem.getActivity();
|
||||
|
@ -27,7 +27,7 @@ public class AndroidLogHandler extends Handler {
|
||||
String msg = String.format(record.getMessage(), record.getParameters());
|
||||
Throwable t = record.getThrown();
|
||||
|
||||
if (level == Level.INFO) {
|
||||
if (level == Level.FINE) {
|
||||
Log.i(clsName, msg, t);
|
||||
} else if (level == Level.SEVERE) {
|
||||
Log.e(clsName, msg, t);
|
||||
|
@ -84,7 +84,7 @@ import com.jme3.scene.plugins.blender.objects.ObjectHelper;
|
||||
result.addLight(((LightNode)object).getLight());
|
||||
result.attachChild((LightNode) object);
|
||||
} else if (object instanceof Node && (blenderContext.getBlenderKey().getFeaturesToLoad() & FeaturesToLoad.OBJECTS) != 0) {
|
||||
LOGGER.log(Level.INFO, "{0}: {1}--> {2}", new Object[] { ((Node) object).getName(), ((Node) object).getLocalTranslation().toString(), ((Node) object).getParent() == null ? "null" : ((Node) object).getParent().getName() });
|
||||
LOGGER.log(Level.FINE, "{0}: {1}--> {2}", new Object[] { ((Node) object).getName(), ((Node) object).getLocalTranslation().toString(), ((Node) object).getParent() == null ? "null" : ((Node) object).getParent().getName() });
|
||||
if (((Node) object).getParent() == null) {
|
||||
result.attachChild((Spatial) object);
|
||||
}
|
||||
|
@ -92,7 +92,7 @@ public class BlenderLoader extends AbstractBlenderLoader {
|
||||
} else if (object instanceof CameraNode && (blenderKey.getFeaturesToLoad() & FeaturesToLoad.CAMERAS) != 0) {
|
||||
loadingResults.addCamera((CameraNode) object);
|
||||
} else if (object instanceof Node && (blenderKey.getFeaturesToLoad() & FeaturesToLoad.OBJECTS) != 0) {
|
||||
LOGGER.log(Level.INFO, "{0}: {1}--> {2}", new Object[] { ((Node) object).getName(), ((Node) object).getLocalTranslation().toString(), ((Node) object).getParent() == null ? "null" : ((Node) object).getParent().getName() });
|
||||
LOGGER.log(Level.FINE, "{0}: {1}--> {2}", new Object[] { ((Node) object).getName(), ((Node) object).getLocalTranslation().toString(), ((Node) object).getParent() == null ? "null" : ((Node) object).getParent().getName() });
|
||||
if (this.isRootObject(loadingResults, (Node)object)) {
|
||||
loadingResults.addObject((Node) object);
|
||||
}
|
||||
|
@ -69,7 +69,7 @@ public class BlenderModelLoader extends BlenderLoader {
|
||||
modelRoot.addLight(((LightNode)object).getLight());
|
||||
modelRoot.attachChild((LightNode)object);
|
||||
} else if (object instanceof Node && (blenderKey.getFeaturesToLoad() & FeaturesToLoad.OBJECTS) != 0) {
|
||||
LOGGER.log(Level.INFO, "{0}: {1}--> {2}", new Object[] { ((Node) object).getName(), ((Node) object).getLocalTranslation().toString(), ((Node) object).getParent() == null ? "null" : ((Node) object).getParent().getName() });
|
||||
LOGGER.log(Level.FINE, "{0}: {1}--> {2}", new Object[] { ((Node) object).getName(), ((Node) object).getLocalTranslation().toString(), ((Node) object).getParent() == null ? "null" : ((Node) object).getParent().getName() });
|
||||
if (((Node) object).getParent() == null) {
|
||||
modelRoot.attachChild((Node)object);
|
||||
}
|
||||
|
@ -181,7 +181,7 @@ public class ArmatureHelper extends AbstractBlenderHelper {
|
||||
* file
|
||||
*/
|
||||
private BoneTrack[] getTracks250(Structure actionStructure, Skeleton skeleton, BlenderContext blenderContext) throws BlenderFileException {
|
||||
LOGGER.log(Level.INFO, "Getting tracks!");
|
||||
LOGGER.log(Level.FINE, "Getting tracks!");
|
||||
IpoHelper ipoHelper = blenderContext.getHelper(IpoHelper.class);
|
||||
int fps = blenderContext.getBlenderKey().getFps();
|
||||
Structure groups = (Structure) actionStructure.getFieldValue("groups");
|
||||
@ -223,7 +223,7 @@ public class ArmatureHelper extends AbstractBlenderHelper {
|
||||
* file
|
||||
*/
|
||||
private BoneTrack[] getTracks249(Structure actionStructure, Skeleton skeleton, BlenderContext blenderContext) throws BlenderFileException {
|
||||
LOGGER.log(Level.INFO, "Getting tracks!");
|
||||
LOGGER.log(Level.FINE, "Getting tracks!");
|
||||
IpoHelper ipoHelper = blenderContext.getHelper(IpoHelper.class);
|
||||
int fps = blenderContext.getBlenderKey().getFps();
|
||||
Structure chanbase = (Structure) actionStructure.getFieldValue("chanbase");
|
||||
|
@ -21,6 +21,6 @@ import com.jme3.scene.plugins.blender.file.Structure;
|
||||
@Override
|
||||
public void bake(Transform ownerTransform, Transform targetTransform, float influence) {
|
||||
//TODO: implement when curves are implemented
|
||||
LOGGER.log(Level.INFO, "'Clamp to' not yet implemented!");
|
||||
LOGGER.log(Level.WARNING, "'Clamp to' not yet implemented!");
|
||||
}
|
||||
}
|
||||
|
@ -21,6 +21,6 @@ import com.jme3.scene.plugins.blender.file.Structure;
|
||||
@Override
|
||||
public void bake(Transform ownerTransform, Transform targetTransform, float influence) {
|
||||
//TODO: implement when curves are implemented
|
||||
LOGGER.log(Level.INFO, "'Follow path' not implemented! Curves not yet implemented!");
|
||||
LOGGER.log(Level.WARNING, "'Follow path' not implemented! Curves not yet implemented!");
|
||||
}
|
||||
}
|
||||
|
@ -161,14 +161,14 @@ public class MaterialHelper extends AbstractBlenderHelper {
|
||||
* an exception is throw when problems with blend file occur
|
||||
*/
|
||||
public MaterialContext toMaterialContext(Structure structure, BlenderContext blenderContext) throws BlenderFileException {
|
||||
LOGGER.log(Level.INFO, "Loading material.");
|
||||
LOGGER.log(Level.FINE, "Loading material.");
|
||||
MaterialContext result = (MaterialContext) blenderContext.getLoadedFeature(structure.getOldMemoryAddress(), LoadedFeatureDataType.LOADED_FEATURE);
|
||||
if (result != null) {
|
||||
return result;
|
||||
}
|
||||
|
||||
result = new MaterialContext(structure, blenderContext);
|
||||
LOGGER.log(Level.INFO, "Material''s name: {0}", result.name);
|
||||
LOGGER.log(Level.FINE, "Material''s name: {0}", result.name);
|
||||
blenderContext.addLoadedFeatures(structure.getOldMemoryAddress(), structure.getName(), structure, result);
|
||||
return result;
|
||||
}
|
||||
|
@ -115,7 +115,7 @@ public class ObjectHelper extends AbstractBlenderHelper {
|
||||
//get object data
|
||||
int type = ((Number)objectStructure.getFieldValue("type")).intValue();
|
||||
String name = objectStructure.getName();
|
||||
LOGGER.log(Level.INFO, "Loading obejct: {0}", name);
|
||||
LOGGER.log(Level.FINE, "Loading obejct: {0}", name);
|
||||
|
||||
int restrictflag = ((Number)objectStructure.getFieldValue("restrictflag")).intValue();
|
||||
boolean visible = (restrictflag & 0x01) != 0;
|
||||
@ -133,7 +133,7 @@ public class ObjectHelper extends AbstractBlenderHelper {
|
||||
try {
|
||||
switch(type) {
|
||||
case OBJECT_TYPE_EMPTY:
|
||||
LOGGER.log(Level.INFO, "Importing empty.");
|
||||
LOGGER.log(Level.FINE, "Importing empty.");
|
||||
Node empty = new Node(name);
|
||||
empty.setLocalTransform(t);
|
||||
if(parent instanceof Node) {
|
||||
@ -142,7 +142,7 @@ public class ObjectHelper extends AbstractBlenderHelper {
|
||||
result = empty;
|
||||
break;
|
||||
case OBJECT_TYPE_MESH:
|
||||
LOGGER.log(Level.INFO, "Importing mesh.");
|
||||
LOGGER.log(Level.FINE, "Importing mesh.");
|
||||
Node node = new Node(name);
|
||||
node.setCullHint(visible ? CullHint.Always : CullHint.Inherit);
|
||||
|
||||
@ -166,7 +166,7 @@ public class ObjectHelper extends AbstractBlenderHelper {
|
||||
break;
|
||||
case OBJECT_TYPE_SURF:
|
||||
case OBJECT_TYPE_CURVE:
|
||||
LOGGER.log(Level.INFO, "Importing curve/nurb.");
|
||||
LOGGER.log(Level.FINE, "Importing curve/nurb.");
|
||||
Pointer pCurve = (Pointer)objectStructure.getFieldValue("data");
|
||||
if(pCurve.isNotNull()) {
|
||||
CurvesHelper curvesHelper = blenderContext.getHelper(CurvesHelper.class);
|
||||
@ -180,7 +180,7 @@ public class ObjectHelper extends AbstractBlenderHelper {
|
||||
}
|
||||
break;
|
||||
case OBJECT_TYPE_LAMP:
|
||||
LOGGER.log(Level.INFO, "Importing lamp.");
|
||||
LOGGER.log(Level.FINE, "Importing lamp.");
|
||||
Pointer pLamp = (Pointer)objectStructure.getFieldValue("data");
|
||||
if(pLamp.isNotNull()) {
|
||||
LightHelper lightHelper = blenderContext.getHelper(LightHelper.class);
|
||||
|
@ -501,7 +501,7 @@ public class TextureHelper extends AbstractBlenderHelper {
|
||||
String texturePath = imageStructure.getFieldValue("name").toString();
|
||||
Pointer pPackedFile = (Pointer) imageStructure.getFieldValue("packedfile");
|
||||
if (pPackedFile.isNull()) {
|
||||
LOGGER.log(Level.INFO, "Reading texture from file: {0}", texturePath);
|
||||
LOGGER.log(Level.FINE, "Reading texture from file: {0}", texturePath);
|
||||
result = this.loadImageFromFile(texturePath, blenderContext);
|
||||
} else {
|
||||
LOGGER.info("Packed texture. Reading directly from the blend file!");
|
||||
|
@ -346,7 +346,7 @@ public class KinematicRagdollControl implements PhysicsControl, PhysicsCollision
|
||||
model.setLocalRotation(initRotation);
|
||||
model.setLocalScale(initScale);
|
||||
|
||||
logger.log(Level.INFO, "Created physics ragdoll for skeleton {0}", skeleton);
|
||||
logger.log(Level.FINE, "Created physics ragdoll for skeleton {0}", skeleton);
|
||||
}
|
||||
|
||||
/**
|
||||
@ -370,7 +370,7 @@ public class KinematicRagdollControl implements PhysicsControl, PhysicsCollision
|
||||
for (int i = 0; i < skeleton.getRoots().length; i++) {
|
||||
Bone childBone = skeleton.getRoots()[i];
|
||||
if (childBone.getParent() == null) {
|
||||
logger.log(Level.INFO, "Found root bone in skeleton {0}", skeleton);
|
||||
logger.log(Level.FINE, "Found root bone in skeleton {0}", skeleton);
|
||||
baseRigidBody = new PhysicsRigidBody(new BoxCollisionShape(Vector3f.UNIT_XYZ.mult(0.1f)), 1);
|
||||
baseRigidBody.setKinematic(mode == Mode.Kinematic);
|
||||
boneRecursion(model, childBone, baseRigidBody, 1, pointsMap);
|
||||
|
@ -75,12 +75,12 @@ public abstract class RagdollPreset {
|
||||
JointPreset preset = boneMap.get(resultName);
|
||||
|
||||
if (preset != null && resultScore >= 50) {
|
||||
logger.log(Level.INFO, "Found matching joint for bone {0} : {1} with score {2}", new Object[]{boneName, resultName, resultScore});
|
||||
logger.log(Level.FINE, "Found matching joint for bone {0} : {1} with score {2}", new Object[]{boneName, resultName, resultScore});
|
||||
preset.setupJoint(joint);
|
||||
} else {
|
||||
logger.log(Level.INFO, "No joint match found for bone {0}", boneName);
|
||||
logger.log(Level.FINE, "No joint match found for bone {0}", boneName);
|
||||
if (resultScore > 0) {
|
||||
logger.log(Level.INFO, "Best match found is {0} with score {1}", new Object[]{resultName, resultScore});
|
||||
logger.log(Level.FINE, "Best match found is {0} with score {1}", new Object[]{resultName, resultScore});
|
||||
}
|
||||
new JointPreset().setupJoint(joint);
|
||||
}
|
||||
|
@ -567,17 +567,17 @@ public class PhysicsSpace {
|
||||
private native void removeConstraint(long space, long id);
|
||||
|
||||
private void addGhostObject(PhysicsGhostObject node) {
|
||||
Logger.getLogger(PhysicsSpace.class.getName()).log(Level.INFO, "Adding ghost object {0} to physics space.", Long.toHexString(node.getObjectId()));
|
||||
Logger.getLogger(PhysicsSpace.class.getName()).log(Level.FINE, "Adding ghost object {0} to physics space.", Long.toHexString(node.getObjectId()));
|
||||
addCollisionObject(physicsSpaceId, node.getObjectId());
|
||||
}
|
||||
|
||||
private void removeGhostObject(PhysicsGhostObject node) {
|
||||
Logger.getLogger(PhysicsSpace.class.getName()).log(Level.INFO, "Removing ghost object {0} from physics space.", Long.toHexString(node.getObjectId()));
|
||||
Logger.getLogger(PhysicsSpace.class.getName()).log(Level.FINE, "Removing ghost object {0} from physics space.", Long.toHexString(node.getObjectId()));
|
||||
removeCollisionObject(physicsSpaceId, node.getObjectId());
|
||||
}
|
||||
|
||||
private void addCharacter(PhysicsCharacter node) {
|
||||
Logger.getLogger(PhysicsSpace.class.getName()).log(Level.INFO, "Adding character {0} to physics space.", Long.toHexString(node.getObjectId()));
|
||||
Logger.getLogger(PhysicsSpace.class.getName()).log(Level.FINE, "Adding character {0} to physics space.", Long.toHexString(node.getObjectId()));
|
||||
addCharacterObject(physicsSpaceId, node.getObjectId());
|
||||
addAction(physicsSpaceId, node.getControllerId());
|
||||
// dynamicsWorld.addCollisionObject(node.getObjectId(), CollisionFilterGroups.CHARACTER_FILTER, (short) (CollisionFilterGroups.STATIC_FILTER | CollisionFilterGroups.DEFAULT_FILTER));
|
||||
@ -585,7 +585,7 @@ public class PhysicsSpace {
|
||||
}
|
||||
|
||||
private void removeCharacter(PhysicsCharacter node) {
|
||||
Logger.getLogger(PhysicsSpace.class.getName()).log(Level.INFO, "Removing character {0} from physics space.", Long.toHexString(node.getObjectId()));
|
||||
Logger.getLogger(PhysicsSpace.class.getName()).log(Level.FINE, "Removing character {0} from physics space.", Long.toHexString(node.getObjectId()));
|
||||
removeAction(physicsSpaceId, node.getControllerId());
|
||||
removeCharacterObject(physicsSpaceId, node.getObjectId());
|
||||
// dynamicsWorld.removeAction(node.getControllerId());
|
||||
@ -608,32 +608,32 @@ public class PhysicsSpace {
|
||||
node.setKinematic(true);
|
||||
}
|
||||
|
||||
Logger.getLogger(PhysicsSpace.class.getName()).log(Level.INFO, "Adding RigidBody {0} to physics space.", node.getObjectId());
|
||||
Logger.getLogger(PhysicsSpace.class.getName()).log(Level.FINE, "Adding RigidBody {0} to physics space.", node.getObjectId());
|
||||
if (node instanceof PhysicsVehicle) {
|
||||
Logger.getLogger(PhysicsSpace.class.getName()).log(Level.INFO, "Adding vehicle constraint {0} to physics space.", Long.toHexString(((PhysicsVehicle) node).getVehicleId()));
|
||||
Logger.getLogger(PhysicsSpace.class.getName()).log(Level.FINE, "Adding vehicle constraint {0} to physics space.", Long.toHexString(((PhysicsVehicle) node).getVehicleId()));
|
||||
addVehicle(physicsSpaceId, ((PhysicsVehicle) node).getVehicleId());
|
||||
}
|
||||
}
|
||||
|
||||
private void removeRigidBody(PhysicsRigidBody node) {
|
||||
if (node instanceof PhysicsVehicle) {
|
||||
Logger.getLogger(PhysicsSpace.class.getName()).log(Level.INFO, "Removing vehicle constraint {0} from physics space.", Long.toHexString(((PhysicsVehicle) node).getVehicleId()));
|
||||
Logger.getLogger(PhysicsSpace.class.getName()).log(Level.FINE, "Removing vehicle constraint {0} from physics space.", Long.toHexString(((PhysicsVehicle) node).getVehicleId()));
|
||||
removeVehicle(physicsSpaceId, ((PhysicsVehicle) node).getVehicleId());
|
||||
}
|
||||
Logger.getLogger(PhysicsSpace.class.getName()).log(Level.INFO, "Removing RigidBody {0} from physics space.", Long.toHexString(node.getObjectId()));
|
||||
Logger.getLogger(PhysicsSpace.class.getName()).log(Level.FINE, "Removing RigidBody {0} from physics space.", Long.toHexString(node.getObjectId()));
|
||||
physicsNodes.remove(node.getObjectId());
|
||||
removeRigidBody(physicsSpaceId, node.getObjectId());
|
||||
}
|
||||
|
||||
private void addJoint(PhysicsJoint joint) {
|
||||
Logger.getLogger(PhysicsSpace.class.getName()).log(Level.INFO, "Adding Joint {0} to physics space.", Long.toHexString(joint.getObjectId()));
|
||||
Logger.getLogger(PhysicsSpace.class.getName()).log(Level.FINE, "Adding Joint {0} to physics space.", Long.toHexString(joint.getObjectId()));
|
||||
physicsJoints.add(joint);
|
||||
addConstraintC(physicsSpaceId, joint.getObjectId(), !joint.isCollisionBetweenLinkedBodys());
|
||||
// dynamicsWorld.addConstraint(joint.getObjectId(), !joint.isCollisionBetweenLinkedBodys());
|
||||
}
|
||||
|
||||
private void removeJoint(PhysicsJoint joint) {
|
||||
Logger.getLogger(PhysicsSpace.class.getName()).log(Level.INFO, "Removing Joint {0} from physics space.", Long.toHexString(joint.getObjectId()));
|
||||
Logger.getLogger(PhysicsSpace.class.getName()).log(Level.FINE, "Removing Joint {0} from physics space.", Long.toHexString(joint.getObjectId()));
|
||||
physicsJoints.remove(joint);
|
||||
removeConstraint(physicsSpaceId, joint.getObjectId());
|
||||
// dynamicsWorld.removeConstraint(joint.getObjectId());
|
||||
@ -915,7 +915,7 @@ public class PhysicsSpace {
|
||||
@Override
|
||||
protected void finalize() throws Throwable {
|
||||
super.finalize();
|
||||
Logger.getLogger(this.getClass().getName()).log(Level.INFO, "Finalizing PhysicsSpace {0}", Long.toHexString(physicsSpaceId));
|
||||
Logger.getLogger(this.getClass().getName()).log(Level.FINE, "Finalizing PhysicsSpace {0}", Long.toHexString(physicsSpaceId));
|
||||
finalizeNative(physicsSpaceId);
|
||||
}
|
||||
|
||||
|
@ -170,7 +170,7 @@ public abstract class PhysicsCollisionObject implements Savable {
|
||||
}
|
||||
|
||||
protected void initUserPointer() {
|
||||
Logger.getLogger(this.getClass().getName()).log(Level.INFO, "initUserPointer() objectId = {0}", Long.toHexString(objectId));
|
||||
Logger.getLogger(this.getClass().getName()).log(Level.FINE, "initUserPointer() objectId = {0}", Long.toHexString(objectId));
|
||||
initUserPointer(objectId, collisionGroup, collisionGroupsMask);
|
||||
}
|
||||
native void initUserPointer(long objectId, int group, int groups);
|
||||
@ -316,7 +316,7 @@ public abstract class PhysicsCollisionObject implements Savable {
|
||||
@Override
|
||||
protected void finalize() throws Throwable {
|
||||
super.finalize();
|
||||
Logger.getLogger(this.getClass().getName()).log(Level.INFO, "Finalizing CollisionObject {0}", Long.toHexString(objectId));
|
||||
Logger.getLogger(this.getClass().getName()).log(Level.FINE, "Finalizing CollisionObject {0}", Long.toHexString(objectId));
|
||||
finalizeNative(objectId);
|
||||
}
|
||||
|
||||
|
@ -80,7 +80,7 @@ public class BoxCollisionShape extends CollisionShape {
|
||||
|
||||
protected void createShape() {
|
||||
objectId = createShape(halfExtents);
|
||||
Logger.getLogger(this.getClass().getName()).log(Level.INFO, "Created Shape {0}", Long.toHexString(objectId));
|
||||
Logger.getLogger(this.getClass().getName()).log(Level.FINE, "Created Shape {0}", Long.toHexString(objectId));
|
||||
// cShape = new BoxShape(Converter.convert(halfExtents));
|
||||
setScale(scale);
|
||||
setMargin(margin);
|
||||
|
@ -106,7 +106,7 @@ public class CapsuleCollisionShape extends CollisionShape{
|
||||
|
||||
protected void createShape(){
|
||||
objectId = createShape(axis, radius, height);
|
||||
Logger.getLogger(this.getClass().getName()).log(Level.INFO, "Created Shape {0}", Long.toHexString(objectId));
|
||||
Logger.getLogger(this.getClass().getName()).log(Level.FINE, "Created Shape {0}", Long.toHexString(objectId));
|
||||
setScale(scale);
|
||||
setMargin(margin);
|
||||
// switch(axis){
|
||||
|
@ -122,7 +122,7 @@ public abstract class CollisionShape implements Savable {
|
||||
@Override
|
||||
protected void finalize() throws Throwable {
|
||||
super.finalize();
|
||||
Logger.getLogger(this.getClass().getName()).log(Level.INFO, "Finalizing CollisionShape {0}", Long.toHexString(objectId));
|
||||
Logger.getLogger(this.getClass().getName()).log(Level.FINE, "Finalizing CollisionShape {0}", Long.toHexString(objectId));
|
||||
finalizeNative(objectId);
|
||||
}
|
||||
|
||||
|
@ -56,7 +56,7 @@ public class CompoundCollisionShape extends CollisionShape {
|
||||
|
||||
public CompoundCollisionShape() {
|
||||
objectId = createShape();//new CompoundShape();
|
||||
Logger.getLogger(this.getClass().getName()).log(Level.INFO, "Created Shape {0}", Long.toHexString(objectId));
|
||||
Logger.getLogger(this.getClass().getName()).log(Level.FINE, "Created Shape {0}", Long.toHexString(objectId));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -90,7 +90,7 @@ public class ConeCollisionShape extends CollisionShape {
|
||||
|
||||
protected void createShape() {
|
||||
objectId = createShape(axis, radius, height);
|
||||
Logger.getLogger(this.getClass().getName()).log(Level.INFO, "Created Shape {0}", Long.toHexString(objectId));
|
||||
Logger.getLogger(this.getClass().getName()).log(Level.FINE, "Created Shape {0}", Long.toHexString(objectId));
|
||||
// if (axis == PhysicsSpace.AXIS_X) {
|
||||
// objectId = new ConeShapeX(radius, height);
|
||||
// } else if (axis == PhysicsSpace.AXIS_Y) {
|
||||
|
@ -98,7 +98,7 @@ public class CylinderCollisionShape extends CollisionShape {
|
||||
|
||||
protected void createShape() {
|
||||
objectId = createShape(axis, halfExtents);
|
||||
Logger.getLogger(this.getClass().getName()).log(Level.INFO, "Created Shape {0}", Long.toHexString(objectId));
|
||||
Logger.getLogger(this.getClass().getName()).log(Level.FINE, "Created Shape {0}", Long.toHexString(objectId));
|
||||
// switch (axis) {
|
||||
// case 0:
|
||||
// objectId = new CylinderShapeX(Converter.convert(halfExtents));
|
||||
|
@ -148,9 +148,9 @@ public class GImpactCollisionShape extends CollisionShape {
|
||||
// objectId.setLocalScaling(Converter.convert(getScale()));
|
||||
// objectId.setMargin(margin);
|
||||
meshId = NativeMeshUtil.createTriangleIndexVertexArray(triangleIndexBase, vertexBase, numTriangles, numVertices, vertexStride, triangleIndexStride);
|
||||
Logger.getLogger(this.getClass().getName()).log(Level.INFO, "Created Mesh {0}", Long.toHexString(meshId));
|
||||
Logger.getLogger(this.getClass().getName()).log(Level.FINE, "Created Mesh {0}", Long.toHexString(meshId));
|
||||
objectId = createShape(meshId);
|
||||
Logger.getLogger(this.getClass().getName()).log(Level.INFO, "Created Shape {0}", Long.toHexString(objectId));
|
||||
Logger.getLogger(this.getClass().getName()).log(Level.FINE, "Created Shape {0}", Long.toHexString(objectId));
|
||||
setScale(scale);
|
||||
setMargin(margin);
|
||||
}
|
||||
@ -160,7 +160,7 @@ public class GImpactCollisionShape extends CollisionShape {
|
||||
@Override
|
||||
protected void finalize() throws Throwable {
|
||||
super.finalize();
|
||||
Logger.getLogger(this.getClass().getName()).log(Level.INFO, "Finalizing Mesh {0}", Long.toHexString(meshId));
|
||||
Logger.getLogger(this.getClass().getName()).log(Level.FINE, "Finalizing Mesh {0}", Long.toHexString(meshId));
|
||||
finalizeNative(meshId);
|
||||
}
|
||||
|
||||
|
@ -131,7 +131,7 @@ public class HeightfieldCollisionShape extends CollisionShape {
|
||||
}
|
||||
// fbuf.rewind();
|
||||
objectId = createShape(heightStickWidth, heightStickLength, bbuf, heightScale, minHeight, maxHeight, upAxis, flipQuadEdges);
|
||||
Logger.getLogger(this.getClass().getName()).log(Level.INFO, "Created Shape {0}", Long.toHexString(objectId));
|
||||
Logger.getLogger(this.getClass().getName()).log(Level.FINE, "Created Shape {0}", Long.toHexString(objectId));
|
||||
setScale(scale);
|
||||
setMargin(margin);
|
||||
}
|
||||
|
@ -107,7 +107,7 @@ public class HullCollisionShape extends CollisionShape {
|
||||
}
|
||||
bbuf.rewind();
|
||||
objectId = createShape(bbuf);
|
||||
Logger.getLogger(this.getClass().getName()).log(Level.INFO, "Created Shape {0}", Long.toHexString(objectId));
|
||||
Logger.getLogger(this.getClass().getName()).log(Level.FINE, "Created Shape {0}", Long.toHexString(objectId));
|
||||
setScale(scale);
|
||||
setMargin(margin);
|
||||
}
|
||||
|
@ -141,9 +141,9 @@ public class MeshCollisionShape extends CollisionShape {
|
||||
// objectId.setLocalScaling(Converter.convert(getScale()));
|
||||
// objectId.setMargin(margin);
|
||||
meshId = NativeMeshUtil.createTriangleIndexVertexArray(triangleIndexBase, vertexBase, numTriangles, numVertices, vertexStride, triangleIndexStride);
|
||||
Logger.getLogger(this.getClass().getName()).log(Level.INFO, "Created Mesh {0}", Long.toHexString(meshId));
|
||||
Logger.getLogger(this.getClass().getName()).log(Level.FINE, "Created Mesh {0}", Long.toHexString(meshId));
|
||||
objectId = createShape(meshId);
|
||||
Logger.getLogger(this.getClass().getName()).log(Level.INFO, "Created Shape {0}", Long.toHexString(objectId));
|
||||
Logger.getLogger(this.getClass().getName()).log(Level.FINE, "Created Shape {0}", Long.toHexString(objectId));
|
||||
setScale(scale);
|
||||
setMargin(margin);
|
||||
}
|
||||
@ -153,7 +153,7 @@ public class MeshCollisionShape extends CollisionShape {
|
||||
@Override
|
||||
protected void finalize() throws Throwable {
|
||||
super.finalize();
|
||||
Logger.getLogger(this.getClass().getName()).log(Level.INFO, "Finalizing Mesh {0}", Long.toHexString(meshId));
|
||||
Logger.getLogger(this.getClass().getName()).log(Level.FINE, "Finalizing Mesh {0}", Long.toHexString(meshId));
|
||||
finalizeNative(meshId);
|
||||
}
|
||||
|
||||
|
@ -79,7 +79,7 @@ public class PlaneCollisionShape extends CollisionShape{
|
||||
|
||||
protected void createShape() {
|
||||
objectId = createShape(plane.getNormal(), plane.getConstant());
|
||||
Logger.getLogger(this.getClass().getName()).log(Level.INFO, "Created Shape {0}", Long.toHexString(objectId));
|
||||
Logger.getLogger(this.getClass().getName()).log(Level.FINE, "Created Shape {0}", Long.toHexString(objectId));
|
||||
// objectId = new StaticPlaneShape(Converter.convert(plane.getNormal()),plane.getConstant());
|
||||
// objectId.setLocalScaling(Converter.convert(getScale()));
|
||||
// objectId.setMargin(margin);
|
||||
|
@ -110,7 +110,7 @@ public class SimplexCollisionShape extends CollisionShape {
|
||||
objectId = createShape(vector1);
|
||||
// objectId = new BU_Simplex1to4(Converter.convert(vector1));
|
||||
}
|
||||
Logger.getLogger(this.getClass().getName()).log(Level.INFO, "Created Shape {0}", Long.toHexString(objectId));
|
||||
Logger.getLogger(this.getClass().getName()).log(Level.FINE, "Created Shape {0}", Long.toHexString(objectId));
|
||||
// objectId.setLocalScaling(Converter.convert(getScale()));
|
||||
// objectId.setMargin(margin);
|
||||
setScale(scale);
|
||||
|
@ -78,7 +78,7 @@ public class SphereCollisionShape extends CollisionShape {
|
||||
|
||||
protected void createShape() {
|
||||
objectId = createShape(radius);
|
||||
Logger.getLogger(this.getClass().getName()).log(Level.INFO, "Created Shape {0}", Long.toHexString(objectId));
|
||||
Logger.getLogger(this.getClass().getName()).log(Level.FINE, "Created Shape {0}", Long.toHexString(objectId));
|
||||
// new SphereShape(radius);
|
||||
// objectId.setLocalScaling(Converter.convert(getScale()));
|
||||
// objectId.setMargin(margin);
|
||||
|
@ -127,7 +127,7 @@ public class ConeJoint extends PhysicsJoint {
|
||||
|
||||
protected void createJoint() {
|
||||
objectId = createJoint(nodeA.getObjectId(), nodeB.getObjectId(), pivotA, rotA, pivotB, rotB);
|
||||
Logger.getLogger(this.getClass().getName()).log(Level.INFO, "Created Joint {0}", Long.toHexString(objectId));
|
||||
Logger.getLogger(this.getClass().getName()).log(Level.FINE, "Created Joint {0}", Long.toHexString(objectId));
|
||||
setLimit(objectId, swingSpan1, swingSpan2, twistSpan);
|
||||
setAngularOnly(objectId, angularOnly);
|
||||
}
|
||||
|
@ -202,7 +202,7 @@ public class HingeJoint extends PhysicsJoint {
|
||||
|
||||
protected void createJoint() {
|
||||
objectId = createJoint(nodeA.getObjectId(), nodeB.getObjectId(), pivotA, axisA, pivotB, axisB);
|
||||
Logger.getLogger(this.getClass().getName()).log(Level.INFO, "Created Joint {0}", Long.toHexString(objectId));
|
||||
Logger.getLogger(this.getClass().getName()).log(Level.FINE, "Created Joint {0}", Long.toHexString(objectId));
|
||||
}
|
||||
|
||||
private native long createJoint(long objectIdA, long objectIdB, Vector3f pivotA, Vector3f axisA, Vector3f pivotB, Vector3f axisB);
|
||||
|
@ -139,7 +139,7 @@ public abstract class PhysicsJoint implements Savable {
|
||||
@Override
|
||||
protected void finalize() throws Throwable {
|
||||
super.finalize();
|
||||
Logger.getLogger(this.getClass().getName()).log(Level.INFO, "Finalizing Joint {0}", Long.toHexString(objectId));
|
||||
Logger.getLogger(this.getClass().getName()).log(Level.FINE, "Finalizing Joint {0}", Long.toHexString(objectId));
|
||||
finalizeNative(objectId);
|
||||
}
|
||||
|
||||
|
@ -119,7 +119,7 @@ public class Point2PointJoint extends PhysicsJoint {
|
||||
|
||||
protected void createJoint() {
|
||||
objectId = createJoint(nodeA.getObjectId(), nodeB.getObjectId(), pivotA, pivotB);
|
||||
Logger.getLogger(this.getClass().getName()).log(Level.INFO, "Created Joint {0}", Long.toHexString(objectId));
|
||||
Logger.getLogger(this.getClass().getName()).log(Level.FINE, "Created Joint {0}", Long.toHexString(objectId));
|
||||
}
|
||||
|
||||
private native long createJoint(long objectIdA, long objectIdB, Vector3f pivotA, Vector3f pivotB);
|
||||
|
@ -82,7 +82,7 @@ public class SixDofJoint extends PhysicsJoint {
|
||||
this.rotB = rotB;
|
||||
|
||||
objectId = createJoint(nodeA.getObjectId(), nodeB.getObjectId(), pivotA, rotA, pivotB, rotB, useLinearReferenceFrameA);
|
||||
Logger.getLogger(this.getClass().getName()).log(Level.INFO, "Created Joint {0}", Long.toHexString(objectId));
|
||||
Logger.getLogger(this.getClass().getName()).log(Level.FINE, "Created Joint {0}", Long.toHexString(objectId));
|
||||
gatherMotors();
|
||||
}
|
||||
|
||||
@ -97,7 +97,7 @@ public class SixDofJoint extends PhysicsJoint {
|
||||
rotB = new Matrix3f();
|
||||
|
||||
objectId = createJoint(nodeA.getObjectId(), nodeB.getObjectId(), pivotA, rotA, pivotB, rotB, useLinearReferenceFrameA);
|
||||
Logger.getLogger(this.getClass().getName()).log(Level.INFO, "Created Joint {0}", Long.toHexString(objectId));
|
||||
Logger.getLogger(this.getClass().getName()).log(Level.FINE, "Created Joint {0}", Long.toHexString(objectId));
|
||||
gatherMotors();
|
||||
}
|
||||
|
||||
@ -168,7 +168,7 @@ public class SixDofJoint extends PhysicsJoint {
|
||||
InputCapsule capsule = im.getCapsule(this);
|
||||
|
||||
objectId = createJoint(nodeA.getObjectId(), nodeB.getObjectId(), pivotA, rotA, pivotB, rotB, useLinearReferenceFrameA);
|
||||
Logger.getLogger(this.getClass().getName()).log(Level.INFO, "Created Joint {0}", Long.toHexString(objectId));
|
||||
Logger.getLogger(this.getClass().getName()).log(Level.FINE, "Created Joint {0}", Long.toHexString(objectId));
|
||||
gatherMotors();
|
||||
|
||||
setAngularUpperLimit((Vector3f) capsule.readSavable("angularUpperLimit", new Vector3f(Vector3f.POSITIVE_INFINITY)));
|
||||
|
@ -530,7 +530,7 @@ public class SliderJoint extends PhysicsJoint {
|
||||
|
||||
protected void createJoint() {
|
||||
objectId = createJoint(nodeA.getObjectId(), nodeB.getObjectId(), pivotA, rotA, pivotB, rotB, useLinearReferenceFrameA);
|
||||
Logger.getLogger(this.getClass().getName()).log(Level.INFO, "Created Joint {0}", Long.toHexString(objectId));
|
||||
Logger.getLogger(this.getClass().getName()).log(Level.FINE, "Created Joint {0}", Long.toHexString(objectId));
|
||||
// = new SliderConstraint(nodeA.getObjectId(), nodeB.getObjectId(), transA, transB, useLinearReferenceFrameA);
|
||||
}
|
||||
|
||||
|
@ -78,17 +78,17 @@ public class PhysicsCharacter extends PhysicsCollisionObject {
|
||||
protected void buildObject() {
|
||||
if (objectId == 0) {
|
||||
objectId = createGhostObject();
|
||||
Logger.getLogger(this.getClass().getName()).log(Level.INFO, "Creating GhostObject {0}", Long.toHexString(objectId));
|
||||
Logger.getLogger(this.getClass().getName()).log(Level.FINE, "Creating GhostObject {0}", Long.toHexString(objectId));
|
||||
initUserPointer();
|
||||
}
|
||||
setCharacterFlags(objectId);
|
||||
attachCollisionShape(objectId, collisionShape.getObjectId());
|
||||
if (characterId != 0) {
|
||||
Logger.getLogger(this.getClass().getName()).log(Level.INFO, "Clearing Character {0}", Long.toHexString(objectId));
|
||||
Logger.getLogger(this.getClass().getName()).log(Level.FINE, "Clearing Character {0}", Long.toHexString(objectId));
|
||||
finalizeNativeCharacter(characterId);
|
||||
}
|
||||
characterId = createCharacterObject(objectId, collisionShape.getObjectId(), stepHeight);
|
||||
Logger.getLogger(this.getClass().getName()).log(Level.INFO, "Creating Character {0}", Long.toHexString(characterId));
|
||||
Logger.getLogger(this.getClass().getName()).log(Level.FINE, "Creating Character {0}", Long.toHexString(characterId));
|
||||
}
|
||||
|
||||
private native long createGhostObject();
|
||||
|
@ -78,7 +78,7 @@ public class PhysicsGhostObject extends PhysicsCollisionObject {
|
||||
if (objectId == 0) {
|
||||
// gObject = new PairCachingGhostObject();
|
||||
objectId = createGhostObject();
|
||||
Logger.getLogger(this.getClass().getName()).log(Level.INFO, "Created Ghost Object {0}", Long.toHexString(objectId));
|
||||
Logger.getLogger(this.getClass().getName()).log(Level.FINE, "Created Ghost Object {0}", Long.toHexString(objectId));
|
||||
setGhostFlags(objectId);
|
||||
initUserPointer();
|
||||
}
|
||||
|
@ -98,12 +98,12 @@ public class PhysicsRigidBody extends PhysicsCollisionObject {
|
||||
PhysicsSpace.getPhysicsSpace().remove(this);
|
||||
removed = true;
|
||||
}
|
||||
Logger.getLogger(this.getClass().getName()).log(Level.INFO, "Clearing RigidBody {0}", Long.toHexString(objectId));
|
||||
Logger.getLogger(this.getClass().getName()).log(Level.FINE, "Clearing RigidBody {0}", Long.toHexString(objectId));
|
||||
finalizeNative(objectId);
|
||||
}
|
||||
preRebuild();
|
||||
objectId = createRigidBody(mass, motionState.getObjectId(), collisionShape.getObjectId());
|
||||
Logger.getLogger(this.getClass().getName()).log(Level.INFO, "Created RigidBody {0}", Long.toHexString(objectId));
|
||||
Logger.getLogger(this.getClass().getName()).log(Level.FINE, "Created RigidBody {0}", Long.toHexString(objectId));
|
||||
postRebuild();
|
||||
if (removed) {
|
||||
PhysicsSpace.getPhysicsSpace().add(this);
|
||||
|
@ -126,14 +126,14 @@ public class PhysicsVehicle extends PhysicsRigidBody {
|
||||
throw new IllegalStateException("Physics space is not initialized!");
|
||||
}
|
||||
if (rayCasterId != 0) {
|
||||
Logger.getLogger(this.getClass().getName()).log(Level.INFO, "Clearing RayCaster {0}", Long.toHexString(rayCasterId));
|
||||
Logger.getLogger(this.getClass().getName()).log(Level.INFO, "Clearing Vehicle {0}", Long.toHexString(vehicleId));
|
||||
Logger.getLogger(this.getClass().getName()).log(Level.FINE, "Clearing RayCaster {0}", Long.toHexString(rayCasterId));
|
||||
Logger.getLogger(this.getClass().getName()).log(Level.FINE, "Clearing Vehicle {0}", Long.toHexString(vehicleId));
|
||||
finalizeNative(rayCasterId, vehicleId);
|
||||
}
|
||||
rayCasterId = createVehicleRaycaster(objectId, space.getSpaceId());
|
||||
Logger.getLogger(this.getClass().getName()).log(Level.INFO, "Created RayCaster {0}", Long.toHexString(rayCasterId));
|
||||
Logger.getLogger(this.getClass().getName()).log(Level.FINE, "Created RayCaster {0}", Long.toHexString(rayCasterId));
|
||||
vehicleId = createRaycastVehicle(objectId, rayCasterId);
|
||||
Logger.getLogger(this.getClass().getName()).log(Level.INFO, "Created Vehicle {0}", Long.toHexString(vehicleId));
|
||||
Logger.getLogger(this.getClass().getName()).log(Level.FINE, "Created Vehicle {0}", Long.toHexString(vehicleId));
|
||||
setCoordinateSystem(vehicleId, 0, 1, 2);
|
||||
for (VehicleWheel wheel : wheels) {
|
||||
wheel.setVehicleId(vehicleId, addWheel(vehicleId, wheel.getLocation(), wheel.getDirection(), wheel.getAxle(), wheel.getRestLength(), wheel.getRadius(), tuning, wheel.isFrontWheel()));
|
||||
@ -575,8 +575,8 @@ public class PhysicsVehicle extends PhysicsRigidBody {
|
||||
@Override
|
||||
protected void finalize() throws Throwable {
|
||||
super.finalize();
|
||||
Logger.getLogger(this.getClass().getName()).log(Level.INFO, "Finalizing RayCaster {0}", Long.toHexString(rayCasterId));
|
||||
Logger.getLogger(this.getClass().getName()).log(Level.INFO, "Finalizing Vehicle {0}", Long.toHexString(vehicleId));
|
||||
Logger.getLogger(this.getClass().getName()).log(Level.FINE, "Finalizing RayCaster {0}", Long.toHexString(rayCasterId));
|
||||
Logger.getLogger(this.getClass().getName()).log(Level.FINE, "Finalizing Vehicle {0}", Long.toHexString(vehicleId));
|
||||
finalizeNative(rayCasterId, vehicleId);
|
||||
}
|
||||
|
||||
|
@ -56,7 +56,7 @@ public class RigidBodyMotionState {
|
||||
|
||||
public RigidBodyMotionState() {
|
||||
this.motionStateId = createMotionState();
|
||||
Logger.getLogger(this.getClass().getName()).log(Level.INFO, "Created MotionState {0}", Long.toHexString(motionStateId));
|
||||
Logger.getLogger(this.getClass().getName()).log(Level.FINE, "Created MotionState {0}", Long.toHexString(motionStateId));
|
||||
}
|
||||
|
||||
private native long createMotionState();
|
||||
@ -155,7 +155,7 @@ public class RigidBodyMotionState {
|
||||
@Override
|
||||
protected void finalize() throws Throwable {
|
||||
super.finalize();
|
||||
Logger.getLogger(this.getClass().getName()).log(Level.INFO, "Finalizing MotionState {0}", Long.toHexString(motionStateId));
|
||||
Logger.getLogger(this.getClass().getName()).log(Level.FINE, "Finalizing MotionState {0}", Long.toHexString(motionStateId));
|
||||
finalizeNative(motionStateId);
|
||||
}
|
||||
|
||||
|
@ -169,12 +169,12 @@ public final class TranslucentBucketFilter extends Filter {
|
||||
emitter.getMaterial().setTexture("DepthTexture", processor.getDepthTexture());
|
||||
emitter.setQueueBucket(RenderQueue.Bucket.Translucent);
|
||||
|
||||
logger.log(Level.INFO, "Made particle Emitter {0} soft.", emitter.getName());
|
||||
logger.log(Level.FINE, "Made particle Emitter {0} soft.", emitter.getName());
|
||||
} else {
|
||||
emitter.getMaterial().clearParam("DepthTexture");
|
||||
emitter.getMaterial().selectTechnique("Default", renderManager);
|
||||
// emitter.setQueueBucket(RenderQueue.Bucket.Transparent);
|
||||
logger.log(Level.INFO, "Particle Emitter {0} is not soft anymore.", emitter.getName());
|
||||
logger.log(Level.FINE, "Particle Emitter {0} is not soft anymore.", emitter.getName());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -288,11 +288,11 @@ public class BinaryExporter implements JmeExporter {
|
||||
|
||||
if (debug ) {
|
||||
logger.info("Stats:");
|
||||
logger.log(Level.INFO, "classes: {0}", classNum);
|
||||
logger.log(Level.INFO, "class table: {0} bytes", classTableSize);
|
||||
logger.log(Level.INFO, "objects: {0}", numLocations);
|
||||
logger.log(Level.INFO, "location table: {0} bytes", locationTableSize);
|
||||
logger.log(Level.INFO, "data: {0} bytes", location);
|
||||
logger.log(Level.FINE, "classes: {0}", classNum);
|
||||
logger.log(Level.FINE, "class table: {0} bytes", classTableSize);
|
||||
logger.log(Level.FINE, "objects: {0}", numLocations);
|
||||
logger.log(Level.FINE, "location table: {0} bytes", locationTableSize);
|
||||
logger.log(Level.FINE, "data: {0} bytes", location);
|
||||
}
|
||||
|
||||
return true;
|
||||
|
@ -242,9 +242,9 @@ public final class BinaryImporter implements JmeImporter {
|
||||
Savable rVal = readObject(id);
|
||||
if (debug) {
|
||||
logger.info("Importer Stats: ");
|
||||
logger.log(Level.INFO, "Tags: {0}", numClasses);
|
||||
logger.log(Level.INFO, "Objects: {0}", numLocs);
|
||||
logger.log(Level.INFO, "Data Size: {0}", dataArray.length);
|
||||
logger.log(Level.FINE, "Tags: {0}", numClasses);
|
||||
logger.log(Level.FINE, "Objects: {0}", numLocs);
|
||||
logger.log(Level.FINE, "Data Size: {0}", dataArray.length);
|
||||
}
|
||||
dataArray = null;
|
||||
return rVal;
|
||||
|
@ -167,7 +167,7 @@ public class ScreenshotAppState extends AbstractAppState implements ActionListen
|
||||
} else {
|
||||
file = new File(filePath + appName + shotIndex + ".png").getAbsoluteFile();
|
||||
}
|
||||
logger.log(Level.INFO, "Saving ScreenShot to: {0}", file.getAbsolutePath());
|
||||
logger.log(Level.FINE, "Saving ScreenShot to: {0}", file.getAbsolutePath());
|
||||
|
||||
OutputStream outStream = null;
|
||||
try {
|
||||
|
@ -81,7 +81,7 @@ public class WeakRefAssetCache implements AssetCache {
|
||||
}
|
||||
}
|
||||
if (removedAssets >= 1) {
|
||||
logger.log(Level.INFO, "WeakRefAssetCache: {0} assets were purged from the cache.", removedAssets);
|
||||
logger.log(Level.FINE, "WeakRefAssetCache: {0} assets were purged from the cache.", removedAssets);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -116,7 +116,7 @@ public class WeakRefCloneAssetCache implements AssetCache {
|
||||
}
|
||||
}
|
||||
if (removedAssets >= 1) {
|
||||
logger.log(Level.INFO, "WeakRefAssetCache: {0} assets were purged from the cache.", removedAssets);
|
||||
logger.log(Level.FINE, "WeakRefAssetCache: {0} assets were purged from the cache.", removedAssets);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -106,7 +106,7 @@ public class JoystickCompatibilityMappings {
|
||||
* used instead.
|
||||
*/
|
||||
public static void addMapping( String stickName, String sourceComponentId, String remapId ) {
|
||||
logger.log(Level.INFO, "addMapping(" + stickName + ", " + sourceComponentId + ", " + remapId + ")" );
|
||||
logger.log(Level.FINE, "addMapping(" + stickName + ", " + sourceComponentId + ", " + remapId + ")" );
|
||||
getMappings(stickName, true).put( sourceComponentId, remapId );
|
||||
}
|
||||
|
||||
@ -139,7 +139,7 @@ public class JoystickCompatibilityMappings {
|
||||
* specified by the given URL.
|
||||
*/
|
||||
public static void loadMappingProperties( URL u ) throws IOException {
|
||||
logger.log(Level.INFO, "Loading mapping properties:{0}", u);
|
||||
logger.log(Level.FINE, "Loading mapping properties:{0}", u);
|
||||
InputStream in = u.openStream();
|
||||
try {
|
||||
Properties p = new Properties();
|
||||
@ -151,7 +151,7 @@ public class JoystickCompatibilityMappings {
|
||||
}
|
||||
|
||||
protected static void loadMappings( ClassLoader cl, String path ) throws IOException {
|
||||
logger.log(Level.INFO, "Searching for mappings for path:{0}", path);
|
||||
logger.log(Level.FINE, "Searching for mappings for path:{0}", path);
|
||||
for( Enumeration<URL> en = cl.getResources(path); en.hasMoreElements(); ) {
|
||||
URL u = en.nextElement();
|
||||
try {
|
||||
|
@ -72,7 +72,7 @@ public class MaterialDef {
|
||||
techniques = new HashMap<String, TechniqueDef>();
|
||||
matParams = new HashMap<String, MatParam>();
|
||||
defaultTechs = new ArrayList<TechniqueDef>();
|
||||
logger.log(Level.INFO, "Loaded material definition: {0}", name);
|
||||
logger.log(Level.FINE, "Loaded material definition: {0}", name);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -384,7 +384,7 @@ public class Eigen3f implements java.io.Serializable {
|
||||
|
||||
logger.info("eigenvalues = ");
|
||||
for (int i = 0; i < 3; i++)
|
||||
logger.log(Level.INFO, "{0} ", eigenSystem.getEigenValue(i));
|
||||
logger.log(Level.FINE, "{0} ", eigenSystem.getEigenValue(i));
|
||||
|
||||
logger.info("eigenvectors = ");
|
||||
for (int i = 0; i < 3; i++) {
|
||||
|
@ -246,7 +246,7 @@ public class Camera implements Savable, Cloneable {
|
||||
onViewPortChange();
|
||||
onFrameChange();
|
||||
|
||||
logger.log(Level.INFO, "Camera created (W: {0}, H: {1})", new Object[]{width, height});
|
||||
logger.log(Level.FINE, "Camera created (W: {0}, H: {1})", new Object[]{width, height});
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -236,7 +236,7 @@ public class BatchNode extends Node implements Savable {
|
||||
}
|
||||
|
||||
|
||||
logger.log(Level.INFO, "Batched {0} geometries in {1} batches.", new Object[]{nbGeoms, batches.size()});
|
||||
logger.log(Level.FINE, "Batched {0} geometries in {1} batches.", new Object[]{nbGeoms, batches.size()});
|
||||
|
||||
|
||||
//init temp float arrays
|
||||
|
@ -247,8 +247,8 @@ public class Node extends Spatial implements Savable {
|
||||
// transform update down the tree-
|
||||
child.setTransformRefresh();
|
||||
child.setLightListRefresh();
|
||||
if (logger.isLoggable(Level.INFO)) {
|
||||
logger.log(Level.INFO,"Child ({0}) attached to this node ({1})",
|
||||
if (logger.isLoggable(Level.FINE)) {
|
||||
logger.log(Level.FINE,"Child ({0}) attached to this node ({1})",
|
||||
new Object[]{child.getName(), getName()});
|
||||
}
|
||||
}
|
||||
@ -281,8 +281,8 @@ public class Node extends Spatial implements Savable {
|
||||
children.add(index, child);
|
||||
child.setTransformRefresh();
|
||||
child.setLightListRefresh();
|
||||
if (logger.isLoggable(Level.INFO)) {
|
||||
logger.log(Level.INFO,"Child ({0}) attached to this node ({1})",
|
||||
if (logger.isLoggable(Level.FINE)) {
|
||||
logger.log(Level.FINE,"Child ({0}) attached to this node ({1})",
|
||||
new Object[]{child.getName(), getName()});
|
||||
}
|
||||
}
|
||||
@ -349,7 +349,7 @@ public class Node extends Spatial implements Savable {
|
||||
Spatial child = children.remove(index);
|
||||
if ( child != null ) {
|
||||
child.setParent( null );
|
||||
logger.log(Level.INFO, "{0}: Child removed.", this.toString());
|
||||
logger.log(Level.FINE, "{0}: Child removed.", this.toString());
|
||||
|
||||
// since a child with a bound was detached;
|
||||
// our own bound will probably change.
|
||||
@ -374,7 +374,7 @@ public class Node extends Spatial implements Savable {
|
||||
for ( int i = children.size() - 1; i >= 0; i-- ) {
|
||||
detachChildAt(i);
|
||||
}
|
||||
logger.log(Level.INFO, "{0}: All children removed.", this.toString());
|
||||
logger.log(Level.FINE, "{0}: All children removed.", this.toString());
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -83,9 +83,9 @@ public abstract class JmeSystemDelegate {
|
||||
break;
|
||||
}
|
||||
if (storageFolder != null) {
|
||||
logger.log(Level.INFO, "Storage Folder Path: {0}", storageFolder.getAbsolutePath());
|
||||
logger.log(Level.FINE, "Storage Folder Path: {0}", storageFolder.getAbsolutePath());
|
||||
} else {
|
||||
logger.log(Level.INFO, "Storage Folder not found!");
|
||||
logger.log(Level.FINE, "Storage Folder not found!");
|
||||
}
|
||||
return storageFolder;
|
||||
}
|
||||
|
@ -123,7 +123,7 @@ public class VideoRecorderAppState extends AbstractAppState {
|
||||
public VideoRecorderAppState(File file, float quality) {
|
||||
this.file = file;
|
||||
this.quality = quality;
|
||||
Logger.getLogger(this.getClass().getName()).log(Level.INFO, "JME3 VideoRecorder running on {0} CPU's", numCpus);
|
||||
Logger.getLogger(this.getClass().getName()).log(Level.FINE, "JME3 VideoRecorder running on {0} CPU's", numCpus);
|
||||
}
|
||||
|
||||
/**
|
||||
@ -135,7 +135,7 @@ public class VideoRecorderAppState extends AbstractAppState {
|
||||
this.file = file;
|
||||
this.quality = quality;
|
||||
this.framerate = framerate;
|
||||
Logger.getLogger(this.getClass().getName()).log(Level.INFO, "JME3 VideoRecorder running on {0} CPU's", numCpus);
|
||||
Logger.getLogger(this.getClass().getName()).log(Level.FINE, "JME3 VideoRecorder running on {0} CPU's", numCpus);
|
||||
}
|
||||
|
||||
public File getFile() {
|
||||
|
@ -36,6 +36,8 @@ import com.jme3.input.MouseInput;
|
||||
import com.jme3.input.RawInputListener;
|
||||
import com.jme3.input.event.MouseButtonEvent;
|
||||
import com.jme3.input.event.MouseMotionEvent;
|
||||
import com.jme3.system.JmeSystem;
|
||||
import com.jme3.system.Platform;
|
||||
import java.awt.*;
|
||||
import java.awt.event.*;
|
||||
import java.awt.image.BufferedImage;
|
||||
@ -141,6 +143,10 @@ public class AwtMouseInput implements MouseInput, MouseListener, MouseWheelListe
|
||||
}
|
||||
|
||||
public void setCursorVisible(boolean visible) {
|
||||
// if(JmeSystem.getPlatform() != Platform.MacOSX32 &&
|
||||
// JmeSystem.getPlatform() != Platform.MacOSX64 &&
|
||||
// JmeSystem.getPlatform() != Platform.MacOSX_PPC32 &&
|
||||
// JmeSystem.getPlatform() != Platform.MacOSX_PPC64){
|
||||
if (this.visible != visible) {
|
||||
lastKnownLocation.x = lastKnownLocation.y = 0;
|
||||
|
||||
@ -154,6 +160,7 @@ public class AwtMouseInput implements MouseInput, MouseListener, MouseWheelListe
|
||||
}
|
||||
}
|
||||
});
|
||||
// }
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -305,7 +305,7 @@ public class JmeDesktopSystem extends JmeSystemDelegate {
|
||||
} catch (SecurityException ex) {
|
||||
logger.log(Level.SEVERE, "Security error in creating log file", ex);
|
||||
}
|
||||
logger.log(Level.INFO, "Running on {0}", getFullName());
|
||||
logger.log(Level.FINE, "Running on {0}", getFullName());
|
||||
|
||||
if (!lowPermissions) {
|
||||
try {
|
||||
|
@ -233,7 +233,7 @@ public final class Natives {
|
||||
|
||||
String libraryPath = getExtractionDir().toString();
|
||||
if (needLWJGL) {
|
||||
logger.log(Level.INFO, "Extraction Directory: {0}", getExtractionDir().toString());
|
||||
logger.log(Level.FINE, "Extraction Directory: {0}", getExtractionDir().toString());
|
||||
|
||||
// LWJGL supports this feature where
|
||||
// it can load libraries from this path.
|
||||
|
@ -515,24 +515,24 @@ public class PhysicsSpace {
|
||||
}
|
||||
|
||||
private void addGhostObject(PhysicsGhostObject node) {
|
||||
Logger.getLogger(PhysicsSpace.class.getName()).log(Level.INFO, "Adding ghost object {0} to physics space.", node.getObjectId());
|
||||
Logger.getLogger(PhysicsSpace.class.getName()).log(Level.FINE, "Adding ghost object {0} to physics space.", node.getObjectId());
|
||||
dynamicsWorld.addCollisionObject(node.getObjectId());
|
||||
}
|
||||
|
||||
private void removeGhostObject(PhysicsGhostObject node) {
|
||||
Logger.getLogger(PhysicsSpace.class.getName()).log(Level.INFO, "Removing ghost object {0} from physics space.", node.getObjectId());
|
||||
Logger.getLogger(PhysicsSpace.class.getName()).log(Level.FINE, "Removing ghost object {0} from physics space.", node.getObjectId());
|
||||
dynamicsWorld.removeCollisionObject(node.getObjectId());
|
||||
}
|
||||
|
||||
private void addCharacter(PhysicsCharacter node) {
|
||||
Logger.getLogger(PhysicsSpace.class.getName()).log(Level.INFO, "Adding character {0} to physics space.", node.getObjectId());
|
||||
Logger.getLogger(PhysicsSpace.class.getName()).log(Level.FINE, "Adding character {0} to physics space.", node.getObjectId());
|
||||
// dynamicsWorld.addCollisionObject(node.getObjectId());
|
||||
dynamicsWorld.addCollisionObject(node.getObjectId(), CollisionFilterGroups.CHARACTER_FILTER, (short) (CollisionFilterGroups.STATIC_FILTER | CollisionFilterGroups.DEFAULT_FILTER));
|
||||
dynamicsWorld.addAction(node.getControllerId());
|
||||
}
|
||||
|
||||
private void removeCharacter(PhysicsCharacter node) {
|
||||
Logger.getLogger(PhysicsSpace.class.getName()).log(Level.INFO, "Removing character {0} from physics space.", node.getObjectId());
|
||||
Logger.getLogger(PhysicsSpace.class.getName()).log(Level.FINE, "Removing character {0} from physics space.", node.getObjectId());
|
||||
dynamicsWorld.removeAction(node.getControllerId());
|
||||
dynamicsWorld.removeCollisionObject(node.getObjectId());
|
||||
}
|
||||
@ -553,9 +553,9 @@ public class PhysicsSpace {
|
||||
node.setKinematic(true);
|
||||
}
|
||||
|
||||
Logger.getLogger(PhysicsSpace.class.getName()).log(Level.INFO, "Adding RigidBody {0} to physics space.", node.getObjectId());
|
||||
Logger.getLogger(PhysicsSpace.class.getName()).log(Level.FINE, "Adding RigidBody {0} to physics space.", node.getObjectId());
|
||||
if (node instanceof PhysicsVehicle) {
|
||||
Logger.getLogger(PhysicsSpace.class.getName()).log(Level.INFO, "Adding vehicle constraint {0} to physics space.", ((PhysicsVehicle) node).getVehicleId());
|
||||
Logger.getLogger(PhysicsSpace.class.getName()).log(Level.FINE, "Adding vehicle constraint {0} to physics space.", ((PhysicsVehicle) node).getVehicleId());
|
||||
((PhysicsVehicle) node).createVehicle(this);
|
||||
dynamicsWorld.addVehicle(((PhysicsVehicle) node).getVehicleId());
|
||||
}
|
||||
@ -563,22 +563,22 @@ public class PhysicsSpace {
|
||||
|
||||
private void removeRigidBody(PhysicsRigidBody node) {
|
||||
if (node instanceof PhysicsVehicle) {
|
||||
Logger.getLogger(PhysicsSpace.class.getName()).log(Level.INFO, "Removing vehicle constraint {0} from physics space.", ((PhysicsVehicle) node).getVehicleId());
|
||||
Logger.getLogger(PhysicsSpace.class.getName()).log(Level.FINE, "Removing vehicle constraint {0} from physics space.", ((PhysicsVehicle) node).getVehicleId());
|
||||
dynamicsWorld.removeVehicle(((PhysicsVehicle) node).getVehicleId());
|
||||
}
|
||||
Logger.getLogger(PhysicsSpace.class.getName()).log(Level.INFO, "Removing RigidBody {0} from physics space.", node.getObjectId());
|
||||
Logger.getLogger(PhysicsSpace.class.getName()).log(Level.FINE, "Removing RigidBody {0} from physics space.", node.getObjectId());
|
||||
physicsNodes.remove(node.getObjectId());
|
||||
dynamicsWorld.removeRigidBody(node.getObjectId());
|
||||
}
|
||||
|
||||
private void addJoint(PhysicsJoint joint) {
|
||||
Logger.getLogger(PhysicsSpace.class.getName()).log(Level.INFO, "Adding Joint {0} to physics space.", joint.getObjectId());
|
||||
Logger.getLogger(PhysicsSpace.class.getName()).log(Level.FINE, "Adding Joint {0} to physics space.", joint.getObjectId());
|
||||
physicsJoints.add(joint);
|
||||
dynamicsWorld.addConstraint(joint.getObjectId(), !joint.isCollisionBetweenLinkedBodys());
|
||||
}
|
||||
|
||||
private void removeJoint(PhysicsJoint joint) {
|
||||
Logger.getLogger(PhysicsSpace.class.getName()).log(Level.INFO, "Removing Joint {0} from physics space.", joint.getObjectId());
|
||||
Logger.getLogger(PhysicsSpace.class.getName()).log(Level.FINE, "Removing Joint {0} from physics space.", joint.getObjectId());
|
||||
physicsJoints.remove(joint);
|
||||
dynamicsWorld.removeConstraint(joint.getObjectId());
|
||||
}
|
||||
|
@ -72,7 +72,7 @@ public class CachedOggStream implements PhysicalOggStream {
|
||||
readOggNextPage();
|
||||
}
|
||||
long dt = System.nanoTime() - time;
|
||||
Logger.getLogger(CachedOggStream.class.getName()).log(Level.INFO, "Took {0} ms to load OGG", dt/1000000);
|
||||
Logger.getLogger(CachedOggStream.class.getName()).log(Level.FINE, "Took {0} ms to load OGG", dt/1000000);
|
||||
}
|
||||
|
||||
public OggPage getLastOggPage() {
|
||||
|
@ -196,7 +196,7 @@ public class JoalAudioRenderer implements AudioRenderer, Runnable {
|
||||
ib = BufferUtils.createIntBuffer(channels.length);
|
||||
chanSrcs = new AudioNode[channels.length];
|
||||
|
||||
logger.log(Level.INFO, "AudioRenderer supports {0} channels", channels.length);
|
||||
logger.log(Level.FINE, "AudioRenderer supports {0} channels", channels.length);
|
||||
|
||||
supportEfx = alc.alcIsExtensionPresent(device, "ALC_EXT_EFX");
|
||||
if (supportEfx) {
|
||||
@ -206,11 +206,11 @@ public class JoalAudioRenderer implements AudioRenderer, Runnable {
|
||||
ib.position(0).limit(1);
|
||||
alc.alcGetIntegerv(device, AL.ALC_EFX_MINOR_VERSION, 1, ib);
|
||||
int minor = ib.get(0);
|
||||
logger.log(Level.INFO, "Audio effect extension version: {0}.{1}", new Object[]{major, minor});
|
||||
logger.log(Level.FINE, "Audio effect extension version: {0}.{1}", new Object[]{major, minor});
|
||||
|
||||
alc.alcGetIntegerv(device, AL.ALC_MAX_AUXILIARY_SENDS, 1, ib);
|
||||
auxSends = ib.get(0);
|
||||
logger.log(Level.INFO, "Audio max auxilary sends: {0}", auxSends);
|
||||
logger.log(Level.FINE, "Audio max auxilary sends: {0}", auxSends);
|
||||
|
||||
// create slot
|
||||
ib.position(0).limit(1);
|
||||
|
@ -155,14 +155,14 @@ public class JoglGL1Renderer implements GL1Renderer {
|
||||
}
|
||||
|
||||
public void resetGLObjects() {
|
||||
logger.log(Level.INFO, "Reseting objects and invalidating state");
|
||||
logger.log(Level.FINE, "Reseting objects and invalidating state");
|
||||
objManager.resetObjects();
|
||||
statistics.clearMemory();
|
||||
invalidateState();
|
||||
}
|
||||
|
||||
public void cleanup() {
|
||||
logger.log(Level.INFO, "Deleting objects and invalidating state");
|
||||
logger.log(Level.FINE, "Deleting objects and invalidating state");
|
||||
objManager.deleteAllObjects(this);
|
||||
statistics.clearMemory();
|
||||
invalidateState();
|
||||
|
@ -140,9 +140,9 @@ public class JoglRenderer implements Renderer {
|
||||
|
||||
public void initialize() {
|
||||
GL gl = GLContext.getCurrentGL();
|
||||
//logger.log(Level.INFO, "Vendor: {0}", gl.glGetString(GL.GL_VENDOR));
|
||||
//logger.log(Level.INFO, "Renderer: {0}", gl.glGetString(GL.GL_RENDERER));
|
||||
//logger.log(Level.INFO, "Version: {0}", gl.glGetString(GL.GL_VERSION));
|
||||
//logger.log(Level.FINE, "Vendor: {0}", gl.glGetString(GL.GL_VENDOR));
|
||||
//logger.log(Level.FINE, "Renderer: {0}", gl.glGetString(GL.GL_RENDERER));
|
||||
//logger.log(Level.FINE, "Version: {0}", gl.glGetString(GL.GL_VERSION));
|
||||
if (gl.isExtensionAvailable("GL_VERSION_2_0")) {
|
||||
caps.add(Caps.OpenGL20);
|
||||
if (gl.isExtensionAvailable("GL_VERSION_2_1")) {
|
||||
@ -398,7 +398,7 @@ public class JoglRenderer implements Renderer {
|
||||
caps.add(Caps.Multisample);
|
||||
}
|
||||
|
||||
logger.log(Level.INFO, "Caps: {0}", caps);
|
||||
logger.log(Level.FINE, "Caps: {0}", caps);
|
||||
}
|
||||
|
||||
public void invalidateState() {
|
||||
@ -414,14 +414,14 @@ public class JoglRenderer implements Renderer {
|
||||
}
|
||||
|
||||
public void resetGLObjects() {
|
||||
logger.log(Level.INFO, "Reseting objects and invalidating state");
|
||||
logger.log(Level.FINE, "Reseting objects and invalidating state");
|
||||
objManager.resetObjects();
|
||||
statistics.clearMemory();
|
||||
invalidateState();
|
||||
}
|
||||
|
||||
public void cleanup() {
|
||||
logger.log(Level.INFO, "Deleting objects and invalidating state");
|
||||
logger.log(Level.FINE, "Deleting objects and invalidating state");
|
||||
objManager.deleteAllObjects(this);
|
||||
statistics.clearMemory();
|
||||
invalidateState();
|
||||
@ -811,7 +811,7 @@ public class JoglRenderer implements Renderer {
|
||||
if (loc < 0) {
|
||||
uniform.setLocation(-1);
|
||||
// uniform is not declared in shader
|
||||
logger.log(Level.INFO, "Uniform {0} is not declared in shader {1}.", new Object[]{uniform.getName(), shader.getSources()});
|
||||
logger.log(Level.FINE, "Uniform {0} is not declared in shader {1}.", new Object[]{uniform.getName(), shader.getSources()});
|
||||
|
||||
} else {
|
||||
uniform.setLocation(loc);
|
||||
@ -1043,7 +1043,7 @@ public class JoglRenderer implements Renderer {
|
||||
|
||||
if (compiledOK) {
|
||||
if (infoLog != null) {
|
||||
logger.log(Level.INFO, "{0} compile success\n{1}",
|
||||
logger.log(Level.FINE, "{0} compile success\n{1}",
|
||||
new Object[]{source.getName(), infoLog});
|
||||
} else {
|
||||
logger.log(Level.FINE, "{0} compile success", source.getName());
|
||||
@ -1116,7 +1116,7 @@ public class JoglRenderer implements Renderer {
|
||||
|
||||
if (linkOK) {
|
||||
if (infoLog != null) {
|
||||
logger.log(Level.INFO, "shader link success. \n{0}", infoLog);
|
||||
logger.log(Level.FINE, "shader link success. \n{0}", infoLog);
|
||||
} else {
|
||||
logger.fine("shader link success");
|
||||
}
|
||||
|
@ -223,7 +223,7 @@ public class JoglDisplay extends JoglAbstractDisplay {
|
||||
}
|
||||
});
|
||||
|
||||
logger.log(Level.INFO, "Selected display mode: {0}x{1}x{2} @{3}",
|
||||
logger.log(Level.FINE, "Selected display mode: {0}x{1}x{2} @{3}",
|
||||
new Object[]{gd.getDisplayMode().getWidth(),
|
||||
gd.getDisplayMode().getHeight(),
|
||||
gd.getDisplayMode().getBitDepth(),
|
||||
|
@ -134,7 +134,7 @@ public class JoglNewtDisplay extends JoglNewtAbstractDisplay {
|
||||
}
|
||||
|
||||
ScreenMode currentScreenMode = screen.getCurrentScreenMode();
|
||||
logger.log(Level.INFO, "Selected display mode: {0}x{1}x{2} @{3}",
|
||||
logger.log(Level.FINE, "Selected display mode: {0}x{1}x{2} @{3}",
|
||||
new Object[]{currentScreenMode.getRotatedWidth(),
|
||||
currentScreenMode.getRotatedHeight(),
|
||||
currentScreenMode.getMonitorMode().getSurfaceSize().getBitsPerPixel(),
|
||||
|
@ -121,7 +121,7 @@ public class JoglOffscreenBuffer extends JoglContext implements Runnable {
|
||||
}
|
||||
|
||||
public void run(){
|
||||
logger.log(Level.INFO, "Using JOGL {0}", NewtVersion.getInstance().getImplementationVersion());
|
||||
logger.log(Level.FINE, "Using JOGL {0}", NewtVersion.getInstance().getImplementationVersion());
|
||||
initInThread();
|
||||
while (!needClose.get()){
|
||||
runLoop();
|
||||
|
@ -180,7 +180,7 @@ public class LwjglAudioRenderer implements AudioRenderer, Runnable {
|
||||
ib = BufferUtils.createIntBuffer(channels.length);
|
||||
chanSrcs = new AudioNode[channels.length];
|
||||
|
||||
logger.log(Level.INFO, "AudioRenderer supports {0} channels", channels.length);
|
||||
logger.log(Level.FINE, "AudioRenderer supports {0} channels", channels.length);
|
||||
|
||||
supportEfx = ALC10.alcIsExtensionPresent(device, "ALC_EXT_EFX");
|
||||
if (supportEfx) {
|
||||
@ -190,11 +190,11 @@ public class LwjglAudioRenderer implements AudioRenderer, Runnable {
|
||||
ib.position(0).limit(1);
|
||||
ALC10.alcGetInteger(device, EFX10.ALC_EFX_MINOR_VERSION, ib);
|
||||
int minor = ib.get(0);
|
||||
logger.log(Level.INFO, "Audio effect extension version: {0}.{1}", new Object[]{major, minor});
|
||||
logger.log(Level.FINE, "Audio effect extension version: {0}.{1}", new Object[]{major, minor});
|
||||
|
||||
ALC10.alcGetInteger(device, EFX10.ALC_MAX_AUXILIARY_SENDS, ib);
|
||||
auxSends = ib.get(0);
|
||||
logger.log(Level.INFO, "Audio max auxilary sends: {0}", auxSends);
|
||||
logger.log(Level.FINE, "Audio max auxilary sends: {0}", auxSends);
|
||||
|
||||
// create slot
|
||||
ib.position(0).limit(1);
|
||||
|
@ -57,7 +57,7 @@ public class JInputJoyInput implements JoyInput {
|
||||
|| c.getType() == Controller.Type.MOUSE)
|
||||
continue;
|
||||
|
||||
logger.log(Level.INFO, "Attempting to create joystick for: \"{0}\"", c);
|
||||
logger.log(Level.FINE, "Attempting to create joystick for: \"{0}\"", c);
|
||||
|
||||
// Try to create it like a joystick
|
||||
JInputJoystick stick = new JInputJoystick(inputManager, this, c, list.size(),
|
||||
@ -69,7 +69,7 @@ public class JInputJoyInput implements JoyInput {
|
||||
// If it has no axes then we'll assume it's not
|
||||
// a joystick
|
||||
if( stick.getAxisCount() == 0 ) {
|
||||
logger.log(Level.INFO, "Not a joystick: {0}", c);
|
||||
logger.log(Level.FINE, "Not a joystick: {0}", c);
|
||||
continue;
|
||||
}
|
||||
|
||||
@ -200,13 +200,13 @@ public class JInputJoyInput implements JoyInput {
|
||||
} else if( id instanceof Axis ) {
|
||||
addAxis(comp);
|
||||
} else {
|
||||
logger.log(Level.INFO, "Ignoring: \"{0}\"", comp);
|
||||
logger.log(Level.FINE, "Ignoring: \"{0}\"", comp);
|
||||
}
|
||||
}
|
||||
|
||||
protected void addButton( Component comp ) {
|
||||
|
||||
logger.log(Level.INFO, "Adding button: \"{0}\" id:" + comp.getIdentifier(), comp);
|
||||
logger.log(Level.FINE, "Adding button: \"{0}\" id:" + comp.getIdentifier(), comp);
|
||||
|
||||
Identifier id = comp.getIdentifier();
|
||||
if( !(id instanceof Button) ) {
|
||||
@ -217,7 +217,7 @@ public class JInputJoyInput implements JoyInput {
|
||||
String original = id.getName();
|
||||
String logicalId = JoystickCompatibilityMappings.remapComponent( controller.getName(), original );
|
||||
if( name != original ) {
|
||||
logger.log(Level.INFO, "Remapped:" + original + " to:" + logicalId);
|
||||
logger.log(Level.FINE, "Remapped:" + original + " to:" + logicalId);
|
||||
}
|
||||
|
||||
JoystickButton button = new DefaultJoystickButton( getInputManager(), this, getButtonCount(),
|
||||
@ -228,7 +228,7 @@ public class JInputJoyInput implements JoyInput {
|
||||
|
||||
protected void addAxis( Component comp ) {
|
||||
|
||||
logger.log(Level.INFO, "Adding axis: \"{0}\" id:" + comp.getIdentifier(), comp );
|
||||
logger.log(Level.FINE, "Adding axis: \"{0}\" id:" + comp.getIdentifier(), comp );
|
||||
|
||||
Identifier id = comp.getIdentifier();
|
||||
if( !(id instanceof Axis) ) {
|
||||
@ -239,7 +239,7 @@ public class JInputJoyInput implements JoyInput {
|
||||
String original = id.getName();
|
||||
String logicalId = JoystickCompatibilityMappings.remapComponent( controller.getName(), original );
|
||||
if( name != original ) {
|
||||
logger.log(Level.INFO, "Remapped:" + original + " to:" + logicalId);
|
||||
logger.log(Level.FINE, "Remapped:" + original + " to:" + logicalId);
|
||||
}
|
||||
|
||||
JoystickAxis axis = new DefaultJoystickAxis( getInputManager(),
|
||||
@ -262,13 +262,13 @@ public class JInputJoyInput implements JoyInput {
|
||||
this, getAxisCount(), JoystickAxis.POV_X,
|
||||
id.getName() + "_x",
|
||||
comp.isAnalog(), comp.isRelative(), comp.getDeadZone() );
|
||||
logger.log(Level.INFO, "Adding axis: \"{0}\" id:" + id.getName() + "_x", povX.getName() );
|
||||
logger.log(Level.FINE, "Adding axis: \"{0}\" id:" + id.getName() + "_x", povX.getName() );
|
||||
addAxis(povX);
|
||||
povY = new DefaultJoystickAxis( getInputManager(),
|
||||
this, getAxisCount(), JoystickAxis.POV_Y,
|
||||
id.getName() + "_y",
|
||||
comp.isAnalog(), comp.isRelative(), comp.getDeadZone() );
|
||||
logger.log(Level.INFO, "Adding axis: \"{0}\" id:" + id.getName() + "_y", povY.getName() );
|
||||
logger.log(Level.FINE, "Adding axis: \"{0}\" id:" + id.getName() + "_y", povY.getName() );
|
||||
addAxis(povY);
|
||||
}
|
||||
|
||||
|
@ -120,14 +120,14 @@ public class LwjglGL1Renderer implements GL1Renderer {
|
||||
}
|
||||
|
||||
public void resetGLObjects() {
|
||||
logger.log(Level.INFO, "Reseting objects and invalidating state");
|
||||
logger.log(Level.FINE, "Reseting objects and invalidating state");
|
||||
objManager.resetObjects();
|
||||
statistics.clearMemory();
|
||||
invalidateState();
|
||||
}
|
||||
|
||||
public void cleanup() {
|
||||
logger.log(Level.INFO, "Deleting objects and invalidating state");
|
||||
logger.log(Level.FINE, "Deleting objects and invalidating state");
|
||||
objManager.deleteAllObjects(this);
|
||||
statistics.clearMemory();
|
||||
invalidateState();
|
||||
|
@ -386,7 +386,7 @@ public class LwjglRenderer implements Renderer {
|
||||
caps.add(Caps.Multisample);
|
||||
}
|
||||
|
||||
logger.log(Level.INFO, "Caps: {0}", caps);
|
||||
logger.log(Level.FINE, "Caps: {0}", caps);
|
||||
}
|
||||
|
||||
public void invalidateState() {
|
||||
@ -399,14 +399,14 @@ public class LwjglRenderer implements Renderer {
|
||||
}
|
||||
|
||||
public void resetGLObjects() {
|
||||
logger.log(Level.INFO, "Reseting objects and invalidating state");
|
||||
logger.log(Level.FINE, "Reseting objects and invalidating state");
|
||||
objManager.resetObjects();
|
||||
statistics.clearMemory();
|
||||
invalidateState();
|
||||
}
|
||||
|
||||
public void cleanup() {
|
||||
logger.log(Level.INFO, "Deleting objects and invalidating state");
|
||||
logger.log(Level.FINE, "Deleting objects and invalidating state");
|
||||
objManager.deleteAllObjects(this);
|
||||
statistics.clearMemory();
|
||||
invalidateState();
|
||||
@ -774,7 +774,7 @@ public class LwjglRenderer implements Renderer {
|
||||
if (loc < 0) {
|
||||
uniform.setLocation(-1);
|
||||
// uniform is not declared in shader
|
||||
logger.log(Level.INFO, "Uniform {0} is not declared in shader {1}.", new Object[]{uniform.getName(), shader.getSources()});
|
||||
logger.log(Level.FINE, "Uniform {0} is not declared in shader {1}.", new Object[]{uniform.getName(), shader.getSources()});
|
||||
} else {
|
||||
uniform.setLocation(loc);
|
||||
}
|
||||
@ -997,7 +997,7 @@ public class LwjglRenderer implements Renderer {
|
||||
|
||||
if (compiledOK) {
|
||||
if (infoLog != null) {
|
||||
logger.log(Level.INFO, "{0} compile success\n{1}",
|
||||
logger.log(Level.FINE, "{0} compile success\n{1}",
|
||||
new Object[]{source.getName(), infoLog});
|
||||
} else {
|
||||
logger.log(Level.FINE, "{0} compile success", source.getName());
|
||||
@ -1069,7 +1069,7 @@ public class LwjglRenderer implements Renderer {
|
||||
|
||||
if (linkOK) {
|
||||
if (infoLog != null) {
|
||||
logger.log(Level.INFO, "shader link success. \n{0}", infoLog);
|
||||
logger.log(Level.FINE, "shader link success. \n{0}", infoLog);
|
||||
} else {
|
||||
logger.fine("shader link success");
|
||||
}
|
||||
|
@ -203,7 +203,7 @@ public abstract class LwjglAbstractDisplay extends LwjglContext implements Runna
|
||||
throw new IllegalStateException("SystemListener is not set on context!"
|
||||
+ "Must set with JmeContext.setSystemListner().");
|
||||
|
||||
logger.log(Level.INFO, "Using LWJGL {0}", Sys.getVersion());
|
||||
logger.log(Level.FINE, "Using LWJGL {0}", Sys.getVersion());
|
||||
if (!initInThread()) {
|
||||
logger.log(Level.SEVERE, "Display initialization failed. Cannot continue.");
|
||||
return;
|
||||
|
@ -89,7 +89,7 @@ public class LwjglCanvas extends LwjglAbstractDisplay implements JmeCanvasContex
|
||||
}
|
||||
|
||||
if (renderThread == null){
|
||||
logger.log(Level.INFO, "EDT: Creating OGL thread.");
|
||||
logger.log(Level.FINE, "EDT: Creating OGL thread.");
|
||||
|
||||
// Also set some settings on the canvas here.
|
||||
// So we don't do it outside the AWT thread.
|
||||
@ -102,7 +102,7 @@ public class LwjglCanvas extends LwjglAbstractDisplay implements JmeCanvasContex
|
||||
return;
|
||||
}
|
||||
|
||||
logger.log(Level.INFO, "EDT: Telling OGL to create display ..");
|
||||
logger.log(Level.FINE, "EDT: Telling OGL to create display ..");
|
||||
synchronized (taskLock){
|
||||
desiredTask = TASK_CREATE_DISPLAY;
|
||||
// while (desiredTask != TASK_COMPLETE){
|
||||
@ -114,20 +114,20 @@ public class LwjglCanvas extends LwjglAbstractDisplay implements JmeCanvasContex
|
||||
// }
|
||||
// desiredTask = TASK_NOTHING;
|
||||
}
|
||||
// logger.log(Level.INFO, "EDT: OGL has created the display");
|
||||
// logger.log(Level.FINE, "EDT: OGL has created the display");
|
||||
}
|
||||
|
||||
@Override
|
||||
public void removeNotify(){
|
||||
if (needClose.get()){
|
||||
logger.log(Level.INFO, "EDT: Application is stopped. Not restoring canvas.");
|
||||
logger.log(Level.FINE, "EDT: Application is stopped. Not restoring canvas.");
|
||||
super.removeNotify();
|
||||
return;
|
||||
}
|
||||
|
||||
// We must tell GL context to shutdown and wait for it to
|
||||
// shutdown, otherwise, issues will occur.
|
||||
logger.log(Level.INFO, "EDT: Telling OGL to destroy display ..");
|
||||
logger.log(Level.FINE, "EDT: Telling OGL to destroy display ..");
|
||||
synchronized (taskLock){
|
||||
desiredTask = TASK_DESTROY_DISPLAY;
|
||||
while (desiredTask != TASK_COMPLETE){
|
||||
@ -141,7 +141,7 @@ public class LwjglCanvas extends LwjglAbstractDisplay implements JmeCanvasContex
|
||||
desiredTask = TASK_NOTHING;
|
||||
}
|
||||
|
||||
logger.log(Level.INFO, "EDT: Acknowledged receipt of canvas death");
|
||||
logger.log(Level.FINE, "EDT: Acknowledged receipt of canvas death");
|
||||
// GL context is dead at this point
|
||||
|
||||
super.removeNotify();
|
||||
@ -160,7 +160,7 @@ public class LwjglCanvas extends LwjglAbstractDisplay implements JmeCanvasContex
|
||||
|
||||
public void create(boolean waitFor){
|
||||
if (renderThread == null){
|
||||
logger.log(Level.INFO, "MAIN: Creating OGL thread.");
|
||||
logger.log(Level.FINE, "MAIN: Creating OGL thread.");
|
||||
|
||||
renderThread = new Thread(LwjglCanvas.this, "LWJGL Renderer Thread");
|
||||
renderThread.start();
|
||||
@ -192,13 +192,13 @@ public class LwjglCanvas extends LwjglAbstractDisplay implements JmeCanvasContex
|
||||
synchronized (taskLock){
|
||||
switch (desiredTask){
|
||||
case TASK_CREATE_DISPLAY:
|
||||
logger.log(Level.INFO, "OGL: Creating display ..");
|
||||
logger.log(Level.FINE, "OGL: Creating display ..");
|
||||
restoreCanvas();
|
||||
listener.gainFocus();
|
||||
desiredTask = TASK_NOTHING;
|
||||
break;
|
||||
case TASK_DESTROY_DISPLAY:
|
||||
logger.log(Level.INFO, "OGL: Destroying display ..");
|
||||
logger.log(Level.FINE, "OGL: Destroying display ..");
|
||||
listener.loseFocus();
|
||||
pauseCanvas();
|
||||
break;
|
||||
@ -251,7 +251,7 @@ public class LwjglCanvas extends LwjglAbstractDisplay implements JmeCanvasContex
|
||||
* Called to restore the canvas.
|
||||
*/
|
||||
private void restoreCanvas(){
|
||||
logger.log(Level.INFO, "OGL: Waiting for canvas to become displayable..");
|
||||
logger.log(Level.FINE, "OGL: Waiting for canvas to become displayable..");
|
||||
while (!canvas.isDisplayable()){
|
||||
try {
|
||||
Thread.sleep(10);
|
||||
@ -260,13 +260,13 @@ public class LwjglCanvas extends LwjglAbstractDisplay implements JmeCanvasContex
|
||||
}
|
||||
}
|
||||
|
||||
logger.log(Level.INFO, "OGL: Creating display context ..");
|
||||
logger.log(Level.FINE, "OGL: Creating display context ..");
|
||||
|
||||
// Set renderable to true, since canvas is now displayable.
|
||||
renderable.set(true);
|
||||
createContext(settings);
|
||||
|
||||
logger.log(Level.INFO, "OGL: Display is active!");
|
||||
logger.log(Level.FINE, "OGL: Display is active!");
|
||||
|
||||
try {
|
||||
if (mouseWasCreated){
|
||||
@ -341,7 +341,7 @@ public class LwjglCanvas extends LwjglAbstractDisplay implements JmeCanvasContex
|
||||
if (pbuffer == null) {
|
||||
pbuffer = new Pbuffer(1, 1, acquirePixelFormat(true), null);
|
||||
pbuffer.makeCurrent();
|
||||
logger.log(Level.INFO, "OGL: Pbuffer has been created");
|
||||
logger.log(Level.FINE, "OGL: Pbuffer has been created");
|
||||
|
||||
// Any created objects are no longer valid
|
||||
if (!runningFirstTime){
|
||||
|
@ -75,21 +75,21 @@ public abstract class LwjglContext implements JmeContext {
|
||||
protected void printContextInitInfo(){
|
||||
logger.log(Level.FINE, "Running on thread: {0}", Thread.currentThread().getName());
|
||||
|
||||
logger.log(Level.INFO, "Adapter: {0}", Display.getAdapter());
|
||||
logger.log(Level.INFO, "Driver Version: {0}", Display.getVersion());
|
||||
logger.log(Level.CONFIG, "Adapter: {0}", Display.getAdapter());
|
||||
logger.log(Level.CONFIG, "Driver Version: {0}", Display.getVersion());
|
||||
|
||||
String vendor = GL11.glGetString(GL11.GL_VENDOR);
|
||||
logger.log(Level.INFO, "Vendor: {0}", vendor);
|
||||
logger.log(Level.CONFIG, "Vendor: {0}", vendor);
|
||||
|
||||
String version = GL11.glGetString(GL11.GL_VERSION);
|
||||
logger.log(Level.INFO, "OpenGL Version: {0}", version);
|
||||
logger.log(Level.CONFIG, "OpenGL Version: {0}", version);
|
||||
|
||||
String renderGl = GL11.glGetString(GL11.GL_RENDERER);
|
||||
logger.log(Level.INFO, "Renderer: {0}", renderGl);
|
||||
logger.log(Level.CONFIG, "Renderer: {0}", renderGl);
|
||||
|
||||
if (GLContext.getCapabilities().OpenGL20){
|
||||
String shadingLang = GL11.glGetString(GL20.GL_SHADING_LANGUAGE_VERSION);
|
||||
logger.log(Level.INFO, "GLSL Ver: {0}", shadingLang);
|
||||
logger.log(Level.FINE, "GLSL Ver: {0}", shadingLang);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -94,7 +94,7 @@ public class LwjglDisplay extends LwjglAbstractDisplay {
|
||||
settings.useStereo3D());
|
||||
|
||||
frameRate = settings.getFrameRate();
|
||||
logger.log(Level.INFO, "Selected display mode: {0}", displayMode);
|
||||
logger.log(Level.FINE, "Selected display mode: {0}", displayMode);
|
||||
|
||||
boolean pixelFormatChanged = false;
|
||||
if (created.get() && (pixelFormat.getBitsPerPixel() != pf.getBitsPerPixel()
|
||||
|
@ -145,7 +145,7 @@ public class LwjglOffscreenBuffer extends LwjglContext implements Runnable {
|
||||
}
|
||||
|
||||
public void run(){
|
||||
logger.log(Level.INFO, "Using LWJGL {0}", Sys.getVersion());
|
||||
logger.log(Level.FINE, "Using LWJGL {0}", Sys.getVersion());
|
||||
initInThread();
|
||||
while (!needClose.get()){
|
||||
runLoop();
|
||||
|
@ -82,7 +82,7 @@ public class LwjglSmoothingTimer extends Timer {
|
||||
reset();
|
||||
|
||||
//print timer resolution info
|
||||
logger.log(Level.INFO, "Timer resolution: {0} ticks per second", LWJGL_TIMER_RES);
|
||||
logger.log(Level.FINE, "Timer resolution: {0} ticks per second", LWJGL_TIMER_RES);
|
||||
}
|
||||
|
||||
public void reset() {
|
||||
|
@ -67,7 +67,7 @@ public class LwjglTimer extends Timer {
|
||||
*/
|
||||
public LwjglTimer() {
|
||||
reset();
|
||||
logger.log(Level.INFO, "Timer resolution: {0} ticks per second", LWJGL_TIMER_RES);
|
||||
logger.log(Level.FINE, "Timer resolution: {0} ticks per second", LWJGL_TIMER_RES);
|
||||
}
|
||||
|
||||
public void reset() {
|
||||
|
@ -383,7 +383,7 @@ public class DefaultClient implements Client
|
||||
if( m instanceof ClientRegistrationMessage ) {
|
||||
// Then we've gotten our real id
|
||||
this.id = (int)((ClientRegistrationMessage)m).getId();
|
||||
log.log( Level.INFO, "Connection established, id:{0}.", this.id );
|
||||
log.log( Level.FINE, "Connection established, id:{0}.", this.id );
|
||||
connecting.countDown();
|
||||
fireConnected();
|
||||
return;
|
||||
|
@ -336,7 +336,7 @@ public class DefaultServer implements Server
|
||||
if( !getGameName().equals(m.getGameName())
|
||||
|| getVersion() != m.getVersion() ) {
|
||||
|
||||
log.log( Level.INFO, "Kicking client due to name/version mismatch:{0}.", c );
|
||||
log.log( Level.FINE, "Kicking client due to name/version mismatch:{0}.", c );
|
||||
|
||||
// Need to kick them off... I may regret doing this from within
|
||||
// the sync block but the alternative is more code
|
||||
@ -374,7 +374,7 @@ public class DefaultServer implements Server
|
||||
// Best to do this outside of the synch block to avoid
|
||||
// over synchronizing which is the path to deadlocks
|
||||
if( addedConnection != null ) {
|
||||
log.log( Level.INFO, "Client registered:{0}.", addedConnection );
|
||||
log.log( Level.FINE, "Client registered:{0}.", addedConnection );
|
||||
|
||||
// Send the ID back to the client letting it know it's
|
||||
// fully connected.
|
||||
@ -397,7 +397,7 @@ public class DefaultServer implements Server
|
||||
protected void connectionClosed( Endpoint p )
|
||||
{
|
||||
if( p.isConnected() ) {
|
||||
log.log( Level.INFO, "Connection closed:{0}.", p );
|
||||
log.log( Level.FINE, "Connection closed:{0}.", p );
|
||||
} else {
|
||||
log.log( Level.FINE, "Connection closed:{0}.", p );
|
||||
}
|
||||
@ -430,7 +430,7 @@ public class DefaultServer implements Server
|
||||
// since in general we are called back for every endpoint closing.
|
||||
if( removed != null && !removed.closed ) {
|
||||
|
||||
log.log( Level.INFO, "Client closed:{0}.", removed );
|
||||
log.log( Level.FINE, "Client closed:{0}.", removed );
|
||||
|
||||
removed.closeConnection();
|
||||
}
|
||||
|
@ -225,7 +225,7 @@ public class KernelAdapter extends Thread
|
||||
for( int i = 0; i < len; i++ ) {
|
||||
sb.append( "[" + Integer.toHexString(data[i]) + "]" );
|
||||
}
|
||||
log.log( Level.INFO, "First 10 bytes of incomplete nessage:" + sb );
|
||||
log.log( Level.FINE, "First 10 bytes of incomplete nessage:" + sb );
|
||||
throw new RuntimeException( "Envelope contained incomplete data:" + env );
|
||||
}
|
||||
}
|
||||
|
@ -75,7 +75,7 @@ public class MessageListenerRegistry<S> implements MessageListener<S>
|
||||
}
|
||||
|
||||
if( !delivered ) {
|
||||
log.log( Level.INFO, "Received message had no registered listeners: {0}", m );
|
||||
log.log( Level.FINE, "Received message had no registered listeners: {0}", m );
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -180,7 +180,7 @@ public class SelectorKernel extends AbstractKernel
|
||||
*/
|
||||
protected void closeEndpoint( NioEndpoint p ) throws IOException
|
||||
{
|
||||
//log.log( Level.INFO, "Closing endpoint:{0}.", p );
|
||||
//log.log( Level.FINE, "Closing endpoint:{0}.", p );
|
||||
|
||||
thread.cancel(p);
|
||||
}
|
||||
@ -253,7 +253,7 @@ public class SelectorKernel extends AbstractKernel
|
||||
// accepting new connections
|
||||
serverChannel.register(selector, SelectionKey.OP_ACCEPT);
|
||||
|
||||
log.log( Level.INFO, "Hosting TCP connection:{0}.", address );
|
||||
log.log( Level.FINE, "Hosting TCP connection:{0}.", address );
|
||||
}
|
||||
|
||||
public void close() throws IOException, InterruptedException
|
||||
@ -324,12 +324,12 @@ public class SelectorKernel extends AbstractKernel
|
||||
{
|
||||
SelectionKey key = endpointKeys.remove(p);
|
||||
if( key == null ) {
|
||||
//log.log( Level.INFO, "Endpoint already closed:{0}.", p );
|
||||
//log.log( Level.FINE, "Endpoint already closed:{0}.", p );
|
||||
return; // already closed it
|
||||
}
|
||||
log.log( Level.FINE, "Endpoint keys size:{0}", endpointKeys.size() );
|
||||
|
||||
log.log( Level.INFO, "Closing endpoint:{0}.", p );
|
||||
log.log( Level.FINE, "Closing endpoint:{0}.", p );
|
||||
SocketChannel c = (SocketChannel)key.channel();
|
||||
|
||||
// Note: key.cancel() is specifically thread safe. One of
|
||||
@ -343,7 +343,7 @@ public class SelectorKernel extends AbstractKernel
|
||||
protected void cancel( SelectionKey key, SocketChannel c ) throws IOException
|
||||
{
|
||||
NioEndpoint p = (NioEndpoint)key.attachment();
|
||||
log.log( Level.INFO, "Closing channel endpoint:{0}.", p );
|
||||
log.log( Level.FINE, "Closing channel endpoint:{0}.", p );
|
||||
Object o = endpointKeys.remove(p);
|
||||
|
||||
log.log( Level.FINE, "Endpoint keys size:{0}", endpointKeys.size() );
|
||||
@ -419,7 +419,7 @@ public class SelectorKernel extends AbstractKernel
|
||||
if( !key.isValid() )
|
||||
{
|
||||
// When does this happen?
|
||||
log.log( Level.INFO, "Key is not valid:{0}.", key );
|
||||
log.log( Level.FINE, "Key is not valid:{0}.", key );
|
||||
continue;
|
||||
}
|
||||
|
||||
@ -446,7 +446,7 @@ public class SelectorKernel extends AbstractKernel
|
||||
|
||||
public void run()
|
||||
{
|
||||
log.log( Level.INFO, "Kernel started for connection:{0}.", address );
|
||||
log.log( Level.FINE, "Kernel started for connection:{0}.", address );
|
||||
|
||||
// An atomic is safest and costs almost nothing
|
||||
while( go.get() ) {
|
||||
|
@ -165,7 +165,7 @@ public class UdpKernel extends AbstractKernel
|
||||
if( socketEndpoints.remove( p.getRemoteAddress() ) == null )
|
||||
return;
|
||||
|
||||
log.log( Level.INFO, "Closing endpoint:{0}.", p );
|
||||
log.log( Level.FINE, "Closing endpoint:{0}.", p );
|
||||
log.log( Level.FINE, "Socket endpoints size:{0}", socketEndpoints.size() );
|
||||
|
||||
addEvent( EndpointEvent.createRemove( this, p ) );
|
||||
@ -253,7 +253,7 @@ public class UdpKernel extends AbstractKernel
|
||||
public void connect() throws IOException
|
||||
{
|
||||
socket = new DatagramSocket( address );
|
||||
log.log( Level.INFO, "Hosting UDP connection:{0}.", address );
|
||||
log.log( Level.FINE, "Hosting UDP connection:{0}.", address );
|
||||
}
|
||||
|
||||
public void close() throws IOException, InterruptedException
|
||||
@ -270,7 +270,7 @@ public class UdpKernel extends AbstractKernel
|
||||
|
||||
public void run()
|
||||
{
|
||||
log.log( Level.INFO, "Kernel started for connection:{0}.", address );
|
||||
log.log( Level.FINE, "Kernel started for connection:{0}.", address );
|
||||
|
||||
// An atomic is safest and costs almost nothing
|
||||
while( go.get() ) {
|
||||
|
@ -174,10 +174,10 @@ public class ObjectStore {
|
||||
|
||||
if (client != null) {
|
||||
client.send(defMsg);
|
||||
logger.log(Level.INFO, "Client: Sending {0}", defMsg);
|
||||
logger.log(Level.FINE, "Client: Sending {0}", defMsg);
|
||||
} else {
|
||||
server.broadcast(defMsg);
|
||||
logger.log(Level.INFO, "Server: Sending {0}", defMsg);
|
||||
logger.log(Level.FINE, "Server: Sending {0}", defMsg);
|
||||
}
|
||||
}
|
||||
|
||||
@ -223,10 +223,10 @@ public class ObjectStore {
|
||||
|
||||
if (server != null){
|
||||
remoteObj.client.send(call);
|
||||
logger.log(Level.INFO, "Server: Sending {0}", call);
|
||||
logger.log(Level.FINE, "Server: Sending {0}", call);
|
||||
}else{
|
||||
client.send(call);
|
||||
logger.log(Level.INFO, "Client: Sending {0}", call);
|
||||
logger.log(Level.FINE, "Client: Sending {0}", call);
|
||||
}
|
||||
|
||||
if (invoke != null){
|
||||
@ -296,10 +296,10 @@ public class ObjectStore {
|
||||
retMsg.retVal = ret;
|
||||
if (server != null){
|
||||
source.send(retMsg);
|
||||
logger.log(Level.INFO, "Server: Sending {0}", retMsg);
|
||||
logger.log(Level.FINE, "Server: Sending {0}", retMsg);
|
||||
} else{
|
||||
client.send(retMsg);
|
||||
logger.log(Level.INFO, "Client: Sending {0}", retMsg);
|
||||
logger.log(Level.FINE, "Client: Sending {0}", retMsg);
|
||||
}
|
||||
}
|
||||
}else if (message instanceof RemoteMethodReturnMessage){
|
||||
@ -332,10 +332,10 @@ public class ObjectStore {
|
||||
defMsg.objects = defs;
|
||||
if (this.client != null){
|
||||
this.client.send(defMsg);
|
||||
logger.log(Level.INFO, "Client: Sending {0}", defMsg);
|
||||
logger.log(Level.FINE, "Client: Sending {0}", defMsg);
|
||||
} else{
|
||||
conn.send(defMsg);
|
||||
logger.log(Level.INFO, "Server: Sending {0}", defMsg);
|
||||
logger.log(Level.FINE, "Server: Sending {0}", defMsg);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -174,7 +174,7 @@ public abstract class Serializer {
|
||||
idRegistrations.put(id, reg);
|
||||
classRegistrations.put(cls, reg);
|
||||
|
||||
log.log( Level.INFO, "Registered class[" + id + "]:{0} to:" + serializer, cls );
|
||||
log.log( Level.FINE, "Registered class[" + id + "]:{0} to:" + serializer, cls );
|
||||
|
||||
serializer.initialize(cls);
|
||||
|
||||
|
@ -276,7 +276,7 @@ public class InputSystemJme implements InputSystem, RawInputListener {
|
||||
if (element != null) {
|
||||
final TextField textField = element.getNiftyControl(TextField.class);
|
||||
if (textField != null && !(textField instanceof TextFieldNull)) {
|
||||
Logger.getLogger(InputSystemJme.class.getName()).log(Level.INFO, "Current TextField: {0}", textField.getId());
|
||||
Logger.getLogger(InputSystemJme.class.getName()).log(Level.FINE, "Current TextField: {0}", textField.getId());
|
||||
String initialValue = textField.getText();
|
||||
if (initialValue == null) {
|
||||
initialValue = "";
|
||||
|
@ -67,7 +67,7 @@ public class AssetTileLoader implements TerrainGridTileLoader {
|
||||
|
||||
public TerrainQuad getTerrainQuadAt(Vector3f location) {
|
||||
String modelName = assetPath + "/" + name + "_" + Math.round(location.x) + "_" + Math.round(location.y) + "_" + Math.round(location.z) + ".j3o";
|
||||
Logger.getLogger(this.getClass().getName()).log(Level.INFO, "Load terrain grid tile: {0}", modelName);
|
||||
Logger.getLogger(this.getClass().getName()).log(Level.FINE, "Load terrain grid tile: {0}", modelName);
|
||||
TerrainQuad quad = null;
|
||||
try {
|
||||
quad = (TerrainQuad) manager.loadModel(modelName);
|
||||
@ -78,7 +78,7 @@ public class AssetTileLoader implements TerrainGridTileLoader {
|
||||
Logger.getLogger(this.getClass().getName()).log(Level.WARNING, "Could not load terrain grid tile: {0}", modelName);
|
||||
quad = createNewQuad(location);
|
||||
} else {
|
||||
Logger.getLogger(this.getClass().getName()).log(Level.INFO, "Loaded terrain grid tile: {0}", modelName);
|
||||
Logger.getLogger(this.getClass().getName()).log(Level.FINE, "Loaded terrain grid tile: {0}", modelName);
|
||||
}
|
||||
return quad;
|
||||
}
|
||||
|
@ -113,7 +113,7 @@ public class ImageTileLoader implements TerrainGridTileLoader{
|
||||
String name = null;
|
||||
try {
|
||||
name = namer.getName(x, z);
|
||||
logger.log(Level.INFO, "Loading heightmap from file: {0}", name);
|
||||
logger.log(Level.FINE, "Loading heightmap from file: {0}", name);
|
||||
final Texture texture = assetManager.loadTexture(new TextureKey(name));
|
||||
heightmap = new ImageBasedHeightMap(texture.getImage());
|
||||
/*if (assetInfo != null){
|
||||
|
@ -272,7 +272,7 @@ public abstract class AbstractHeightMap implements HeightMap {
|
||||
return false;
|
||||
}
|
||||
|
||||
logger.log(Level.INFO, "Saved terrain to {0}", filename);
|
||||
logger.log(Level.FINE, "Saved terrain to {0}", filename);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
@ -150,7 +150,7 @@ public class FaultHeightMap extends AbstractHeightMap {
|
||||
|
||||
normalizeTerrain(NORMALIZE_RANGE);
|
||||
|
||||
logger.log(Level.INFO, "Fault heightmap generated");
|
||||
logger.log(Level.FINE, "Fault heightmap generated");
|
||||
return true;
|
||||
}
|
||||
|
||||
|
@ -85,7 +85,7 @@ public class ImageBasedHeightMapGrid implements HeightMapGrid {
|
||||
|
||||
try {
|
||||
String name = namer.getName(x, z);
|
||||
logger.log(Level.INFO, "Loading heightmap from file: {0}", name);
|
||||
logger.log(Level.FINE, "Loading heightmap from file: {0}", name);
|
||||
final Texture texture = assetManager.loadTexture(new TextureKey(name));
|
||||
|
||||
// CREATE HEIGHTMAP
|
||||
|
@ -151,7 +151,7 @@ public class MidpointDisplacementHeightMap extends AbstractHeightMap {
|
||||
|
||||
normalizeTerrain(NORMALIZE_RANGE);
|
||||
|
||||
logger.log(Level.INFO, "Midpoint displacement heightmap generated");
|
||||
logger.log(Level.FINE, "Midpoint displacement heightmap generated");
|
||||
return true;
|
||||
}
|
||||
|
||||
|
@ -100,7 +100,7 @@ public class SaveGame {
|
||||
}
|
||||
os = new GZIPOutputStream(new BufferedOutputStream(new FileOutputStream(saveFile)));
|
||||
ex.save(data, os);
|
||||
Logger.getLogger(SaveGame.class.getName()).log(Level.INFO, "Saving data to: {0}", saveFile.getAbsolutePath());
|
||||
Logger.getLogger(SaveGame.class.getName()).log(Level.FINE, "Saving data to: {0}", saveFile.getAbsolutePath());
|
||||
} catch (IOException ex1) {
|
||||
Logger.getLogger(SaveGame.class.getName()).log(Level.SEVERE, "Error saving data: {0}", ex1);
|
||||
ex1.printStackTrace();
|
||||
@ -182,7 +182,7 @@ public class SaveGame {
|
||||
imp.setAssetManager(manager);
|
||||
}
|
||||
sav = imp.load(is);
|
||||
Logger.getLogger(SaveGame.class.getName()).log(Level.INFO, "Loading data from: {0}", file.getAbsolutePath());
|
||||
Logger.getLogger(SaveGame.class.getName()).log(Level.FINE, "Loading data from: {0}", file.getAbsolutePath());
|
||||
} catch (IOException ex) {
|
||||
Logger.getLogger(SaveGame.class.getName()).log(Level.SEVERE, "Error loading data: {0}", ex);
|
||||
ex.printStackTrace();
|
||||
|
Loading…
x
Reference in New Issue
Block a user