Exported model dont work?

Hello

I downloaded simple Rock.blend:
Screen 1
and exported it using OgreXML with that settings:
Screen2
I got files:
Screen3
But when I convert into jme binaries it gave warning about material: Screen 4
and after that i cannot see .j3o model because i get error: Error opening Mesh.002.j3o

What’s wrong?

Before exporting, try unselecting the “separate materials” checkbox and export it again.

Still same errors

What material does it export now?

Seems like you’re exporting the scene file but not the meshes.

it’s now these files: screen

I downloaded this model: http://www.blendswap.com/blends/view/2538

maybe someone will try with his own exporter and tell how it work?

So just convert the .scene file (or the .blend file directly).

When i convert .scene i got bunch of errors:

[java]Child (Rock02) attached to this node (Models/Rock-scene_node)
Trying to write asset failed, asset data null!
Import failed?
Could not locate saved file.
Loaded material definition: Phong Lighting
Unsupported pass directive: alpha_to_coverage
Unsupported pass directive: colour_write
Unsupported pass directive: depth_check
Unsupported pass directive: depth_func
Unsupported pass directive: depth_write
Unsupported pass directive: illumination_stage
Unsupported pass directive: light_clip_planes
Unsupported pass directive: light_scissor
Unsupported pass directive: normalise_normals
Unsupported pass directive: polygon_mode
Unsupported pass directive: scene_blend_op
Unsupported pass directive: shading
Unsupported pass directive: transparent_sorting
Unsupported texture_unit directive: scale
Unsupported texture_unit directive: colour_op

[/java]

And if you try the blend file? Seems you have an incompatible ogre exporter.

I got ogreXml from: http://code.google.com/p/blender2ogre/ and Blender v2.68, and python 2.64

And if you try the blend file directly?

Skatty - I’ve had some trouble with this too: if you’re using the most recent version of blender2ogre (which I got from mind calamity’s bitbucket page) there’s a bug in there that can cause it to fail on material export.

Open the python script up (on linux it’s in ~/.config/blender/2.68/scripts/addons/io_export_ogreDotScene.py - I imagine OSX and Windows would have similar paths) and head to line 3363 of the file.

There’s a line on there that reads:

Report.materials.append(3(mat))

It should instead read:

Report.materials.append( material_name(mat) )

If you got the same version of the export script that I did, changing this should fix it.

1 Like

EDIT: i deleted ogreexporter and installed one from Jmonkey - tools - install ogre. but when i export it print errors: http://scr.hu/1trj/pnkwk

i got: Report.materials.append( material_name(mat) ). What version of python u use?

When i convert directly .blend :

[java]Packed texture. Reading directly from the blend file!
Materials name: {0}
Loading material.
Materials name: {0}
Loading material.
Materials name: {0}
Loading material.
Materials name: {0}
Loading material.
Materials name: {0}
Unsupported modifier type: SubsurfModifierData
Unsupported modifier type: SubsurfModifierData
Unsupported modifier type: DisplaceModifierData
Trying to write asset failed, asset data null!
Import failed?
Could not locate saved file.[/java]

In blender, try applying all modifiers before exporting and try object->Make single user->Object & Data & Materials & Tex.