Blender26 Ogre Exporter

The place for artists, modellers, level designers et al to discuss their approaches for creating content for OGRE.
Post Reply
hartsantler
Greenskin
Posts: 107
Joined: Tue Nov 16, 2010 7:33 am

Re: Blender25 Ogre Exporter + extended .scene format

Post by hartsantler » Tue Mar 29, 2011 4:23 am

f00bar wrote:
Ok, I've merged the config patch and made some improvement to it
Thanks a lot for all your work.

PS: For me, the skeleton has a different orientation than the mesh at the moment (official blender 2.56a). But maybe I do something wrong.
foobar, do you have disconnect bones? it might also be a good idea to have your root with zero transformation, actually im not sure if this is required.
0 x

SRombauts
Kobold
Posts: 39
Joined: Mon Feb 28, 2011 6:58 pm
Location: Paris, France
Contact:

Re: Blender25 Ogre Exporter + extended .scene format

Post by SRombauts » Thu Mar 31, 2011 6:52 pm

Hi,

As noted elsewhere on this forum, Blender 2.57 RC is out, and it is the first non beta release !
http://www.blender.org/ => http://download.blender.org/release/Blender2.57/

We do have some compatibility issues, but I am confident it will not be much trouble :)

See you soon,
SRombauts
0 x
http://www.srombauts.fr, comments from an Android developer

SRombauts
Kobold
Posts: 39
Joined: Mon Feb 28, 2011 6:58 pm
Location: Paris, France
Contact:

Re: Blender25 Ogre Exporter + extended .scene format

Post by SRombauts » Thu Mar 31, 2011 8:44 pm

First release for Blender 2.57 is out, enjoy !
http://code.google.com/p/blender2ogre/downloads/list

Cheers,
SRombauts
0 x
http://www.srombauts.fr, comments from an Android developer

bugman
Gnoblar
Posts: 1
Joined: Sun Apr 03, 2011 4:11 pm

Re: Blender25 Ogre Exporter + extended .scene format

Post by bugman » Sun Apr 03, 2011 4:16 pm

The file is generated in the blender folder if not found there, maybe a problem for users without write permission.
This seems to be the problem I'm having. I can't activate the addon and it complains I don't have write permission. Any idea how to work around this in Windows 7?
0 x

User avatar
jacmoe
OGRE Retired Moderator
OGRE Retired Moderator
Posts: 20570
Joined: Thu Jan 22, 2004 10:13 am
Location: Denmark
Contact:

Re: Blender25 Ogre Exporter + extended .scene format

Post by jacmoe » Sun Apr 03, 2011 5:10 pm

Does B25 feature an installer now?
If so, choose the user directory option, instead of the app directory option for storing settings.
0 x
/* Less noise. More signal. */
Ogitor Scenebuilder - powered by Ogre, presented by Qt, fueled by Passion.
OgreAddons - the Ogre code suppository.

SRombauts
Kobold
Posts: 39
Joined: Mon Feb 28, 2011 6:58 pm
Location: Paris, France
Contact:

Re: Blender25 Ogre Exporter + extended .scene format

Post by SRombauts » Sun Apr 03, 2011 8:28 pm

jacmoe wrote:choose the user directory option, instead of the app directory option for storing settings.
Yes, and please try the last version of the addon script, the 0.3.3 that addresses this issue : the config file is now created in the config/scripts directory.

I've also renammed the script io_export_ogreDotScene.py to respect Blender policies.

SRombauts
0 x
http://www.srombauts.fr, comments from an Android developer

_blendman
Gnoblar
Posts: 1
Joined: Thu Apr 07, 2011 8:05 am

Re: Blender25 Ogre Exporter + extended .scene format

Post by _blendman » Thu Apr 07, 2011 8:37 am

Hi all :)

I use purebasic 4.60, which use ogre 1.7 as engine3D.
So i don't know how to compile ogre.

But, when I try to convert my blend file (2.49b or 2.57) > xml >mesh, I have an issue :
the conversion is made in xml, and I use the ogreXmlConverter.exe too to convert the mxl to .mesh.
- But the format of my OgreXmlConverter.exe is too old (serializer 1.4).

So I would like to know if someone could post a new version of ogreXmlConverter.exe (for windows Xp), because the version on the ogre site is the 1.6.3, and I'm looking for ogreXmlConverter.exe for ogre 1.7x.

