Sara first attempt to make an animation for the dress

Sara first attempt to make an animation for the dress

Postby samuncle » 06 Jul 2013, 01:41

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
Image
User avatar
samuncle
STK Moderator
 
Posts: 736
Joined: 16 Mar 2010, 21:28

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

Postby Totoplus62 » 06 Jul 2013, 13:44

In my opinion this is nice :). I don't really see how to improve it
"Imagination is more important than knowledge." Features under CC-BY 3.0, CC-BY-SA 3.0 or equivalent GNU license
Image SuperTuxKart Popularity
User avatar
Totoplus62
 
Posts: 583
Joined: 10 Nov 2012, 13:33
Location: France - Pas-de-Calais

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

Postby samuncle » 06 Jul 2013, 21:32

Thanks :)
Image
User avatar
samuncle
STK Moderator
 
Posts: 736
Joined: 16 Mar 2010, 21:28

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

Postby Funto » 07 Jul 2013, 11:36

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.
Funto
 
Posts: 459
Joined: 09 Dec 2009, 13:47
Location: Bordeaux, France

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

Postby samuncle » 24 Jul 2013, 01:12

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.
Image
User avatar
samuncle
STK Moderator
 
Posts: 736
Joined: 16 Mar 2010, 21:28

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

Postby RaceAce » 24 Jul 2013, 11:33

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.
Bananas are yummy
User avatar
RaceAce
 
Posts: 152
Joined: 23 Jun 2012, 12:21
Location: The North Pole (give or take 2700 miles)

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

Postby tavariz91 » 24 Jul 2013, 17:09

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 ;)
"I do not agree with what you say, but I will fight up to death so that you have the right to say it"
- Voltaire
User avatar
tavariz91
 
Posts: 146
Joined: 03 Apr 2013, 11:22
Location: Lausanne, in my Sweet Zerland

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

Postby hiker » 25 Jul 2013, 05:23

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
Image
hiker
STK Moderator
 
Posts: 1417
Joined: 07 Dec 2009, 12:15
Location: Melbourne, Australia

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

Postby adarshan1 » 26 Jul 2013, 09:07

Hi sara this work is good but i felt that even the hair would have flying in the air would have looked better .

Thanks
adarshan1
 
Posts: 1
Joined: 26 Jul 2013, 09:03

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

Postby samuncle » 27 Jul 2013, 17:01

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 :).
Image
User avatar
samuncle
STK Moderator
 
Posts: 736
Joined: 16 Mar 2010, 21:28

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

Postby hello_kitty » 06 May 2014, 20:10

Could you share how did you change her hair eventually? Also both pictures in your last post are broken.
hello_kitty
 
Posts: 3
Joined: 06 May 2014, 20:05

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

Postby LiamM32 » 26 May 2014, 08:35

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.
LiamM32
 
Posts: 54
Joined: 26 May 2014, 08:09

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

Postby LiamM32 » 05 Jun 2014, 03:43

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.
Attachments
kart_model.hpp
Line 234:
void update(float dt, float rotation_dt, float steer,
const float height_abve_terrain[4], float speed, float fallVel);
(14.33 KiB) Downloaded 44 times
kart.cpp
Changed line 2531:
m_kart_model->update(dt, m_wheel_rotation_dt, getSteerPercent(),
height_above_terrain, m_speed, getVelocity().getY());
(96.17 KiB) Downloaded 46 times
kart_model.cpp
Line 785:
void KartModel::update(float dt, float rotation_dt, float steer,
const float height_above_terrain[4], float speed, float fallVel)
Line 891:
if(fallVel<0.0f) frame = m_animation_frame[AF_JUMP_START]
- ( (m_animation_frame[AF_JUMP_START]
-m_animation_frame[AF_JUMP_END] )*fallVel);
(37.36 KiB) Downloaded 48 times
LiamM32
 
Posts: 54
Joined: 26 May 2014, 08:09

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

Postby hiker » 05 Jun 2014, 05:06

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
Image
hiker
STK Moderator
 
Posts: 1417
Joined: 07 Dec 2009, 12:15
Location: Melbourne, Australia

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

Postby samuncle » 05 Jun 2014, 22:36

Here is my detailed answer viewtopic.php?f=17&t=5573
Image
User avatar
samuncle
STK Moderator
 
Posts: 736
Joined: 16 Mar 2010, 21:28

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

Postby JenniferRus » 17 Jul 2017, 07:13

velvet is really look great on women and available in elegant colors; make Women personality look perfect
JenniferRus
 
Posts: 1
Joined: 17 Jul 2017, 07:12

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

Postby samuncle » 20 Jul 2017, 17:03

I'm not sure if I understood correctly :s

What's going on with velvet?
You are talking about a velvet shader?
Image
User avatar
samuncle
STK Moderator
 
Posts: 736
Joined: 16 Mar 2010, 21:28

Who is online

Users browsing this forum: Bing [Bot] and 1 guest