Open ogrehead.mesh in Blender

The place for artists, modellers, level designers et al to discuss their approaches for creating content for OGRE.
fabske
Kobold
Posts: 30
Joined: Thu Jan 26, 2012 10:29 am

Open ogrehead.mesh in Blender

Post by fabske »

I am using OGRE and Blender under my Ubuntu 11.10 and try to open mesh-format. I installed blender 2.58.0 and found the blenderimport at [0].
Then I opened blender and go to "User preferences" and to Add-Ons. The button "Install Add-On" allows me to load "ogre_import.py" and I install it. At least it seems so, because after that I cannot find any ogre_import called Add-On to activate!?
And I neither can load the ogrehead.mesh. :(
Can somebody tell my what I do wrong?

[0] http://www.ogre3d.org/tikiwiki/BlenderImport
User avatar
Waruck
Goblin
Posts: 210
Joined: Mon Dec 12, 2011 12:52 pm
Location: Germany
x 34

Re: Open ogrehead.mesh in Blender

Post by Waruck »

This script accepts a text XML 列ile as input, created from the OgreXmlConverter 具ool. The script can also 呼all the converter for you if you edit it and 化hange the path variable.
When you installed the .py file you should be able to use the addon by cllicking file->import->ogre-mesh (or something like that). But as the description says you first have to convert your .mesh to a .mesh.xml file. you can do that by just open your .mesh file with the xml-converter found in the ogre-command-line-tools.
User avatar
duststorm
Minaton
Posts: 921
Joined: Sat Jul 31, 2010 6:29 pm
Location: Belgium
x 80

Re: Open ogrehead.mesh in Blender

Post by duststorm »

As far as I remember, that script is for Blender 2.4 and is not adapted to the new API (2.5+) and it's not really kept up-to-date so I wonder whether it works with Ogre 1.8 meshes.
But if it works, that's good.

You can of course install an old Blender version with the script, import the model there, and save it as .blend (or .obj or whatever). Then open it in the new blender.
Developer @ MakeHuman.org
fabske
Kobold
Posts: 30
Joined: Thu Jan 26, 2012 10:29 am

Re: Open ogrehead.mesh in Blender

Post by fabske »

Sorry, but I wont install two versions of Blender..
Is there any other Linux Application which I can open the ogrehead or other meshes?
User avatar
duststorm
Minaton
Posts: 921
Joined: Sat Jul 31, 2010 6:29 pm
Location: Belgium
x 80

Re: Open ogrehead.mesh in Blender

Post by duststorm »

Not that I know of.
As for installing two blender versions, in linux it's easy. Just download a blender gzipped binary archive, and extract it somewhere in your /opt folder. No messing with package systems that will not allow two versions.
That's how I work with two blenders. My distro still offers 2.49, which I have installed from package. Blender 2.5 is just sitting in /opt/Blender

Apart from what OgreAssimp can do, I am not aware of any other program that imports ogre meshes. If you have the programming skills, have a look at the ogre mesh xml format. It's not that hard to write an importer for it. Someone just has to do it ;)
Developer @ MakeHuman.org