Bones - Skeletal and Pose animations for jPCT

Started by raft, January 06, 2010, 11:45:01 PM

Previous topic - Next topic

Babu

thanks, raft. :)
I had in fact asked a single file from my artist (based on your previous suggestion) ... just waiting for the file from my artist...  meanwhile thought of trying out the multiple files that I had with me...
I'll check the single file out once I get the file and then get back to you.

Babu

Quote from: raft on April 15, 2011, 05:51:18 PM
2) Is it possible to link each of these meshes to different textures??
yes of course, they are seperate objects

I was thinking that each mesh would have got loaded as an Animated3D.  So I thought of iterating through the AnimatedGroup and assign the appropriate textures to corresponding objects using the object names.  But I found that the objects don't have any specific name, but object3, object4 and so on.   :(
Is there a better way to find the object that one's looking for?

raft

i see. the names you see is given by jPCT.

looking at Ogre docs, i've found that Ogre supports -optional- submesh names. jME Ogre loader looks for that element in mesh.xml file and sets names of submeshes accordingly. if it cannot find name, its sets a name itself just like jPCT.

I've started importing names from Ogre and Collada. I've added a method to AnimatedGroup to get an Animated3D by name: AnimatedGroup.get(name).

have a look at export options. possibly there is an option to give a name to an object.

i've updated the zip. please re-download

Babu

hi raft,
thanks a lot for the new API; that would my save my iteration stuff. ;D

Today, I was working with our artist to get all the meshes exported to a single .xml file.
Our artist is using OgreMax exporter (http://www.ogremax.com/downloads) to export from Maya.  This OgreMax exporter doesn't seem to give an option to export to a single .xml file.
Then we downloaded another Maya Exporter from http://www.ogre3d.org/forums/viewtopic.php?f=8&t=63214.  But with this we could only get the object format and not the xml one.
Then we downloaded OgreXMLConverter from http://www.ogre3d.org/tikiwiki/OgreXmlConverter&structure=Tools.  When tried in our artist's windows machine, it gave some error related to the absence of some serializer.
When tried in my mac, I got the following error
dyld: Library not loaded: @executable_path/../Frameworks/Ogre.framework/Versions/A/Ogre
  Referenced from: /Eng-Repo/Reference/Graphics/Skeletal-Animation/Tools/./OgreXMLConverter
  Reason: image not found
Trace/BPT trap

Do you have any idea what's going on??

raft

i'm surprised that OgreMax for Maya doesn't support exporting many objects. OgreMax for 3ds Max is quite successful. what happens if you select many objects and do export selected?

I used Ogre converter at Ubuntu without any problems. don't know about mac.

I'm out now. I will think about this

raft

I once encountered serializer related error with Ogre converter. can't remember windows or Ubuntu.  it turned out to be version mismatch.

Babu

Quotei'm surprised that OgreMax for Maya doesn't support exporting many objects. OgreMax for 3ds Max is quite successful. what happens if you select many objects and do export selected?

OgreMax, in fact, supports exporting many objects.  Only that it doesn't give an option to export them into a single xml file.  It generates multiple pairs of "mesh.xml and skeleton.xml" files, a pair each for an object.  i.e. for upper-body, it generates upper.mesh.xml and upper.skeleton.xml and for lower-body, it generated lower.mesh.xml and lower.skeleton.xml.

The exporter from ogre3d.org is able to generate a single .mesh file for all the objects; but we ran into problem when trying to convert that .mesh into .xml  ::)

raft

send me your mesh.xml and skeleton.xml pairs and let me have look what i can do.


raft

i cant see any files in that folder. i've sent you my email. email me the files please

Babu

sorry, raft.  My bad  :-[.
By mistake I sent the link for the folder instead of the documents.
The mesh files are really huge and so I wouldn't able to send them in mail attachments.  However I have sent the proper links this time to you by mail.

raft

i've written a method to merge Animated3D's in different groups. but to work properly it needs groups have identical skeletons. looking at your files, i see skeletons differ in number of joints.

are you sure, your artist have one skeleton and attach all objects to it? it must be so, otherwise merging groups has no meaning. also this may be the reason you cannot export many objects to same file.

you can still use it this way, but without merging groups. you need to move and animate body, top and shirts together by yourself.

Babu

yesterday, when I was working with our artist, I got is confirmed that he is using a single skeleton.  But it's the OgreMax exporter that exports multiple skeletons... seems that it picks up the joints corresponding to the mesh its exporting.

we can try one more thing: I will get the single .mesh and .skeleton generated by the other exporter.  If your ogre2XML converter is working fine, may be we can try converting them to .xml files  ???

raft

Quote
yesterday, when I was working with our artist, I got is confirmed that he is using a single skeleton.  But it's the OgreMax exporter that exports multiple skeletons... seems that it picks up the joints corresponding to the mesh its exporting.
maybe there is an option like "export unused joints" ?

Quotewe can try one more thing: I will get the single .mesh and .skeleton generated by the other exporter.  If your ogre2XML converter is working fine, may be we can try converting them to .xml files  ???
we can try this, but only once ;) i cant do it all the time for you.

Ogre also has an OgreMeshUpgrade tool, to upgrade mesh file to latest version. try using that before using OgreXMLConverter. if it doesnt help send me your mesh files.

Babu

Quotemaybe there is an option like "export unused joints" ?
Ok, I will ask my artist to explore this.

QuoteOgre also has an OgreMeshUpgrade tool, to upgrade mesh file to latest version. try using that before using OgreXMLConverter. if it doesnt help send me your mesh files
My OgreXMLConverter doesn't even launch.  It doesn't even show usage options.  I will try to explore ogre3d forum.  :(

Quotewe can try this, but only once  i cant do it all the time for you.
Thanks a lot.  Even doing once would be great  ;D.  I've just mailed you the .mesh and the .skeleton files.