Game Development Community

Multiple models under one skeleton

by Stephen · in Artist Corner · 12/06/2005 (5:11 pm) · 7 replies

Is it possible to have a basicskeleton for seven different meshes...but also resize them?..im creating an action adv rpg and you get to pic between races but i want to see if i could animate one skeleton for all human types and then another skeleton for any beast types....but some of the human races will be sized differently...any takers?

#1
12/06/2005 (5:41 pm)
Dunno if this is quite what you're after but
you can scale the players in-game via script:

%player.setScale("1.5 1.5 1.1"); // make the player much wider and slightly taller.

or probably even in player.cs
#2
12/06/2005 (6:01 pm)
That also keeps the animations scaled with the model in game?
#3
12/06/2005 (6:02 pm)
I believe so.
like, you can make a HUGE person and they do what you would want.
that is,
the bone-weighting for each vertex isn't affected by the scale.

try it out on the Orc in the stock demo.
#4
12/06/2005 (8:06 pm)
Thanks alot
#5
12/07/2005 (11:53 am)
Be aware that lighting doesn't work well with scaled objects.
#6
12/07/2005 (2:16 pm)
Huh,
in what way ?
what amounts of scale start to be trouble ?

also this scale is applied after any skeletal animation,
so if you scale the player to be twice as tall,
their arm will be twice as long with arm straight up,
but twice as thick with arm horizontal.

there's a resource for doing better, pre-skeletal animation body scaling somewhere..
#7
12/08/2005 (11:40 am)
@ Thomas
So your saying that if the character selection screen allows for bone scaling to allow more model look freedom -it will screw the lights on said models ?