Importing directly and indirectly from the blender

When I export directly from the blender when I click on export blender crashes!



and



if I so much by Jmonkey



When I open the Jmonkey to try to import a blender model, *happend *there are two errors:



Error in scene!

-Javalang.illegalSateException: incomplete reader Buffer



Error in scene!

-Java.lang.NoclassDefFoundErro: com/jm3/scene/shape/Surface.





I do not understand, I installed all the existing libraries, I did the whole process to export blender right too.



and now, what do I do?



:cry:

jimdavis10 said:
When I export directly from the blender when I click on export blender crashes!


What exportation did you mean?OgreXml?You must to install python 2.6 for Blender works with OgreXml.

jimdavis10 said:
and

if I so much by Jmonkey

When I open the Jmonkey to try to import a blender model, *happend *there are two errors:

Error in scene!
-Javalang.illegalSateException: incomplete reader Buffer

Error in scene!
-Java.lang.NoclassDefFoundErro: com/jm3/scene/shape/Surface.


I do not understand, I installed all the existing libraries, I did the whole process to export blender right too.

and now, what do I do?

:cry:


You are trying to import blender 2.49b scenes? I don't know if the blender importer plugin still works with blender 2.49b.
Anyways, make sure your jmp is up to date.

Yes, everything here is more than update, I have python installed, I ogrecomandlinne, I have everything needed, and there is still this error. Why?



My python version is 3.2!

My version is the blender 2:57! (and have already installed the addon to export. ogre scene)

And use the Jmonkey3 alpha-4!

what’s missing?



I appreciate the help!

is this a custom scene you built? try it with a normal cube and see if that works.

.

jimdavis10 said:

When I export directly from the blender when I click on export blender crashes!

…bla bla bla…



@jimdavis 10: Are you try to exporting a complex mesh or a simple mesh? Because when i try to export a complex mesh with blender 2.57 it takes about 10 min to export the whole mesh. The OgreXml addon for blender 2.57 is very slow. But when exporting a simple cube it's fast.

Ok, I reinstalled everything and now everything is OK! I export all of

blender.



Aside from the fact that I keep giving the error in scene! when I open the

jmonkey.



But another problem arose after I import to Jmonkey, comes the

mesh files -. -. -. mesh.xml and scene, and when I convert

. Mesh.xml in j3o, another error occurs:


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.empt
yElement (AbstractXMLDocumentParser.java: 179)
at
com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStar
TElement (XMLNSDocumentScannerImpl.java: 377)
at
$ com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl Fr
agmentContentDriver.next (XMLDocumentFragmentScannerImpl.java: 2755)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next (XMLDo
cumentScannerImpl.java: 648)
at
com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next (XML
NSDocumentScannerImpl.java: 140)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.sc
anDocument (XMLDocumentFragmentScannerImpl.java: 511)
at
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse (XML11
Configuration.java: 808)
at
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse (XML11
Configuration.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 (Abstraction
ctSAXParser.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 (SpatialAssetDat
aObject.java: 81)
at
com.jme3.gde.core.assets.actions.ConvertModel $ 1.run (ConvertModel.java: 63)
at java.lang.Thread.run (Thread.java: 662)





And now? what to do?

your getting XML parsing errors, which suggests to me that there is something in the xml file which JME doesn’t like. Maybe you’ve got stray vertices or something, idk, you can try go into edit mode in blender, and do CTRL + SHIFT + ALT + M to select non-manifold vertices, and delete them.

jimdavis10 said:
bla bla bla...
But another problem arose after I import to Jmonkey, comes the
mesh files -. -. -. mesh.xml and scene, and when I convert
. Mesh.xml in j3o, another error occurs:
....bla bla..
And now? what to do?


It looks your mesh.xml didn't find its material, because the exported material is for the .scene. Your material's name is Scene.material ok? Try rename it to your .mesh.xml name. Also make sure your OgreXmlConverter is updated with the lasted build.