Debian Codegraph @

code/AssetLib/VRML/README.md

raw
1 # WRL/X3DV to X3D file format converter
2
3 ## VRML and X3D 3D model formats background
4 "VRML" 3D model files use either `VRML97` (`.wrl`) or "Classic VRML" (`.x3dv`)
5 file formats.
6
7 The X3D model specification was introduced after these formats, as a superset of both WRL and X3DV.
8 While X3D can understand the _content_ of WRL/X3DV files, it can't directly parse them because
9 X3D uses `.xml` files, rather than `VRML97` or "Classic VRML" format.
10
11 But, if a converter is available to migrate just the file format (preserving the content), so that
12 the `.wrl`/`.x3dv` files can be converted to an X3D-compatible `.xml` file, then the X3D importer
13 will be able to load the resulting model file.
14
15 ## How this code is used
16 The sole purpose of `Parser`/`Scanner` (adopted from the `meshlab` project) is to take a
17 `VRML97` (`.wrl`) or "Classic VRML" (`.x3dv`) file as input, and convert to an X3D `.xml` file.
18 That's it.
19
20 By passing the converted in-memory `.xml` file content to the `X3DImporter`, the `.wrl` or `x3dv`
21 model can be loaded via assimp.