Hi All,
Running nightly, updated yesterday.
I’ve got a (fairly complex but not extreme - 552 vertex) model that I’ve just completed in latest Blender 2.63. I can’t get it into JME3 at all though.
First I tried the direct blender importer. This seemed to work but the result was a .j3o file containing a node called “Merged” (the name of the object I’ve created inside the blender file) Node but no geometries within that node. I then tried triangulating the model in blender and importing again - same result.
IDE Logs for the import:
[java]INFO [com.jme3.scene.plugins.blender.objects.ObjectHelper]: Loading obejct: Merged
INFO [com.jme3.scene.plugins.blender.objects.ObjectHelper]: Importing mesh.
INFO [com.jme3.scene.plugins.blender.materials.MaterialHelper]: Loading material.
INFO [com.jme3.scene.plugins.blender.textures.TextureHelper]: Reading texture from file: //MatchPlayerBaseTextureRed.jpg
INFO [com.jme3.scene.plugins.blender.materials.MaterialHelper]: Materials name: {0}
INFO [com.jme3.scene.plugins.blender.BlenderModelLoader]: Merged: (1.7025626, -2.4741974, 4.986301)–> null
INFO [com.jme3.scene.Node]: Child (Merged) attached to this node (Models/MatchPlayerBase.lighting.triangulated.blend)[/java]
Show “Importing Mesh” and no errors.
When I view the object in the scene composer I just see black with the point lights (which I’m going to delete anyway as they were just used for baking in lighting) and no geometry.
So I then thought I’d try via Ogre XML. I installed the scripts but inside the blender plugins it gave a warning about .mesh output requiring OgreCommandLineTools. I installed them and added the folder to a path and verified they work from a new command prompt but the warning stayed - however I managed to get the export option to appear in the menu so I thought I’d try it anyway and I got an error:
[java]
exporting root -> <bpy_struct, Object("Merged")>
Traceback (most recent call last):
File "C:UsersTimAppDataRoamingBlender FoundationBlender2.63scriptsadd
onsio_export_ogreDotScene.py", line 4509, in execute
def execute(self, context): self.ogre_export( self.filepath, context ); ret
urn {'FINISHED'}
File "C:UsersTimAppDataRoamingBlender FoundationBlender2.63scriptsadd
onsio_export_ogreDotScene.py", line 4791, in ogre_export
xmlparent=doc._scene_nodes
File "C:UsersTimAppDataRoamingBlender FoundationBlender2.63scriptsadd
onsio_export_ogreDotScene.py", line 4901, in _node_export
if ob.type == 'MESH' and len(ob.data.faces):
AttributeError: 'Mesh' object has no attribute 'faces'
location:<unknown location>:-1
location:<unknown location>:-1[/java]
This error doesn't seem to be anything to do with the command line objects...
As a last try I tried exporting to 3ds and importing back from that - which did work fine (I don't have 3ds but the re-imported model in blender looked correct)...So I know the object can be exported. I then tried one last export to Ogre3d and import in the SDK of that file which had been via 3ds but got the same result in both.
So...any suggestions? I'm running out of things to try!
Thanks,
Z