Please help!! I can’t seem to convert mesh.xml models to j3o binaries - I right click and press convert and it does the process (I see the progress happening in the bottom right corner) but then no j3o file appears?? Does anyone have any idea what this might be? THanks in advance
Does any exception happen(at right bottom)? Is your model named like its material(e.g mymodel.mesh.xml mymodel.material)?
Yes, the material file is named the same - There is an error message saying something like ‘Unable to parse OgreXML’ when I press Convert to j3o binary, but when I press the other one that says Advanced JME binary convert and then just press import it loads for a little bit and then nothing happens
Is your jmp Beta up to date? Also, what dotscene script version are u using? The script provided by OgreXmlTools? It’s for blender 2.5x+. Please, copy/paste the output error here.
I will update it now, see if anything changes - one minute
By the way, this is the error:
[java]java.nio.BufferOverflowException
at java.nio.Buffer.nextPutIndex(Buffer.java:495)
at java.nio.DirectFloatBufferU.put(DirectFloatBufferU.java:250)
at com.jme3.scene.plugins.ogre.MeshLoader.pushAttrib(MeshLoader.java:420)
Caused: java.nio.BufferOverflowException
at com.jme3.scene.plugins.ogre.MeshLoader.pushAttrib(MeshLoader.java:424)
at com.jme3.scene.plugins.ogre.MeshLoader.startElement(MeshLoader.java:570)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:501)
at com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocumentParser.emptyElement(AbstractXMLDocumentParser.java:179)
at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(XMLNSDocumentScannerImpl.java:377)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2755)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:648)
at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:140)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:511)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:808)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:119)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1205)
at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:522)
at com.jme3.scene.plugins.ogre.MeshLoader.load(MeshLoader.java:812)
Caused: java.io.IOException: Error while parsing Ogre3D mesh.xml
at com.jme3.scene.plugins.ogre.MeshLoader.load(MeshLoader.java:817)
[catch] at com.jme3.asset.DesktopAssetManager.loadAsset(DesktopAssetManager.java:243)
at com.jme3.asset.DesktopAssetManager.loadModel(DesktopAssetManager.java:379)
at com.jme3.asset.DesktopAssetManager.loadModel(DesktopAssetManager.java:389)
at com.jme3.gde.core.assets.SpatialAssetDataObject.loadAsset(SpatialAssetDataObject.java:81)
at com.jme3.gde.core.assets.actions.ConvertModel$1.run(ConvertModel.java:63)
at java.lang.Thread.run(Thread.java:662)
[/java]
ok, i’ll wait, but you didn’t tell me what the dotscene script you are using.
Ok, I updated JME and everything seems to be working a little better (I can now turn things into the j3o binary) but I am having trouble displaying simple objects. I decided that I should try to import some simple obj files before I tried OgreXML (why run before you can walk, right?) but the compiler comes out with this error:
[java]SEVERE: Uncaught exception thrown in Thread[LWJGL Renderer Thread,5,main]
com.jme3.asset.AssetNotFoundException: Cannot find material map.mtl for model Models/Map/map.obj[/java]
Even though map.mtl is right there sitting next to map.obj - any ideas?
hmm, it’s very strange. Just tested it and it’s working fine. Where did u export it from?
If you’re using jme3beta or greater and there are any model(s) that fail to load, please post or send them to me so that the issue can be fixed.