Hi Momoko,
for non-english users the MaterialLoader doesnt work. Currently the Exception thrown of the scanner (Inputtype mismatch) isnt written to console and a message doesnt show up, too. The app is simply closed.
### Eclipse Workspace Patch 1.0
#P jme3
Index: src/com/g3d/scene/plugins/ogre/MaterialLoader.java
===================================================================
--- src/com/g3d/scene/plugins/ogre/MaterialLoader.java (revision 4708)
+++ src/com/g3d/scene/plugins/ogre/MaterialLoader.java (working copy)
@@ -15,6 +15,7 @@
import com.g3d.util.BufferUtils;
import java.io.IOException;
import java.nio.ByteBuffer;
+import java.util.Locale;
import java.util.Scanner;
public class MaterialLoader implements AssetLoader {
@@ -243,6 +244,7 @@
assetManager = info.getManager();
OgreMaterialList list = new OgreMaterialList();
scan = new Scanner(info.openStream());
+ scan.useLocale(Locale.ENGLISH);
while (scan.hasNext("material")){
String matName = readMaterial();
Material mat = compileMaterial();
For the ogre elephant test, some materials are missing:
INFO Node 14:56:13 Child (elephant_lowres-geom-1) attached to this node (elephant_lowres-ogremesh)
WARNUNG MeshLoader 14:56:13 Material Ele_Tuskh not found. Applying default material
INFO Node 14:56:13 Child (elephant_lowres-geom-2) attached to this node (elephant_lowres-ogremesh)
WARNUNG MeshLoader 14:56:13 Material Ele_Tuskh not found. Applying default material
INFO Node 14:56:13 Child (elephant_lowres-geom-3) attached to this node (elephant_lowres-ogremesh)
WARNUNG MeshLoader 14:56:13 Material leftEyeShader not found. Applying default material
INFO Node 14:56:13 Child (elephant_lowres-geom-4) attached to this node (elephant_lowres-ogremesh)
WARNUNG MeshLoader 14:56:13 Material rightEyeShader not found. Applying default material
Regards,
snare