Please can you post this tool for windows ?

Thank very much !

EDIT / ok, I have found the OgreXmlConverter.exe in the OgreSDK. But I don't understand because OgreMessy said me that the .mesh is in an old format, even if I use the OgreXmlConverter.exe (SDK 1.7.2), even if I use the OgreMeshUpgrader.exe tool.
Do you know how I can resolv that ?

Thank you again.
0 x

f00bar
Halfling
Posts: 57
Joined: Sun Feb 15, 2009 4:00 am

Re: Blender25 Ogre Exporter + extended .scene format

Post by f00bar » Sat Apr 16, 2011 1:50 am

hartsantler wrote:foobar, do you have disconnect bones? it might also be a good idea to have your root with zero transformation, actually im not sure if this is required.
Thanks a lot. That's a nice little tool you created. I got it now. I thought I tried every option for 'swap axis', but now that I try again it works. I have to use xz-y for 'swap axis'. The default of the button is -xzy for me. The skeleton seems to not be affected by that setting.
_blendman wrote:EDIT / ok, I have found the OgreXmlConverter.exe in the OgreSDK. But I don't understand because OgreMessy said me that the .mesh is in an old format, even if I use the OgreXmlConverter.exe (SDK 1.7.2), even if I use the OgreMeshUpgrader.exe tool.
Do you know how I can resolv that ?
The newest ogre meshy is compiled against ogre 1.8, the ogre version in development. Maybe that's why it says it is an old mesh format, because the mesh was not converted by the 1.8 converter. However, if your game uses 1.7 you should not care about the warnings in meshy.
0 x

Arthr702
Gnoblar
Posts: 2
Joined: Mon Apr 18, 2011 3:38 pm

Re: Blender25 Ogre Exporter + extended .scene format

Post by Arthr702 » Mon Apr 18, 2011 3:42 pm

Are there any updates in future for the exporter?

I have some trouble with the material file and get a lot of single meshes if i try to export a house (10.000 vert's)?
0 x

GenesisRage
Halfling
Posts: 73
Joined: Sun Dec 14, 2008 4:25 am

Re: Blender25 Ogre Exporter + extended .scene format

Post by GenesisRage » Sat Apr 23, 2011 7:04 pm

i just started looking at this exporter again, and one thing that looks weird for me, is the top info bar is doubled with the addon enabled
i have the default info bar, followed by the ogremeshy buttons, then file,add,render (again) then the other exporter buttons
not sure if that is a limitation with blender, or im doing something wrong, using 0.3.3 of addon and blender 2.57a
0 x
IRC Nick: Jake-GR

piiichan
Gnoblar
Posts: 1
Joined: Mon Nov 01, 2010 2:31 am

Re: Blender25 Ogre Exporter + extended .scene format

Post by piiichan » Mon Apr 25, 2011 12:44 am

Thanks for the exporter :)
Keep up the very good work!
0 x

omniyo
Gnoblar
Posts: 23
Joined: Mon Apr 25, 2011 11:04 am

Re: Blender25 Ogre Exporter + extended .scene format

Post by omniyo » Tue May 10, 2011 11:22 am

Hello,
I'm a beginer on this and i need to learn how to use the script to export from Blender 2.5 to Ogre.
I've tried it with a textured mesh and this is what i obtain:
- cube.mesh.xml
- texture.png
- scene.scene
- scene.scene.rex
- scene.material

But I'm looking for the .mesh file. So i tried to use the OgreXMLConverter tool in order to convert the cube.mesh.xml to cube.mesh. But this is what i obtain in log:

11:47:13: Creating resource group General
11:47:13: Creating resource group Internal
11:47:13: Creating resource group Autodetect
11:47:13: Registering ResourceManager for type Mesh
11:47:13: Registering ResourceManager for type Material
11:47:13: Registering ResourceManager for type Skeleton
11:47:13: XMLMeshSerializer reading mesh data from C:\Users\MainUser\Desktop\Blender\Modelado\Exporter\Cube.mesh.xml...
11:47:13: Reading geometry...
11:47:13: OGRE EXCEPTION(5:ItemIdentityException): Missing <texcoord> element. in XMLSerializer::readGeometry at ..\src\OgreXMLMeshSerializer.cpp (line 1037)
11:47:13: Unregistering ResourceManager for type Skeleton
11:47:13: Unregistering ResourceManager for type Material
11:47:13: Unregistering ResourceManager for type Mesh

