Skip to content

RenanMsV/ac3d-syntax-vscode

Repository files navigation

AC3D Syntax and Snippets for Visual Studio Code

ac3d-logo

Version Rating Downloads Build Status GNU General Public License

Basic syntax highlighting and snippets for AC3D files.

AC3D is mostly used for making 3d models of aircrafts and buildings for X-Plane and FlightGear flight simulators.

The AC3D file format is ascii text and is very simple to parse. It's also very easy to generate AC3D files from your own data. This extension highlights the structure of AC3D files. AC3D filenames usually have a '.ac' suffix.

AC3D file format:

AC3Db
MATERIAL %s rgb %f %f %f  amb %f %f %f  emis %f %f %f  spec %f %f %f  shi %d  trans %f (used in AC3Db)
MAT %s (this block used in AC3Dc)
rgb %f %f %f
amb %f %f %f
emis %f %f %f
spec %f %f %f
shi %d
trans %f
data %d
lines of data
ENDMAT
OBJECT %s
*name %s
*data %d
*data lines of %s
*texture %s
*texrep %f %f
*texoff %f %f
*subdiv %d
*crease %f
*rot %f %f %f  %f %f %f  %f %f %f
*loc %f %f %f
*url %s
*hidden
*locked
*folded
*numvert %d
    numvert lines of %f %f %f
*numsurf %d
    *SURF %d
    *mat %d
    refs %d
    refs lines of %d %f %f
kids %d

More info: