New Maya exporter - please test

The place for artists, modellers, level designers et al to discuss their approaches for creating content for OGRE.
User avatar
skullfire
Gremlin
Posts: 150
Joined: Sat Mar 19, 2005 7:51 pm
Location: San Jose, Costa Rica
Contact:

Post by skullfire »

dorvo wrote:Well that seriously sucks. :cry:
I really don't want to have to learn another modeling package. Gah!
is there really a big difference from Maya 6.0 to MayaPLE?
dorvo
Halfling
Posts: 68
Joined: Tue Nov 02, 2004 8:01 pm

Post by dorvo »

No, there's no difference in what you can do that I've found. The restrictions for MayaPLE are that exporters apparently don't work, you can't save as anything but a .MP file format, and rendering produces a watermark over the image (this one is the biggest piss off; nothing says, "This is great artwork!" better than a huge watermark covering the friggin image!).
machinimist
Halfling
Posts: 65
Joined: Sun Feb 06, 2005 12:55 am

Post by machinimist »

there is a way to do exporters for maya PLE with mel.

you can create a gui and output all needed data into a textfield. the string size for textfields isn't limited (maybe they have forgotten to set a limit or maybe they don't care).

the user can copy and paste the content of the textfield into a textfile then and process that further. works great!
dagoose
Gnoblar
Posts: 2
Joined: Thu Apr 14, 2005 7:32 pm

Post by dagoose »

hi peoples,

I have some trouble exporting my maya6.5 char anims.
If I look at some static mesh in the ogreMeshViewer everything is fine.
First I rigged my tringulated char with final rig 1.4 (some scripts 4 rigging automation).
Trying to load this animations, the OgreMeshViewer crashes.
maybe it has to do with the setup, I just can't figure it out what's wrong.
here is the maya6.5 file if you want to look at it.

http://groovenoise.exelive.net/flash/le ... Rigged.rar

So I made a char rig by hand, and exportet it and it worked with some weired polystreches.
so I removed the headanimation (just deleted it in the graph editor) and exportet again.
now the OgreMeshViewer crashes again. arrghh what am I doing wrong plz help me.
here is also the file with the manually rigged character

http://groovenoise.exelive.net/flash/le ... Rigged.rar

thx a lot

probably you guys could post me some tips for what I really have to look for when rigging a character for the fileViewer.
If I get all the workarounds collected I'm also willing to write a small tut.
Rixeh
Greenskin
Posts: 135
Joined: Sat Nov 20, 2004 8:36 am

Post by Rixeh »

Here's what I've come up with so far...

A mesh needs to be bound to 1 skeleton only. Maya exporter will combine all the meshes together into one when you export to XML. If there are seperate pieces of a mesh attached to seperate skeletons (not of the same hierarchy), Ogre chokes and crashes.

Combine all your joints into 1 skeleton hierarchy. Add a few 'backbones', even if you're rigging a vehicle. Smooth bind the entire mesh to that skeleton (you can adjust weighting so that only the joints that *should* be affecting movement actually are).

Remember, no IK. You need to bake the IK into the skeleton as a sequence. (Create animation keys, bake, then export). FinalRig is an awesome script except it spits out a completely-IK rig. No good for ogre.

The extra step of triangulating your mesh is a real pain in the ass IMO, since the earlier 6.5 exporter didn't require you to do this.
Ezahnin
Gnoblar
Posts: 1
Joined: Wed May 11, 2005 11:35 pm

Post by Ezahnin »

Does the OGREmaya exporter convert IK animations to FK.. im assuming I read it correctly that OGRE only handles FK or has there been a change recently??

Sorry if the question is juvenile, im very new to Ogre, very new to Maya, and somewhat new to animations <smiles>..
Rixeh
Greenskin
Posts: 135
Joined: Sat Nov 20, 2004 8:36 am

Post by Rixeh »

Not that I know of, gotta bake it manually. Sinbad's XSI exporter does this for you, but ogre doesn't do Ik at all.
User avatar
bisco
OGRE Contributor
OGRE Contributor
Posts: 235
Joined: Wed Nov 03, 2004 5:01 pm
Location: London, United Kingdom

Post by bisco »

Well, actually there is no need for baking. The exporter sets currentTime to each keyframe in sequence and just reads out the position matrix for every joint at each frame. Basically it does an automatic baking....
You can use whatever you want, in the end the exporter will go look for that matrix no matter what you use. There might be problems with grouped joints though.... Still have to test a bit
Rixeh
Greenskin
Posts: 135
Joined: Sat Nov 20, 2004 8:36 am

Post by Rixeh »

:shock: :shock:
User avatar
bisco
OGRE Contributor
OGRE Contributor
Posts: 235
Joined: Wed Nov 03, 2004 5:01 pm
Location: London, United Kingdom

Post by bisco »

I was talking about the new Maya exporter, just in case we are talking about different things :)
User avatar
tu5ka
Gnoblar
Posts: 18
Joined: Thu Apr 14, 2005 1:56 pm

Post by tu5ka »

We had allready non-triangulated, skinned characters which were exported with the old exporter (ogreExport.mll). Now i tried exporting with the new exporter (ogreExporter.mll) and managed to get one character exported by triangulating the mesh and then under animation toolbar >> Skin/edtit smooth skin/delete non-skining history.

...ill do further testing.
------------------
www.tu5ka.com
User avatar
tu5ka
Gnoblar
Posts: 18
Joined: Thu Apr 14, 2005 1:56 pm