Is this the way to convert?. I would be very thankful if anybody could help me!

Thanks in advance
0 x

SRombauts
Kobold
Posts: 39
Joined: Mon Feb 28, 2011 6:58 pm
Location: Paris, France
Contact:

Re: Blender25 Ogre Exporter + extended .scene format

Post by SRombauts » Tue May 10, 2011 11:29 am

Hi,

What versions of tools are you using ? Under Which OS ?
Please put the XmlConverter in the default place, or try to configure the plugin with your custom path : there is a config file for that in your Blender plugin directory.

Regards,
SRombauts
0 x
http://www.srombauts.fr, comments from an Android developer

omniyo
Gnoblar
Posts: 23
Joined: Mon Apr 25, 2011 11:04 am

Re: Blender25 Ogre Exporter + extended .scene format

Post by omniyo » Tue May 10, 2011 12:30 pm

Hi,

I'm using OGRECommandLineTools 1.6.3 (the one you have in the repository as blender2ogre-minimal-deps(win32,wine).zip) under Windows 7 64 bits.
I have it installed in C:\ (default?) such as this:

C:\
- OgreCommandLineTools
- OgreMeshy

I found the config file you said and it is correct:
[paths]
temp_dir = c:\users\MyUser\appdata\local\temp
ogretools_xml_converter = C:\OgreCommandLineTools\OgreXmlConverter.exe
ogretools_mesh_magick = C:\OgreCommandLineTools\MeshMagick.exe
ogre_meshy = C:\OgreMeshy\Ogre Meshy.exe
image_magick_convert =
nvidiatools_exe = C:\Program Files\NVIDIA Corporation\DDS Utilities\nvdxt.exe
myshaders_dir = C:\myshaders

I don't have installed any of this: "image_magick_convert", "nvidiatools_exe" and "myshaders_dir".
But they appear as optinals in the README file.

Thanks in advance.
0 x

SRombauts
Kobold
Posts: 39
Joined: Mon Feb 28, 2011 6:58 pm
Location: Paris, France
Contact:

Re: Blender25 Ogre Exporter + extended .scene format

Post by SRombauts » Tue May 10, 2011 12:42 pm

I think it might be a compatibility issue with the new 1.7.3 release of Ogre3d...

edit: http://www.ogre3d.org/2011/05/08/ogre-1 ... a-released
Last edited by SRombauts on Tue May 10, 2011 4:16 pm, edited 1 time in total.
0 x
http://www.srombauts.fr, comments from an Android developer

omniyo
Gnoblar
Posts: 23
Joined: Mon Apr 25, 2011 11:04 am

Re: Blender25 Ogre Exporter + extended .scene format

Post by omniyo » Tue May 10, 2011 1:13 pm

new 1.7.3 release of what?
0 x

User avatar
Klaim
Old One
Posts: 2565
Joined: Sun Sep 11, 2005 1:04 am
Location: Paris, France
Contact:

Re: Blender25 Ogre Exporter + extended .scene format

Post by Klaim » Tue May 10, 2011 5:34 pm

Of Ogre. It's have been released in the last few days.
0 x

hartsantler
Greenskin
Posts: 107
Joined: Tue Nov 16, 2010 7:33 am

Re: Blender25 Ogre Exporter + extended .scene format

Post by hartsantler » Wed May 11, 2011 4:16 am

Sorry this update took so long guys, been busy lately, just small fixes today, tested with Blender257.1
http://blender2ogre.googlecode.com/file ... -0.3.4.zip
0 x

hartsantler
Greenskin
Posts: 107
Joined: Tue Nov 16, 2010 7:33 am

Re: Blender25 Ogre Exporter + extended .scene format

Post by hartsantler » Fri May 13, 2011 6:18 am

multiple animation tracks now works, and the setup and doc makes more sense, see the examples folder. fixed some bugs in 0.3.4, everyone should upgrade.

http://blender2ogre.googlecode.com/file ... stable.zip
0 x

GenesisRage
Halfling
Posts: 73
Joined: Sun Dec 14, 2008 4:25 am

Re: Blender25 Ogre Exporter + extended .scene format

