Hi,
I have a problem in converting ogre mesh (.mesh.xml) to jme binary format (.j3o), I 've got this message :
Unsupported pass directive: vertex_program_ref
Unsupported pass directive: {
Unsupported pass directive: param_named_auto
Unsupported pass directive: param_named_auto
and I don’t know to figure out why this happened ?
thanks
you exported to .mesh with Blender?
the url of the images are correct?
maybe the problem is with the original file … Try exporting another file to .mesh by Blender
You need to map the shader parameters. You didnt even say how you exported that model, but I guess it was not blender since its got these directives. Look at the package documentation for com.jme3.scene.pligins.ogre.matext
Make sure you don’t specify normal maps in the exporter, you will need to set up normal mapping manually using jMP’s material editor
Here details what I did :
I 've tried to convert House model (taken from http://blender-archi.tuxfamily.org/images/House.blend) with Blender 2.49b. Before converting to ogre mesh (.mesh.xml), I 've unpacked the blend file (House.blend) by selecting menu File > External Data > Unpack into Files. And I got the generated ogre mesh (House.mesh.xml) and its material (House.material). finally, the problem arise when I have tried to convert to .j3o format with JMonkey Platform Alpha 4, I got this messages :
Unsupported pass directive: vertex_program_ref
Unsupported pass directive: {
Unsupported pass directive: param_named_auto
Unsupported pass directive: param_named_auto.
Below is ogre mesh files which generated by blender2ogre exportes.
Generated Files (House.mesh.xml, House.material and texture images) : http://coderz.googlecode.com/files/house.zip
thanks
Momoko_Fan said:
Make sure you don't specify normal maps in the exporter, you will need to set up normal mapping manually using jMP's material editor
I want to add a configuration page in jMP with predefined shader mappings.. We have to collect all of these some time...
@erigagames: Check out these tutorials on exporting from blender:
https://docs.google.com/fileview?id=0B9hhZie2D-fENDBlZDU5MzgtNzlkYi00YmQzLTliNTQtNzZhYTJhYjEzNWNk&hl=en
https://docs.google.com/leaf?id=0B9hhZie2D-fEYmRkMTYwN2YtMzQ0My00NTM4LThhOTYtZTk1MTRlYTNjYTc3&hl=en
@normen yes, normen I 've followed those tutorials and try with another models but the problem still arise.
Remove the normal map before exporting like momoko said or add the code for the mapping like I said.
In 99% of cases, downloading a model online and hitting “export” will give you a broken model that cannot be used in jME3 or any other 3D game engine for that matter.
You will need to learn how to edit the model so it is “game ready” so to speak, generally this will require cleaning the mesh, generating proper normals, fixing the materials to use UV coords and only 1 diffuse texture, etc.
thanks normen and momoko, it’s totally work
When I try to convert Tree2mesh.xml whic is a part of jm3 test lib to j3o the process frezzes at %25. If I try advanced convert option and play with LOD and other paramtetrs I get error on the converter.
Has anyone tried converting Tree2.mesh,xml before?