PiBoSo Official Forum

GP Bikes => Mods => Topic started by: PiBoSo on July 24, 2020, 10:00:59 PM

Title: Rider animations
Post by: PiBoSo on July 24, 2020, 10:00:59 PM
At this link it is possible to download the skeleton of the rider in FBX format: https://www.gp-bikes.com/downloads/gpb_rider_templates.zip

When importing the FBX file in 3dsmax, please make sure to not convert the bones to dummy.

Conversion tools:
http://www.gp-bikes.com/?page=downloads

When exporting the FBX file from Blender, please make sure that the Primary Bone Axis is set to "X Axis" and the Secondary Bone Axis is set to "-Z Axis".

List of animations names ( hardcoded ):
leaning braking
leaning
leaning accelerating
headlean braking
headlean
headlean accelerating
leaning standing *
headlean standing *
dangling leg left *
dangling leg right *
Clutch
Clutch Blend
Raise Arm
Complaint
Frustration
Celebration
Throttle
Front Brake
Front Brake Blend
left foot start
left foot stop
right foot start
right foot stop
both feet start
both feet stop
push forwards
push backwards
LookBack Left
LookBack Left Stop
LookBack Right
look left
look right
Tearoff
Tearoff Speed
Detach Left
Detach Right
Slide
Slide Stop
The animations marked with '*' are optional. If missing, they are disabled.

While a script is not strictly needed to export an animation ( by default all the keys are exported as one animation ), in practice a script is needed, to set the bones' weight and to split a single MAX file into multiple animations.
Script example:
[params]
type=4

[Hierarchy]
split = 1
rotation = 0 180 0

Point01 = rider.anm

[animation]
split=1
config=animations_lean.txt

"animations_lean.txt" file content:
num_animations = 2
animation0
{
    name = leaning
    start = 0
    end = 50
}
animation1
{
    name = headlean
    start = 0
    end = 50
}

leaning
{
    weight0
    {
        obj = Point01
        weight = 1
    }
    weight1
    {
        obj = riderRIG_Neck1
        weight = 0
    }
    weight2
    {
        obj = riderRIG_RightWrist
        weight = 0
    }
}
headlean
{
    weight0
    {
        obj = Point01
        weight = 0
    }
    weight1
    {
        obj = riderRIG_Neck1
        weight = 1
    }
}
Please note that, when setting the weight for a bone, the whole hierarchy below it is set to the same value as well.
This feature is useful to avoid setting the weight for all individual bones.
Also, please note that it is possible to set "start" to a value higher that "end", to invert the animation.
Title: Re: Rider animations
Post by: Myst1cPrun3 on July 25, 2020, 12:15:08 AM
Cheers Piboso!

Amazing will have to have a look into this!

Are there 'base'animations in the fbx file already, or do we have to start from scratch on them?

If we do have to start from scratch it'd be useful to have a screenshot of each animation in use, just to get a baseline of where the rough parts should be.

Title: Re: Rider animations
Post by: x1mk_z3 on July 25, 2020, 11:05:28 AM
thank you piboso. :D
Title: Re: Rider animations
Post by: PiBoSo on September 18, 2020, 09:21:37 PM
First post updated to add information about scripts.
Title: Re: Rider animations
Post by: PiBoSo on October 05, 2021, 02:40:49 PM
First post updated to add a link to the conversion tools, that have been moved to a separate download.
Title: Re: Rider animations
Post by: Bunta Fujiwara on June 30, 2023, 06:04:44 PM
i cant open your skeleton on blender. it sais "version 6100 un supported it shoulfd be 7100 or later".
Title: Re: Rider animations
Post by: Bunta Fujiwara on July 02, 2023, 03:47:07 PM
ok i fuigured how to open it