Post by GenesisRage » Sun May 15, 2011 9:58 pm

noticed that the exporter options in 0.3.5 look like they are just random, where 0.3.4 they were in a logical order.
0 x
IRC Nick: Jake-GR

Arthr702
Gnoblar
Posts: 2
Joined: Mon Apr 18, 2011 3:38 pm

Re: Blender25 Ogre Exporter + extended .scene format

Post by Arthr702 » Mon May 16, 2011 9:54 am

Hey guys,

i've got some problems with the exporter. First of all, I didn't get a .mesh of my house. If I try to convert it, OGREXMLConverter say: " Exception caught: Missing <textcoord> element.Unregistering ResourceManager for type Skeleton".

Next is, that the Normalmap and transparency textures isn't supported.
0 x

pighead10
Gremlin
Posts: 180
Joined: Fri Jan 07, 2011 8:58 pm
Location: That way
Contact:

Re: Blender25 Ogre Exporter + extended .scene format

Post by pighead10 » Sun May 22, 2011 5:26 pm

I have very little idea of how to use blender, but I can't seem to get this working. When I press export, it saves it as a .scene but not a .mesh (or even a .mesh.xml). I selected everything then pressed 'join', thinking maybe that would help, but whenever I try it now it freezes blender.
0 x

omniyo
Gnoblar
Posts: 23
Joined: Mon Apr 25, 2011 11:04 am

Re: Blender25 Ogre Exporter + extended .scene format

Post by omniyo » Tue May 31, 2011 11:53 am

Hello,

I've finally install the exporter under Ubuntu.
I've made in Blender a character, painted through texture paint and an animated walking cycle through an armature incorporated to the model.
The exporter seems to work well, giving me the .skeleton file. Nevertheless, when i try to load the resource in Ogre i obtain the following output at runtime:

Code: Select all

terOgreMeshUpgrader
================
minate called after throwing an instance of 'Ogre::InternalErrorException'
  what():  OGRE EXCEPTION(7:InternalErrorException): Cannot find serializer implementation for current version [Serializer_v1.10] in MeshSerializer::importMesh at /home/alberto/ogre/OgreMain/src/OgreMeshSerializer.cpp (line 118)
After reading that i thought that maybe i had to upgrade de model using the OgreUpgrader and this is the output i obtain:

Code: Select all

Creating resource group General
Creating resource group Internal
Creating resource group Autodetect
Registering ResourceManager for type Material
Registering ResourceManager for type Skeleton
Registering ResourceManager for type Mesh
Exception caught: Cannot find serializer implementation for current version [Serializer_v1.10]Unregistering ResourceManager for type Mesh
Unregistering ResourceManager for type Skeleton
Unregistering ResourceManager for type Material
Could somebody help me?

Thanks in advance.
0 x

omniyo
Gnoblar
Posts: 23
Joined: Mon Apr 25, 2011 11:04 am

Re: Blender25 Ogre Exporter + extended .scene format

Post by omniyo » Tue May 31, 2011 1:34 pm

Hello,

After fighting a bit more against the monster, i've discovered that i had a former problem: selecting just the model i wanted to export.
Once i do it, i obtain a report of the process from the exporter and it says:

WARNINGS:
.Mesh.001 has 240 vertices weighted to too many bones (Ogre limits a vertex to 4 bones) [try increasing the Trim-Weights threshold option].


I have read that this is a common problem in hands. If necessary i can post the model, it is just for testing.

1) How can increase the Trim-Weights threshold option?.
2) I obtain:
Cube.mesh.xml
Cube.skeleton
Cube.skeleton.xml
painted.png
Scene.material
walking.scene

If i solved the former problem i should obtain the .mesh too, don't I?

Thanks in advance
0 x

User avatar
LiMuBei
Goblin
Posts: 297
Joined: Mon Jun 09, 2008 3:56 pm
Location: Karlsruhe, Germany

Re: Blender25 Ogre Exporter + extended .scene format

Post by LiMuBei » Wed Jun 01, 2011 8:58 am

Usually the more-than-4-bones-per-vertex is just a warning. This might result in your animation not being displayed correctly in Ogre but shouldn't prevent the conversion to .mesh. So there must be something else that's causing your problem. You should start Blender from the command line and then export, that way you can see the output from the export script in the console. That should help debugging the issue.
0 x

Post Reply