Post by tu5ka »

tu5ka wrote:...ill do further testing.
well... still i only get it to work with baked animations.
------------------
www.tu5ka.com
User avatar
tu5ka
Gnoblar
Posts: 18
Joined: Thu Apr 14, 2005 1:56 pm

Post by tu5ka »

...and skeletons that is only skinned to one mesh works with delete non-skinning history. This is a Maya problem though, not an exporter problem. Guess i'll have to reskin some characters. ;)
------------------
www.tu5ka.com
User avatar
bisco
OGRE Contributor
OGRE Contributor
Posts: 235
Joined: Wed Nov 03, 2004 5:01 pm
Location: London, United Kingdom

Post by bisco »

Hey everyone,
a new version of the exporter should soon be available on the site.
ogreExporter_6.5d and ogreExporter_6.0d.
6.0 version will come along shortly due to minor API changes.

Improvements:
- no need to delete history
- non-hierarchical skeletons supported
- constrained skeletons supported
- possibility to export in object space (static objects only at the moment, there are some problems with the skeletons still)

Please try it and let me know

bisco
User avatar
bisco
OGRE Contributor
OGRE Contributor
Posts: 235
Joined: Wed Nov 03, 2004 5:01 pm
Location: London, United Kingdom

Post by bisco »

@dagoose: with the new version of the exporter I succeeded exporting your character both in the manual and in the script-rigged version. Hope it works fine for you now... :)
User avatar
bisco
OGRE Contributor
OGRE Contributor
Posts: 235
Joined: Wed Nov 03, 2004 5:01 pm
Location: London, United Kingdom

Post by bisco »

b.t.w., in previous post I meant "5.0" version will come along shortly :mrgreen:
User avatar
sinbad
OGRE Retired Team Member
OGRE Retired Team Member
Posts: 19269
Joined: Sun Oct 06, 2002 11:19 pm
Location: Guernsey, Channel Islands
x 67
Contact:

Post by sinbad »

Downloads for Maya 6.0 and 6.5 are updated, thanks bisco.
Rixeh
Greenskin
Posts: 135
Joined: Sat Nov 20, 2004 8:36 am

Post by Rixeh »

bisco wrote: Improvements:
- no need to delete history
- non-hierarchical skeletons supported
Excellent! I kept forgetting to delete history before binding... ;) Non-hierarchy bones are great too, when I was doing vehicles I had to do a full skeleton including backbone.. ;)

Nice one!
User avatar
tu5ka
Gnoblar
Posts: 18
Joined: Thu Apr 14, 2005 1:56 pm

Post by tu5ka »

Great! Now i won't have to re-skin :) Thanks!
------------------
www.tu5ka.com
User avatar
tu5ka
Gnoblar
Posts: 18
Joined: Thu Apr 14, 2005 1:56 pm

Post by tu5ka »

is it possible to export skeletons with animations but without the mesh?

im about to do some copy/paste in to my main skeleton.xml- file and add some new animations to it, but i cant get the animated skelleton export properly, all i get is an .skeleton.xml-file with empty tags.

I get Command is not undoable in Command Feedback. :?
------------------
www.tu5ka.com
User avatar
bisco
OGRE Contributor
OGRE Contributor
Posts: 235
Joined: Wed Nov 03, 2004 5:01 pm
Location: London, United Kingdom

Post by bisco »

Well it's possible but you'll have to select the mesh which is linked to the desired skeleton, then uncheck the option export mesh and check only the export skeleton and animations options.

The problem is that right now skeletons are accessed through the skinCluster connected to the selected meshes.

If you think it would be useful I could add the option to export selected skeletons even if they're not connected to any mesh...

The "command is not undoable" message is normal, you get it also with succesful exports. Don't know why, it started showing only recently :shock:
User avatar
tu5ka
Gnoblar
Posts: 18
Joined: Thu Apr 14, 2005 1:56 pm

Post by tu5ka »

Ahh.. ok! I guess i shouldn't have deleted the mesh from the scene. ;) No, it's not necessary for me to have suchs functionality, iv'e got files with meshes, so it should work just fine. Thanks for your help!
------------------
www.tu5ka.com
joi
Gnome
Posts: 327
Joined: Tue Feb 22, 2005 8:11 pm
Location: brazil

Post by joi »

hello, does any one have a clue why my exported meshes are looking like this ?

Image

both maya 6.0 and 6.5 exporters are looking the same... help me :(

i really need this solved quickly :roll:

thanks in advance

joe
Last edited by joi on Tue May 31, 2005 8:04 pm, edited 1 time in total.
maya 7.0, vs 2005, ogre 1.2
User avatar
bisco
OGRE Contributor
OGRE Contributor
Posts: 235
Joined: Wed Nov 03, 2004 5:01 pm
Location: London, United Kingdom

Post by bisco »

looks like the meshes are not triangulated,
right now you have to triangulate everything before exporting, I'm working to include the auto-triangulation from the old plug-in, but right now I'm sorry you'll have to triangulate it yourself.
B.t.w. right now only one material per mesh (work in progress to support per-face materials too :))
joi
Gnome
Posts: 327
Joined: Tue Feb 22, 2005 8:11 pm
Location: brazil

Post by joi »

Yeah, it was a triangulate problem... after the triangulate everything worked fine! :twisted:

Thanks! Will keep you posted if i find any glitches... :)
maya 7.0, vs 2005, ogre 1.2
Post Reply