Hey does anyone have experience with using makehuman to create your in game characters, it’s completely free no licensing issues etc and can create very high quality human models. You can also download motion capture data from other sources (sound licensing again) to animate these humans through various actions. Which is all fine and good.
However I’m having trouble getting the model into jmonkey, I’m trying to export as an OgreXML and then import it in and I’m getting all sorts of problems. Firstly I tried loading it via the .scene but that didn’t work then using the .mesh.xml for the whole object. I tried converting the .mesh.xml into a .j3o binary but the sdk gives me a list of exceptions starting with an Array Index Out of Bounds at com.jme3.scene.plugins.ogre.MaterialLoader.readTextureUnit(MaterialLoader.java:197)
I’m wondering if this is because of how makehuman lays out its file structure (I make the people in makehuman export as an OBJ then import into blender and the skeleton etc is already done for me).
Here’s my load model code for importing the ogre xml:
[Edit:] just realised both my code and the sdk have a problem with line 197 in the material loader… I’m going to dig into the source right now
[java] Spatial heman=assetManager.loadModel(“Models/heman2/Clothes_testMesh.mesh.xml”);[/java]
[java]Apr 20, 2013 9:24:17 AM com.jme3.scene.plugins.ogre.MaterialLoader readPassStatement
WARNING: Unsupported pass directive: alpha_to_coverage
Apr 20, 2013 9:24:17 AM com.jme3.scene.plugins.ogre.MaterialLoader readPassStatement
WARNING: Unsupported pass directive: colour_write
Apr 20, 2013 9:24:17 AM com.jme3.scene.plugins.ogre.MaterialLoader readPassStatement
WARNING: Unsupported pass directive: depth_check
Apr 20, 2013 9:24:17 AM com.jme3.scene.plugins.ogre.MaterialLoader readPassStatement
WARNING: Unsupported pass directive: depth_func
Apr 20, 2013 9:24:17 AM com.jme3.scene.plugins.ogre.MaterialLoader readPassStatement
WARNING: Unsupported pass directive: depth_write
Apr 20, 2013 9:24:17 AM com.jme3.scene.plugins.ogre.MaterialLoader readPassStatement
WARNING: Unsupported pass directive: illumination_stage
Apr 20, 2013 9:24:17 AM com.jme3.scene.plugins.ogre.MaterialLoader readPassStatement
WARNING: Unsupported pass directive: light_clip_planes
Apr 20, 2013 9:24:17 AM com.jme3.scene.plugins.ogre.MaterialLoader readPassStatement
WARNING: Unsupported pass directive: light_scissor
Apr 20, 2013 9:24:17 AM com.jme3.scene.plugins.ogre.MaterialLoader readPassStatement
WARNING: Unsupported pass directive: normalise_normals
Apr 20, 2013 9:24:17 AM com.jme3.scene.plugins.ogre.MaterialLoader readPassStatement
WARNING: Unsupported pass directive: polygon_mode
Apr 20, 2013 9:24:17 AM com.jme3.scene.plugins.ogre.MaterialLoader readPassStatement
WARNING: Unsupported pass directive: scene_blend_op
Apr 20, 2013 9:24:17 AM com.jme3.scene.plugins.ogre.MaterialLoader readPassStatement
WARNING: Unsupported pass directive: shading
Apr 20, 2013 9:24:17 AM com.jme3.scene.plugins.ogre.MaterialLoader readPassStatement
WARNING: Unsupported pass directive: transparent_sorting
Apr 20, 2013 9:24:17 AM com.jme3.scene.plugins.ogre.MaterialLoader readTextureUnitStatement
WARNING: Unsupported texture_unit directive: scale
Apr 20, 2013 9:24:17 AM com.jme3.scene.plugins.ogre.MaterialLoader readTextureUnitStatement
WARNING: Unsupported texture_unit directive: colour_op
Apr 20, 2013 9:24:17 AM com.jme3.scene.plugins.ogre.MaterialLoader readTextureUnitStatement
WARNING: Unsupported texture_unit directive: scale
Apr 20, 2013 9:24:17 AM com.jme3.scene.plugins.ogre.MaterialLoader readTextureUnitStatement
WARNING: Unsupported texture_unit directive: colour_op
Apr 20, 2013 9:24:17 AM com.jme3.scene.plugins.ogre.MaterialLoader readTextureUnitStatement
WARNING: Unsupported texture_unit directive: scale
Apr 20, 2013 9:24:17 AM com.jme3.scene.plugins.ogre.MaterialLoader readTextureUnitStatement
WARNING: Unsupported texture_unit directive: colour_op
Apr 20, 2013 9:24:17 AM com.jme3.scene.plugins.ogre.MaterialLoader readTextureUnitStatement
WARNING: Unsupported texture_unit directive: scale
Apr 20, 2013 9:24:17 AM com.jme3.scene.plugins.ogre.MaterialLoader readTextureUnitStatement
WARNING: Unsupported texture_unit directive: colour_op_ex
Apr 20, 2013 9:24:17 AM com.jme3.app.Application handleError
SEVERE: Uncaught exception thrown in Thread[LWJGL Renderer Thread,5,main]
java.lang.ArrayIndexOutOfBoundsException: 4
at com.jme3.scene.plugins.ogre.MaterialLoader.readTextureUnit(MaterialLoader.java:197)
at com.jme3.scene.plugins.ogre.MaterialLoader.readPassStatement(MaterialLoader.java:247)
at com.jme3.scene.plugins.ogre.MaterialLoader.readPass(MaterialLoader.java:283)
at com.jme3.scene.plugins.ogre.MaterialLoader.readTechnique(MaterialLoader.java:299)
at com.jme3.scene.plugins.ogre.MaterialLoader.readMaterialStatement(MaterialLoader.java:305)
at com.jme3.scene.plugins.ogre.MaterialLoader.readMaterial(MaterialLoader.java:316)
at com.jme3.scene.plugins.ogre.MaterialLoader.load(MaterialLoader.java:452)
at com.jme3.scene.plugins.ogre.MaterialLoader.load(MaterialLoader.java:465)
at com.jme3.asset.DesktopAssetManager.loadAsset(DesktopAssetManager.java:283)
at com.jme3.scene.plugins.ogre.MeshLoader.load(MeshLoader.java:867)
at com.jme3.asset.DesktopAssetManager.loadAsset(DesktopAssetManager.java:283)
at com.jme3.asset.DesktopAssetManager.loadModel(DesktopAssetManager.java:369)
at com.jme3.asset.DesktopAssetManager.loadModel(DesktopAssetManager.java:373)[/java]