Cant load .mesh.xml file: 3D Studio max + OgreMax converter -> OgreXMLConverter

[java]

com.jme3.asset.AssetLoadException: An exception has occured while loading asset: Textures/droid01.mesh.xml

at com.jme3.asset.DesktopAssetManager.loadAsset(DesktopAssetManager.java:275)

at com.jme3.asset.DesktopAssetManager.loadModel(DesktopAssetManager.java:408)

at com.jme3.asset.DesktopAssetManager.loadModel(DesktopAssetManager.java:418)

at com.redcore.Main.createCharacter(Main.java:237)

at com.redcore.Main.simpleInitApp(Main.java:125)

at com.jme3.app.SimpleApplication.initialize(SimpleApplication.java:231)

at com.jme3.system.lwjgl.LwjglAbstractDisplay.initInThread(LwjglAbstractDisplay.java:129)

at com.jme3.system.lwjgl.LwjglAbstractDisplay.run(LwjglAbstractDisplay.java:205)

at java.lang.Thread.run(Thread.java:722)

Caused by: java.io.IOException: Error while parsing Ogre3D mesh.xml

at com.jme3.scene.plugins.ogre.MeshLoader.load(MeshLoader.java:860)

at com.jme3.asset.DesktopAssetManager.loadAsset(DesktopAssetManager.java:273)

… 8 more

Caused by: org.xml.sax.SAXException: Expected an integer

at com.jme3.util.xml.SAXUtil.parseInt(SAXUtil.java:68)

at com.jme3.scene.plugins.ogre.MeshLoader.pushFace(MeshLoader.java:167)

at com.jme3.scene.plugins.ogre.MeshLoader.startElement(MeshLoader.java:583)

at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:506)

at com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocumentParser.emptyElement(AbstractXMLDocumentParser.java:182)

at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(XMLNSDocumentScannerImpl.java:353)

at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2715)

at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:607)

at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:116)

at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:488)

at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:835)

at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:764)

at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:123)

at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1210)

at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:568)

at com.jme3.scene.plugins.ogre.MeshLoader.load(MeshLoader.java:851)

… 9 more

[/java]



This is how i make the models:

  1. Create model through 3D max
  2. Use OgreMax exporter (Ogre mesh version 1.7)
  3. convert generated .mesh to .xml using latest OgreXMLConverter
  4. use generated .xml in JME



    And for some reason, i always get that error. What’s the problem?

Is this android? Convert the model to j3o in the SDK before then. Or is this in the SDK?

This is on SDK. And when i try to convert the model to j3o it gives me an error

What happens when you import the binary directly? You have to copy it to the assets folder of a project before, the Model Import Tool will not work with binary files. If using “convert to j3o” in the assets folder, the ogre command line tools in the SDK will be used to convert to XML, maybe theres an issue with that somehow. Else check that your model is game compatible (e.g. only consisting of triangles etc).

Please provide the mesh.xml file with the issue

http://wikisend.com/download/342492/droid01.mesh.xml

There are lines in the model which is why it is failing. Should be fixed now but really using lines in an ogre3d mesh doesn’t make much sense to me …