Difference between revisions of "Track files and formats"
(Import from http://timothyfurlong.co.uk/vdrift/wiki/index.php?title=Track_files_and_formats (not sure where it went in the old export))
Revision as of 03:16, 1 September 2012
VDrift's tracks are composed of 3D-modeled objects in .JOE format, PNG graphic files for textures, and text files describing the objects and track.
The files that define each track are within the data/tracks/trackname/ directory, where trackname is the "short name" of the track.
Simple text file with the track's full name as the first line. Credits may be on following lines.
This file defines the road surface for the track. It is generated by the track editor. Following is the format of this file:
<number_of_roads> <number_of_Bezier_patches_for_the_1st_road> Control point coordinates of Bezier patch 1 (total 16 points) Control point coordinates of Bezier patch 2 (total 16 points) . . . . <number_of_Bezier_patches_for_the_2nd_road> Control point coordinates of Bezier patch 1 (total 16 points) Control point coordinates of Bezier patch 2 (total 16 points) . . . . <and so on>
This is a 512x512 PNG graphic file that is displayed in the menu when selecting the track to race on.
This file defines various track parameters. This file is in VDrift's Configfile format.
The PNG files have names corresponding to the object they belong to. These are the textures for the 3D model objects that make up the track.
This is a plain text file that defines the relationship between objects and textures, and also sets object properties. It is generated and edited with the Listedit tool which is part of the Track editor tools.
A description of each field in the list.txt file can be found at the following location: http://svn.vdrift.net/viewvc.cgi/trunk/listedit/format.txt?root=VDrift+Track+Editor&view=co