Page 1 of 1

STK 0.8.1 trailer...

PostPosted: 27 Nov 2013, 23:30
by Danfun64
How was it made? How were the camera effects done? Can we (the players) replicate/recreate the trailer or make similar videos yet?

Re: STK 0.8.1 trailer...

PostPosted: 28 Nov 2013, 00:13
by Auria
I will let Totoplus answer, but several of the shots can be done using Artist Debug Mode : http://supertuxkart.sourceforge.net/Artist_Debug_Mode

Re: STK 0.8.1 trailer...

PostPosted: 28 Nov 2013, 03:34
by samuncle
Unfortunately some sequences were filmed with a custom modification in the engine. However with the artist mode you will be able to make great videos :).

Re: STK 0.8.1 trailer...

PostPosted: 28 Nov 2013, 15:54
by SuperMat
samuncle {l Wrote}:custom modification in the engine

Maybe it's possible to share these modifications, STK is open source ;)

Re: STK 0.8.1 trailer...

PostPosted: 28 Nov 2013, 21:16
by Tuxfan
By the way - the trailer seems to be a great success. It is used in many publications about the current release.

Re: STK 0.8.1 trailer...

PostPosted: 28 Nov 2013, 22:16
by Totoplus62
I will make explanations very very soon, but i have lot's of work tonight.

Re: STK 0.8.1 trailer...

PostPosted: 30 Nov 2013, 01:24
by Totoplus62
To record the game, i use Recordmydesktop (I'm using Ubuntu)
You need to download game files and be able to compile your own binary
In the terminal :
{l Code}: {l Select All Code}
svn checkout svn://svn.code.sf.net/p/supertuxkart/code/main/trunk stk


Then when you want to compile:
{l Code}: {l Select All Code}
cd stk
mkdir cmake_build
cd cmake_build
cmake ..
make -j2

You have to use artist debug mode to fly http://supertuxkart.sourceforge.net/Artist_Debug_Mode
If you want to make some shots where you can see your kart and opponent's kart without the Gui: you need to edit "input_manager.cpp" (stk/src/input/input_manager.cpp) and compile the game again.
{l Code}: {l Select All Code}
input_manager.cpp
===================================================================
--- input_manager.cpp   (revision 14186)
+++ input_manager.cpp   (working copy)
@@ -233,9 +233,9 @@
                     const int count = World::getWorld()->getNumKarts();
                     for (int n=0; n<count; n++)
                     {
-                        if(World::getWorld()->getKart(n)->getController()->isPlayerController())
-                            World::getWorld()->getKart(n)->getNode()
-                                ->setVisible(gui->m_enabled);
+                        //if(World::getWorld()->getKart(n)->getController()->isPlayerController())
+                        //    World::getWorld()->getKart(n)->getNode()
+                        //        ->setVisible(gui->m_enabled);
                     }
                 }
                 else

Comment out the three lines (if statement, and setVisible call).


The most difficult is to make the AI do what you want; taking control of the kart in artist debug mode is also difficult : don't forget to brake if you want to stabilize the flying kart (physic is a bit weird while flying but with patience you can do lot's of things).
Then if you want to change the camera just edit stk_config.xml the way you want (with Pluma for example).
{l Code}: {l Select All Code}
<!-- Camera: Distance between kart and camera.
         forward-up-angle: Angle between camera and plane of kart (pitch)
                 when the camera is pointing forward
         backward-up-angke: Angle between camera and plane of kart (pitch)
                 when the camera is pointing backwards. This is usually
                 larger than the forward-up-angle, since the kart itself
                 otherwise obstricts too much of the view.  -->
    <camera distance="1.5" forward-up-angle="15"
            backward-up-angle="30"/>


I used Power Director 11 for video editing but I'll probably move to something more powerful in the future.

If you need more details, feel free to ask me.

Re: STK 0.8.1 trailer...

PostPosted: 30 Nov 2013, 11:26
by Funto
Totoplus62, you are really patient for making a video that way :D That must have taken a looong time...