If we have already completed the process of modeling our objects or scenarios using SfM or photogrammetry techniques, we may face the difficulty of choosing the most appropriate export format for the distribution and archiving of our 3D models or documents.
The wide variety of formats and options offered by 3D modeling or photogrammetry tools in general, applied to the digitization or 3D documentation of heritage, immerse us in various paradigms related not only to the distribution and publication of our 3D models but also concerning the preservation of these documents in the future.
Whether we work with photogrammetry, SfM techniques, or laser scanners, our starting format will be point clouds, with or without colorimetric information. In the case of photogrammetry, we will also have information about the camera positions and, of course, the photographs from those cameras. From the point clouds, we can develop mesh-based models to which we can apply textures by various methods. At the level of 3D documentation and preservation of certain information describing relevant aspects of our scenes or objects to be modeled, point clouds, although not as readable or visually appealing as meshes with photorealistic textures, constitute what we could call the RAW information of our models, since meshes are deduced by various algorithms from the points and do not always have to faithfully match reality, as this depends somewhat on the topology of the clouds and the algorithms. Mesh modeling with its corresponding realistic textures is the realm of heritage virtualization, projects that do not always seek fidelity, so we must be cautious about the threshold between documenting in 3D and virtualizing in 3D.
All products involved in the 3D documentation process of heritage constitute what are called assets or sets of intimately related documents so that they form a single entity, and therefore must be managed with special care to avoid breaking the relationships between them.
Throughout this article, some reviews of the most common and accessible 3D information exchange formats for the publication and archiving of 3D models are made.
File formats
Beyond the proprietary formats of some commercial tools, there are some formats that we can define as open standards, since their format is properly documented by the organizations that proposed them. Working with open standards ensures, to some extent, the readability of these documents in the future, as the structuring of the data they contain is usually publicly and properly documented.
Stanford Triangle Format
Perhaps one of the most widespread formats for exchanging 3D model data is the one known as Polygon File Format or .ply, also known as the Stanford Triangle Format, which, as its name indicates, was proposed by Stanford University in the mid-1990s. Initially, it was proposed for storing 3D scanner data in the form of point clouds, but it can also be used to describe surfaces formed by polygons. One relevant aspect of this format is the possibility of being encoded in binary or ASCII, or simple plain text, so access to its data is very fast.
In an ASCII-encoded PLY file describing a point cloud, the data model is very simple as it organizes rows with the column format: X Y Z R G B
So that each line describes a point or vertex of our cloud, allowing us not only to know its position in space but also its colorimetric information in the RGB model, making this format one of the most used for general 3D information exchange between scanners, photogrammetry tools, and 3D editors or topographic or GIS tools.
Wavefront file
Another file format we should keep in mind is the one known as Wavefront file or .obj, which is encoded in plain text and, similar to PLY but much more complete in descriptions, contains information on vertex coordinates, texture color values, normals, etc. The OBJ format was developed by the company Wavefront Technologies, which was a decisive player in the evolution of 3D visual effects in cinema in the early 1990s. After the usual market fluctuations, Wavefront Technologies passed into the hands of Autodesk. This format, perhaps along with PLY, is the most common for data exchange between modeling and 3D editing tools, being, for example, one of the few formats supported by Adobe Photoshop for working with 3D models. The .obj format is usually intrinsically accompanied by a .mtl file described by the mtllib parameter in the headers of the .obj file, which contains information related to the materials of our models, including the path to the texture file.
Universal 3D File
One of the most recent and strong bets in the field of standardization for 3D information exchange emerged around 2003 with the support of major companies and industries in the market such as nVidia, ATI, Adobe, Boeing, Cinema 4D, Intel, and Microsoft among many others. The U3D format is a binary model regulated by the TC43 standard of ECMA. One of the reasons this format has become well known is for being the only one accepted by Adobe to embed 3D objects in the Acrobat tool, perhaps one of the few currently available means to distribute and publish 3D models in a document format with some accessibility; it is also one of the few formats supported by Photoshop for import-export and editing of 3D models.
The latest versions of MeshLab allow exporting to U3D; however, we can only use textures projected onto faces, and it is not possible to use textures in external image files.
There are some free viewers such as the Instant Player from the company InstantReality http://www.instantreality.org that allow visualization of this type of models.
X3D
X3D is the successor format to the well-known VRML (Virtual Reality Modeling Language) launched in the mid-1990s. X3D is an interesting format because it is based on the XML standard, which makes it very accessible. It is a standard supported by the Web3D Consortium, which, as its name indicates, works in the field of 3D graphics applied to the web. Unfortunately, currently, various plugins or specific browsers are necessary to visualize these models via the web. For example, the Instant Player viewer allows access to X3D models via URL.
COLLADA
Perhaps the most recent proposal in the field of 3D information exchange was the release in 2011 of the COLLAborative Design Activity format, known as COLLADA or the .dae extension (Digital Asset Exchange), by the Khronos Group consortium dedicated to the development and promotion of open standards such as the popular OpenGL. One of the excellences of this format is that, like X3D, it is based on the XML standard, which makes it an easily accessible format.
Collada has been adopted by numerous tools such as Adobe Photoshop, Cinema4D, Maya, etc., but the greatest feature regarding the integration of this format has been the native support of this data model by the Preview tool starting from the Snow Leopard version of Mac OS X.
