![]() AC3D filenames usually have a '.ac' suffix. This extension highlights the structure of AC3D files. It's also very easy to generate AC3D files from your own data. ![]() ![]() The AC3D file format is ascii text and is very simple to parse. The following file types are supported for import into Augment3d.AC3D Syntax and Snippets for Visual Studio Codeīasic syntax highlighting and snippets for AC3D files.ĪC3D 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.ĭWG files may not include material data.The unofficial guide to the complete Inivis AC3D fileformat specification (This document last updated 13th March 2017).SKP imports from SketchUp will include colors and models only, and exclude materials.Types with an asterisk (*) have additional notes below. This document describes the structure of AC3D files. Some simple examples are included at the end. This loader does not support loading behavior, since the AC3D modeling tool and file format do not provide facilities for scripting automated behavior (such. (HEADER) (Materials - the palette) (objects)Īn AC3D file always starts with a header line e.g.: AC3D filenames usually have a '.ac' suffix. The first four characters are always 'AC3D' the next hex number following immediately defines the internal version of the file (0xb = 11). If the version is later than the program knows about then it may refuse to load it. Read the header (AC3Dx) while not end of file To parse an AC3D file you need something like this: #AC3D FILE CODE#Īs new versions of the AC3D file format evolve, this number is used to make the loading code backwards compatible. %f indicates a floating point value, %d an integer and %s a string (must be surrounded by quotes " if it contains spaces). Lines beginning with a '*' indicate an optional section. 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 The indentation is used to show the structure of the file - a real AC3D file has no indentation. MATERIAL (name) rgb %f %f %f amb %f %f %f emis %f %f %f spec %f %f %f shi %d trans %f Rgb - diffuse color amb - ambient color emis - emissive color spec - specular spot color shi - specular spot size (higher number means smaller spot) trans - transparency Materials are defined differently in AC3Db and AC3Dc. MAT (name) 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 The first "MATERIAL" in the file will be indexed as zero. These are referenced by the "mat" token of a surface. The first "MAT" in the file will be indexed as zero. The materials are usually all specified at the start of the file, immediately after the header. Usually contains an description or notes about a material. The parameter is an integer which specifies the number of characters (starting on the next line) to be read, newlines can be used also. But the converter can do even more: STL files for 3D printing, OBJ files for. The end of the object section must be a 'kids' line which indicates how many children objects (may be zero) follow. Convert AC3D files quickly and easily to STL files, online and completely free. The parameter is the object type - one of: world, poly, group and light. Notice that the light object is a pointlight with no possibility to change any of its lightning parameters.
0 Comments
Leave a Reply. |