Page 1 of 1

Sara first attempt to make an animation for the dress

PostPosted: 06 Jul 2013, 01:41
by samuncle
Hello
I have made a first test for the dress animation when she jump.

You can test it and make suggestions.

Please remember this is still a Work In Progress. To trig the animation you have to turn.

Of course in the future this animation will be triggered when you jump.

The file
(https://mega.co.nz/#!UEwE0AiZ!cEg7AClPa ... fa6wFmTEFc

Re: Sara first attempt to make an animation for the dress

PostPosted: 06 Jul 2013, 13:44
by Totoplus62
In my opinion this is nice :). I don't really see how to improve it

Re: Sara first attempt to make an animation for the dress

PostPosted: 06 Jul 2013, 21:32
by samuncle
Thanks :)

Re: Sara first attempt to make an animation for the dress

PostPosted: 07 Jul 2013, 11:36
by Funto
I'm experimenting with exporting the dress as a separate .b3d file, and controlling its animation with the kart's speed. Could be useful for GNU as well.

Re: Sara first attempt to make an animation for the dress

PostPosted: 24 Jul 2013, 01:12
by samuncle
Ok so now animation is done. You can update your local version. At the moment the only location that trig the jump animation is the wooden jump on Amazonian journey.

Re: Sara first attempt to make an animation for the dress

PostPosted: 24 Jul 2013, 11:33
by RaceAce
Will ramps need to be set with a trigger to activate the jump animation? Or does it do it automatically? A suggestion for Konqi's animation, I think he should lean back and throw his arms out to the sides, like a "Woah!" reaction.

Re: Sara first attempt to make an animation for the dress

PostPosted: 24 Jul 2013, 17:09
by tavariz91
I think it could be good to activate the animation when the player uses a zipper + some nitro, or when it reaches a particular speed corresponding to it.
Does Sara's hair fly too? It could be nice ;)

Re: Sara first attempt to make an animation for the dress

PostPosted: 25 Jul 2013, 05:23
by hiker
RaceAce {l Wrote}:Will ramps need to be set with a trigger to activate the jump animation? Or does it do it automatically?

ATM there are two possible triggers: a jump where the estimated jump duration is longer than 0.5 seconds (can be changed in stk_config.xml). This is a somewhat rough estimation and takes only the upward-speed into account, not the actual terrain height. So it works reasonable well if you arrive at the same height that you depart. Otherwise you can set a 'jump' property to the texture used on the terrain you depart from.

Note at this stage there is some discussion if we need 'jump animation ending' support. So far we have one animation to be played when starting the jump, followed by a looped animation that is (potentially) repeated if the jump is long enough. But once the kart touches the ground again, it will immediately go to the steering animation again. This is so far my suggestion, since it's pretty difficult to estimate when a jump is going to end in advance, and a jump-animation when the kart is already on the ground (and potentially should be showing the steering animation again) appears to be an overkill to me. But as always: comments welcome :)

Oh, and you can also use the plane in Math Class for a much shorter jump.

Cheers,
Joerg

Re: Sara first attempt to make an animation for the dress

PostPosted: 26 Jul 2013, 09:07
by adarshan1
Hi sara this work is good but i felt that even the hair would have flying in the air would have looked better .

Thanks

Re: Sara first attempt to make an animation for the dress

PostPosted: 27 Jul 2013, 17:01
by samuncle
Ok so due to the request I'm trying to make an animation for her hair.

Currently as you can see there is some problem problem with the topology. So I need to change the hairs, but maybe in game you won't notice it.
Image
Image

The back looks less boring I have added more details to the costume, but it still WIP, so if you don't like something, or if you have better ideas I'm always open :).

Re: Sara first attempt to make an animation for the dress

PostPosted: 06 May 2014, 20:10
by hello_kitty
Could you share how did you change her hair eventually? Also both pictures in your last post are broken.

Re: Sara first attempt to make an animation for the dress

PostPosted: 26 May 2014, 08:35
by LiamM32
Hello. I would like some help with the programming of this. I'm just a begginner in coding (C# in Unity3D and C++ for Arduino). I've been really confused looking through the *.cpp files in my src folder. I can't figure out how the game works.
Could you please tell me which scripts cause this animation to play? I would like to experiment.

Re: Sara first attempt to make an animation for the dress

PostPosted: 05 Jun 2014, 03:43
by LiamM32
I have been trying to modify the kart_model.cpp script; so that instead of playing the animation for the set time on each jump, it would set the animation frame based on downward velocity. So that the faster she's falling, the higher her skirt would go. I'm just a beginner in programming, and I haven't contributed anything yet. But after I compiled it, the game would still play the animation as it would before. Is there something that I must do differently? Do you like my alternate idea of how this animation should work?

I added the variable "fallVel" to kart_model.cpp which comes from "getVelocity().getY()" in kart.cpp. Here are some lines that I added to kart_model.cpp starting at line 891:
{l Code}: {l Select All Code}
    if(fallVel<0.0f)    frame = m_animation_frame[AF_JUMP_START]
                              - ( (m_animation_frame[AF_JUMP_START]
                                        -m_animation_frame[AF_JUMP_END]   )*fallVel);


I should also include some script files.

Edit: I also want to ask how I can get a copy of the Sara blend file with this skirt animation. The link provided doesn't work, and the copy of her model that I have only includes steering animation.

Re: Sara first attempt to make an animation for the dress

PostPosted: 05 Jun 2014, 05:06
by hiker
LiamM32 {l Wrote}:I have been trying to modify the kart_model.cpp script; so that instead of playing the animation for the set time on each jump, it would set the animation frame based on downward velocity. So that the faster she's falling, the higher her skirt would go. I'm just a beginner in programming, and I haven't contributed anything yet. But after I compiled it, the game would still play the animation as it would before. Is there something that I must do differently? Do you like my alternate idea of how this animation should work?

The animation is triggered from kart.cpp, around lines 1320:
{l Code}: {l Select All Code}
            if(t>getKartProperties()->getJumpAnimationTime()  ||
                last_m->isJumpTexture()                         )
                m_kart_model->setAnimation(KartModel::AF_JUMP_START);


As a result of
{l Code}: {l Select All Code}
    // Check if the end animation is being played, if so, don't
    // play steering animation.
    if(m_current_animation!=AF_DEFAULT) return;

in KartModel::update(), your code is never executed (admittedly the comment is outdated - since besides the win/lose animation we also have the jump animation).

...
Edit: I also want to ask how I can get a copy of the Sara blend file with this skirt animation. The link provided doesn't work, and the copy of her model that I have only includes steering animation.

Sara (and all other .blend files) are in our media repo:
https://sourceforge.net/p/supertuxkart/ ... dia/trunk/

Cheers,
Joerg

Re: Sara first attempt to make an animation for the dress

PostPosted: 05 Jun 2014, 22:36
by samuncle
Here is my detailed answer viewtopic.php?f=17&t=5573

Re: Sara first attempt to make an animation for the dress

PostPosted: 17 Jul 2017, 07:13
by JenniferRus
velvet is really look great on women and available in elegant colors; make Women personality look perfect

Re: Sara first attempt to make an animation for the dress

PostPosted: 20 Jul 2017, 17:03
by samuncle
I'm not sure if I understood correctly :s

What's going on with velvet?
You are talking about a velvet shader?