Making Tracks: Decorations

Adding decorations is a long process. It will take many iterations of testing in-game until you can be sure everything is in the right place. This article describes not only the best ways to position decorations, but also ways to make decorations dynamic and interesting, and to keep processor load down.

Guidelines for Decoration Placement

Around the Starting Line

Decorations should clearly mark the starting line. This could be an arch like in Cocoa Temple, an overhead sign, or even just a checkered line. Avoid misleading the player with decorations which look like a starting line, but aren't, as in Hacienda: The entry archway looks very much like a starting line, but actually is not.

Around Shortcuts or Alternate Routes

Shortcuts and alternate routes should be somewhat disguised, unless they are very short (e.g. two paths around an object). The village in Cocoa Temple is an excellent example of this: there are two alternate routes within the village, but they are not very noticeable unless you pay attention. Hiding alternate routes makes the player feel accomplished when he or she discovers them, and makes it more of a challenge to get the reward.

Along the Main Track

The track should not just be a boring loop with some pretty scenary on the sides. The scenery needs to integrate with the track. For example, don't make a mountain next to the track—make it over the track, and build a tunnel. Things like this make the track more interesting and less like driving through a museum with everything behind plexiglas. (This is also why it can be difficult to build an interesting underwater track—everything really is behind glass.)

However, don't make your track unnecessarily confusing. Integrate your track too much and it will be impossible to tell what is track and what is decorations. STK Enterprise strikes a nice balance between integration and easy drivability. If it's harder for other people to figure out where to go in your track than in STK Enterprise, you might want to reconsider some of your decoration placements.

As Obstacles

You may put decorations directly on the track if you wish, as with the crates of TNT in Old Mine. However, when doing this, be sure that they interact with karts in a sensible way. (See Physics section.)

Multiple Copies of a Decoration

If you have one decoration that is used multiple times throughout your track and it is not from the media repository, you can save space by making it a separate object. In the SuperTuxKart Object Properties panel for each of the objects, set its type to "Object" and set the the "Name" property to the same name for each of the duplicates.

If you are using LOD for your duplicated objects (see the Level of Detail module), you do not have to worry about this.

Decorations from the Media Repository

You should use decorations from the media repository whenever possible. They can be guaranteed to to match the style of SuperTuxKart, use advanced graphical effects to ensure that they look good, and save you work, since you don't need to make and texture all your models. If you have not already checked out the media repository, see the Media Repo page.

To use a model from the media repository, in Blender, in the Info window, go to File > Link. Navigate to the library folder in the media repo, find an object, then open the .blend file. In the "Object" folder, open the object that you want. (There should usually only be one object per .blend, unless the library node uses Level of Detail.) Make it a proxy by going to Object > Make Proxy in the 3D View window header so that you can move, rotate, and scale it.

When you duplicate a library object in your scene, be sure to use Alt + D (link duplicate) rather than Shift + D (actual duplicate). If you use an actual duplicate, the object will no longer be linked to the library.

Editing Decorations from the Media Repository

Usually, objects from the media repo are good enough and can be scaled, rotated, or repositioned to fit as you need. However, if necessary, you can use File > Append instead of File > Link in the instructions above to actually import the object into your scene. This is not recommended, but you may do this under certain circumstances, if the edits you plan to make could not be put in the media repo itself.