How can I set up multiple node for attaching object

The place for artists, modellers, level designers et al to discuss their approaches for creating content for OGRE.
Post Reply
kidnaplism
Gnoblar
Posts: 4
Joined: Mon Jul 11, 2005 7:24 am

How can I set up multiple node for attaching object

Post by kidnaplism »

Hi! I have a problem about set up node for attaching object(ex. weapon
face or hair) for game character in 3Dmax . :? What should I do ? The weapon node is OK but node for changing face leg or anything is part of body I'm not sure that has it must skinned weight? I thought It's not easy to do. What the method for set up game character that have changing weapon face and the other node.Thanks a lof. :o


PS. Sorry for not good in English and thank you for reading this

Image :)
DrEvil
Halfling
Posts: 45
Joined: Fri Jan 02, 2004 6:07 am
Contact:

Post by DrEvil »

As far as I know the only way to support changable meshes on a character decently is to basically cut the character into pieces, and export each variation of the character all as one mesh so that each swappable piece is a submesh. This is what I did for an RPG a while back, see this screenshot

Image

This shows 3 variations of the mesh for our Ogre. There is a bare mesh, light armor mesh, and heavy armor mesh. In this image they are shown seperately, but in reality each mesh is split at the neck, shoulders, waist, and just below the knee to support swappable heads, chest, arms, legs, and boots.

Special attention is payed to the pieces of each to ensure that any variation of base/light/heavy meshes could be mix and matched for alot of variety.

Finally all 3 variations are on top of each other and weighted and animated appropriately and exported as 1 character mesh, sharing the same skeleton. The results create a number of sub meshes per body part which are then easy to hide/show programmatically.

Alternately you could attach armored pieces, but in the end you will likely need to do something similar anyways, since armor pieces almost always need to flex with the character, and simply attaching armor pieces to bones would result in a rigid attachment and there would be alot of penetration.

With several mesh variations like this, and hopefully many more texture variations you can end up with a good amount of variety available.
Last edited by DrEvil on Mon Jul 11, 2005 12:52 pm, edited 2 times in total.
User avatar
:wumpus:
OGRE Retired Team Member
OGRE Retired Team Member
Posts: 3067
Joined: Tue Feb 10, 2004 12:53 pm
Location: The Netherlands
x 1

Post by :wumpus: »

Also, multiple meshes can share one skeleton, this is exactly what you need for having armor/clothing move with the character.
User avatar
DrPain
Gnome
Posts: 349
Joined: Tue Jul 05, 2005 2:51 pm
Location: Connecticut, USA

Post by DrPain »

:wumpus: wrote:Also, multiple meshes can share one skeleton, this is exactly what you need for having armor/clothing move with the character.
So would you use this technique to attach a piece of armor to a skeleton? I know just enough 3DSMax to be dangerous, but I need to be able to tell the artist how to accomplish this.

Would you take the character's model, remove the mesh, leaving just the skeleton (and animations), and then model the armor on top of that skeleton? (Actually, you'd probably model the armor before removing the character's mesh) Then of course that armor would have the same animations as the character.

But then how do you attach the armor to the character's skeleton in-game? At that point the armor would have its own skeleton.

Sorry if these questions are all answered in the wiki. I read the post and all these questions came to mind, and I wanted to vomit them out while I was thinking about it.
DrEvil
Halfling
Posts: 45
Joined: Fri Jan 02, 2004 6:07 am
Contact:

Post by DrEvil »

You would have the armor as a seperate mesh weighted to the skeleton just as if it were another part of the body, Export everything together, and then in code you would hide or show that subentity. That's what we did at least.
User avatar
DrPain
Gnome
Posts: 349
Joined: Tue Jul 05, 2005 2:51 pm
Location: Connecticut, USA

Post by DrPain »

What if there are many options available for the armor? Doesn't the entire mesh get "heavy"?

If the sub-entities (pieces of armor) are hidden, do they get transformed every frame, or are they completely ignored?
DrEvil
Halfling
Posts: 45
Joined: Fri Jan 02, 2004 6:07 am
Contact:

Post by DrEvil »

I believe they are completely ignored, but I'm not 100% on that.
User avatar
Robomaniac
Hobgoblin
Posts: 508
Joined: Tue Feb 03, 2004 6:39 am

Post by Robomaniac »

.....

f you look closely, she's wearing clothes
phear hingo

My Webpage
User avatar
maxxoros
Greenskin
Posts: 130
Joined: Tue Feb 22, 2005 7:18 pm

Post by maxxoros »

friend_of_ACCU wrote:How old is she ? Why she is naked ? And why do you promote child porn here ? For me, for example, it can cause an erection. Ican't look to long.
Not a child, it s a style of 3D design, have you played or take a look at Final Fantasy 9...:)...You will know more about this style
---
kidnaplism
Gnoblar
Posts: 4
Joined: Mon Jul 11, 2005 7:24 am

Post by kidnaplism »

thanks everybody .It's very helpful :D
User avatar
Nek
Gnoblar
Posts: 21
Joined: Mon Aug 18, 2003 6:06 pm
Location: Houston, Tx
Contact:

Post by Nek »

You may want to try attaching that weapon/armor/whatever to a particular bone on the fly inside ogre itself. This way, you can switch out what the character is using at any given point in time automatically.

For example:

Code: Select all

Ogre::Entity * mEntityToAttachTo->attachObjectToBone(strUnmanagedBoneName, mEntity);
Post Reply