racer home

Building an endless track

 

Home Building your own track gives the best results probably.


Dolphinity Organiser - free planning, project management and organizing software for all your action lists

Creating an endless track

With Racer v0.8.36+ you can create tracks that never end, a so-called endless track. It is mostly just a generic track, but your car is stuck within a rectangular area and will wrap to stay in this area.

This does mean that there are some limitations:

Modifying your track to become endless - ini adjustments

To create an endless track you need to add a bit to your track's special.ini file. First, set timeline.point_to_point to 0. Although an endless track seems modeled like an A-B (point to point) track, it really is an infinite piece of road. A-B tracks would trigger restarts each time you cross the finish line for example.

endless
 {
   ; Endless road area
   min
   {
     x=-100
     y=-100
     z=-1500
   }
   max
   {
     x=100
     y=100
     z=0
   }
}
This is the rectangle (box rather, since it's in 3D) in which your car is kept. As soon as you drive outside of this box, it is reset to the other side.
To avoid the sky moving as you get wrapped, make sure it's geometry moves along with the camera, for example, in geometry:
sky_0_sky
{
   file=sky_0_sky.dof
   ; Move with camera to avoid pop
   flags=64+8
}
Note that the funny sky name above was caused by splitting of the track.


Modifying your track to become endless - 3D model adjustments

The endless track is modeled as normal, but you have to clone the area near the start and end to provide a clean wrap. The key here is your visibility, which is often around 1000 to 1500 meters (defined in racer.ini under fx.visibility).

First, create your track as usual. Then clone the first and last 1000 upto 1500 meters and add it to your track model. This makes sure that you see everything ahead and behind you when you are near the endless area (as defined in special.ini, see above).


 
Dolphinity Organiser - free planning, project management and organizing software for all your action lists

(last updated November 13, 2012 )