Ogre mesh and Skeleton to Export

Anything and everything that's related to OGRE or the wider graphics field that doesn't fit into the other forums.
Post Reply
halobungie2
Gnoblar
Posts: 7
Joined: Fri Sep 12, 2014 7:06 pm

Ogre mesh and Skeleton to Export

Post by halobungie2 »

Hello,

i have two Ogre.mesh and Ogre.skeleton Files. But i can't export them, because i don't have Ogre.
Can someone export this Files to MAX or FBX for me?
If yes, please send me a email to edwin.ramses(at)gmail.com
Thanks in Advance!
Edwin
User avatar
Kojack
OGRE Moderator
OGRE Moderator
Posts: 7157
Joined: Sun Jan 25, 2004 7:35 am
Location: Brisbane, Australia
x 534

Re: Ogre mesh and Skeleton to Export

Post by Kojack »

The mesh and skeleton files in ogre are already the end result of exporting. They aren't intended to go back to modeller formats like Max.
There was an Ogre importer for Blender: http://sourceforge.net/p/ogreaddons/cod ... derimport/
but it hasn't been updated for 5 years, so probably doesn't work with the latest Blender.
halobungie2
Gnoblar
Posts: 7
Joined: Fri Sep 12, 2014 7:06 pm

Re: Ogre mesh and Skeleton to Export

Post by halobungie2 »

Hello Kojack,
This Blender Importer does not work for me.

Is it not possible in Ogre to Export this Mesh to another file?

Kind regards,
Andreas
User avatar
Kojack
OGRE Moderator
OGRE Moderator
Posts: 7157
Joined: Sun Jan 25, 2004 7:35 am
Location: Brisbane, Australia
x 534

Re: Ogre mesh and Skeleton to Export

Post by Kojack »

Ogre is a rendering library. It has no export ability, the idea is that you turn your meshes (in max or whatever) into the custom ogre mesh and skeleton format so ogre can use them. They aren't interchange formats like fbx or collada.

It wouldn't be hard to write a converter to get ogre meshes to max, especially if you use the ogrexmlconverter.exe program to turn the files from mesh to mesh.xml. However nobody has done that (as far as I know).
halobungie2
Gnoblar
Posts: 7
Joined: Fri Sep 12, 2014 7:06 pm

Re: Ogre mesh and Skeleton to Export

Post by halobungie2 »

Hello Kojack,
my problem is. I have a good looking Ogre.mesh and Ogre.Skeleton file and i can't use it because i don't use Ogre.

The Goal is to bring this to the Unreal Engine 4 or Unity.

Can you try to import this Model to Blender (with the Importer) and from there you have an Exporter?

Kind regards,
Andreas
Martell
Gnoblar
Posts: 2
Joined: Sun Sep 14, 2014 2:10 am

Re: Ogre mesh and Skeleton to Export

Post by Martell »

Hey guys,

This seems the most relevant place to post.

I have been looking at the torchlight to blender plugin.
Which is really a ogre to blender plugin based on the one you linked above.
With a changed name and a few fixes

I have been trying to add animation support with a little success.
I am able to iterate through all the .ANIMATION files and import the xml data after passing it through the ogre cmdline tool.

I am not a very experienced programmer however and I am now stuck towards the final stages.
Would anyone from the ogre team be interested in working on this with me? Or maybe even be able to fix the final features.

My latest commit and repo is here: https://github.com/martell/torchlight-t ... d3ceacea5a

Could someone from the ogre team get back to me?
Or anyone interested in helping to finish it off?

This would be a great addition to the ogre project if we could get this working

Many Thanks
Martell
User avatar
dark_sylinc
OGRE Team Member
OGRE Team Member
Posts: 5299
Joined: Sat Jul 21, 2007 4:55 pm
Location: Buenos Aires, Argentina
x 1279
Contact:

Re: Ogre mesh and Skeleton to Export

Post by dark_sylinc »

Assimp might work.
There aren't many tools for importing Ogre meshes back into other formats, because it's meant to be a final format exported from those modelling packages. Just like you can't get your .docx or .odt file back from a .pdf

Another viable option is to use the OgreXMLConverter to convert the mesh back into XML format and write yourself a Maya/Max/Blender plugin that parses the XML.
halobungie2
Gnoblar
Posts: 7
Joined: Fri Sep 12, 2014 7:06 pm

Re: Ogre mesh and Skeleton to Export

Post by halobungie2 »

Hello Dark_sylinc,
thank you for the link "assimp". I have tried out but it goes not, because it's not a ogre.xml File - it's a ogre.mesh and ogre.skeleton.

Thank you nevertheless,
Andreas
User avatar
dark_sylinc
OGRE Team Member
OGRE Team Member
Posts: 5299
Joined: Sat Jul 21, 2007 4:55 pm
Location: Buenos Aires, Argentina
x 1279
Contact:

Re: Ogre mesh and Skeleton to Export

Post by dark_sylinc »

OgreXMLConverter allows converting mesh and skeleton files back and forth to XML.
halobungie2
Gnoblar
Posts: 7
Joined: Fri Sep 12, 2014 7:06 pm

Re: Ogre mesh and Skeleton to Export

Post by halobungie2 »

Hello Dark_Sylinc,
can i send you the two Files to you, that you can Export this to xml?
Kind regards,
Andreas
User avatar
Herb
Orc
Posts: 412
Joined: Thu Jun 04, 2009 3:21 am
Location: Kalamazoo,MI
x 38

Re: Ogre mesh and Skeleton to Export

Post by Herb »

The XML converter is prebuilt and ready for you to use in any SDK download of ogre. Pretty easy to do.
Martell
Gnoblar
Posts: 2
Joined: Sun Sep 14, 2014 2:10 am

Re: Ogre mesh and Skeleton to Export

Post by Martell »

Hi guys,

The blender plugin I linked above used ogrexmlconverter to convert back to xml format.
From that then the xml is parsed to try and make sense of the model for blender

https://github.com/martell/torchlight-t ... d3ceacea5a

If we get this working correctly we would be able to export to all the formats blender supports.
halobungie2
Gnoblar
Posts: 7
Joined: Fri Sep 12, 2014 7:06 pm

Re: Ogre mesh and Skeleton to Export

Post by halobungie2 »

Hello Herb,
where can i download this XML converter?
Kind regards,
Andreas
User avatar
Herb
Orc
Posts: 412
Joined: Thu Jun 04, 2009 3:21 am
Location: Kalamazoo,MI
x 38

Re: Ogre mesh and Skeleton to Export

Post by Herb »

@halobungie2 - Just download the SDK of your choice here. For example, if you grab the 1.9 32-bit release, extract it, you'll find the OgreXMLConverter.exe in the bin/Release folder. Drag a mesh or skeleton file on top of the program and it will convert it to the XML. Drag one of the XML files on top of it to convert it back to the binary format (mesh / skeleton).
halobungie2
Gnoblar
Posts: 7
Joined: Fri Sep 12, 2014 7:06 pm

Re: Ogre mesh and Skeleton to Export

Post by halobungie2 »

Hallo Herb,
thank you SOOOOO MUCH!!!!
Now i have my Files....
Kind regards,
Andreas
Post Reply