X3D

From Just Solve the File Format Problem
(Difference between revisions)
Jump to: navigation, search
Line 2: Line 2:
 
|formattype=electronic
 
|formattype=electronic
 
|subcat=3D and CAD/CAM Models
 
|subcat=3D and CAD/CAM Models
|extensions={{ext|x3d}}, others
+
|extensions={{ext|x3d}}, {{ext|x3db}}, {{ext|x3dv}}, {{ext|x3dz}}, {{ext|x3dvz}}
 +
|mimetypes={{mimetype|model/x3d+xml}}, {{mimetype|model/x3d+binary}}, {{mimetype|model/x3d+vrml}}
 
|pronom={{PRONOM|fmt/579}}, {{PRONOM|fmt/580}}, {{PRONOM|fmt/581}}, {{PRONOM|fmt/582}}
 
|pronom={{PRONOM|fmt/579}}, {{PRONOM|fmt/580}}, {{PRONOM|fmt/581}}, {{PRONOM|fmt/582}}
 
}}
 
}}
[[X3D]] (Extensible 3D) is an interactive 3D vector graphics format. It is the successor to [[VRML]]. It is usually encoded in [[XML]], though there is also a standard "Classic VRML" encoding.
+
[[X3D]] (Extensible 3D) is an interactive 3D vector graphics format. It is the successor to [[VRML]].
  
 
X3D is standardized in ISO/IEC 19775 (X3D), ISO/IEC 19776 (X3D encodings), and ISO/IEC 19777 (X3D language bindings).
 
X3D is standardized in ISO/IEC 19775 (X3D), ISO/IEC 19776 (X3D encodings), and ISO/IEC 19777 (X3D language bindings).
 +
 +
== Encodings ==
 +
There are three standard ways to encode an X3D file.
 +
 +
=== XML ===
 +
An XML-encoded X3D file uses extension '''.x3d''', and MIME type '''model/x3d+xml'''. The file may be [[gzip]]-compressed, and use extension '''.x3dz''' or '''.x3d.gz'''.
 +
 +
=== Compressed binary ===
 +
A file using X3D's ''compressed binary encoding'' uses extension '''.x3db''', and MIME type '''model/x3d+binary'''. The file may be gzip-compressed (even though the encoding name may suggest it is already compressed), and use extension '''.x3db.gz'''. The alternate extension '''.x3dbz''' seems consistent, but is not mentioned in the specification.
 +
 +
=== Classic VRML ===
 +
A ''Classic VRML''-encoded X3D file uses extension '''.x3dv''', and MIME type '''model/x3d+vrml'''. The file may be gzip-compressed, and use extension '''.x3dvz''' or '''.x3dv.gz'''. This format is similar to [[VRML]].
  
 
== Identification ==
 
== Identification ==
Assuming uncompressed XML encoding, an X3D file has a line beginning with "<code>&lt;!DOCTYPE X3D PUBLIC</code>", followed by an "<code>&lt;X3D&gt;</code>" XML element.
+
With uncompressed XML encoding, an X3D file has a line beginning with "<code>&lt;!DOCTYPE X3D PUBLIC</code>", followed by an "<code>&lt;X3D&gt;</code>" XML element.
  
 
Classic VRML-encoded X3D files begin with text similar to "<code>#X3D V3.1 utf8</code>".
 
Classic VRML-encoded X3D files begin with text similar to "<code>#X3D V3.1 utf8</code>".

Revision as of 23:35, 1 April 2014

File Format
Name X3D
Ontology
Extension(s) .x3d, .x3db, .x3dv, .x3dz, .x3dvz
MIME Type(s) model/x3d+xml, model/x3d+binary, model/x3d+vrml
PRONOM fmt/579, fmt/580, fmt/581, fmt/582

X3D (Extensible 3D) is an interactive 3D vector graphics format. It is the successor to VRML.

X3D is standardized in ISO/IEC 19775 (X3D), ISO/IEC 19776 (X3D encodings), and ISO/IEC 19777 (X3D language bindings).

Contents

Encodings

There are three standard ways to encode an X3D file.

XML

An XML-encoded X3D file uses extension .x3d, and MIME type model/x3d+xml. The file may be gzip-compressed, and use extension .x3dz or .x3d.gz.

Compressed binary

A file using X3D's compressed binary encoding uses extension .x3db, and MIME type model/x3d+binary. The file may be gzip-compressed (even though the encoding name may suggest it is already compressed), and use extension .x3db.gz. The alternate extension .x3dbz seems consistent, but is not mentioned in the specification.

Classic VRML

A Classic VRML-encoded X3D file uses extension .x3dv, and MIME type model/x3d+vrml. The file may be gzip-compressed, and use extension .x3dvz or .x3dv.gz. This format is similar to VRML.

Identification

With uncompressed XML encoding, an X3D file has a line beginning with "<!DOCTYPE X3D PUBLIC", followed by an "<X3D>" XML element.

Classic VRML-encoded X3D files begin with text similar to "#X3D V3.1 utf8".

Specifications

Sample files

Links

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox