RVM converted to MWX
- Last UpdatedDec 06, 2023
- 2 minute read
When importing an .rvm file, the content is converted into an .mwx file. This MWX file includes a different set of nodes compared with the standard MWX.
RVM element
Each file contains only an RVM element.
RVM element attributes
The RVM element has these attributes.
|
Attribute |
Description |
|---|---|
|
name |
Identifies the RVM node. It normally the name of the original RVM file. |
|
dbfile |
Contains the name of the database file in the original RVM for reference. |
|
version |
The version number. |
RVM child elements
The RVM element contains an element of the following types:
-
Meshes
-
Material
Meshes element
The Meshes element is a container for a list of mesh nodes.
It has no attributes.
Mesh child elements
Meshes can contain from 1 to n elements of type:
-
Mesh
Mesh element
This is a standard mesh element, but with no material children. The material is managed elsewhere.
See Mesh element for further details.
Mesh child elements
When inside a Meshes element, the Mesh element can have children of the following types only:
Material element
This is a standard material element; however, it’s used in different way.
Firstly, it refers to the whole Meshes node and not to single Mesh ones. It has a set of parameters that are common for all the meshes and then a set of sub-parameters: one for each Mesh element contained in the Meshes node. These define differences such vertex colors, diffuse maps, and so on.
Refer to Material element for further details.
File example
This is an example of a converted RVM file into MWX format.
<?xml version="1.0" encoding="utf-8" ?>
<mwx version="1.0">
<Dummy type="Dummy" name="stab|RVM_Header" version="1">
<transform scale="1.0 1.0 1.0"
rotation="0.0 0.0 0.0 1.0"
translation="0.0 0.0 0.0"/>
<text value="Banner=VANTAGE PDMS Design Mk11.5.SP1.0 (WINDOWS-NT 5.0) (20 Nov 2003 : 22:00)
FileNote=
Date=Mon Apr 19 11:35:06 2004
User=peter.eastman@UKCAMD1184"/>
</Dummy>
<Dummy type="Dummy" name="stab|RVM_Model" version="1">
<transform scale="1.0 1.0 1.0"
rotation="0.0 0.0 0.0 1.0"
translation="0.0 0.0 0.0"/>
<text value="Project=SAM
MDB=/SAMPLE"/>
</Dummy>
<RVM name="stab" dbfile="stab/stab.rvmdb" version="1">
<meshes>
<mesh name="stab|SoupMesh0" version="1">
<Geometry name="stab|SoupMesh0" file="stab/SoupMesh0.geom" version="1"/>
<sphere center="9.015751 6.6466 11.466251" radius="11.998102"/>
<obbox center="9.015751 6.6466 11.466251"
hsize="8.03925 5.6466 7.013751"
uaxis="1.0 0.0 0.0"
vaxis="0.0 1.0 0.0"
waxis="0.0 0.0 1.0"/>
</mesh>
<mesh name="stab|SoupMesh1" version="1">
<Geometry name="stab|SoupMesh1" file="stab/SoupMesh1.geom" version="1"/>
<sphere center="7.627551 5.5115 7.76" radius="9.768202"/>
<obbox center="7.627551 5.5115 7.76"
hsize="6.434451 4.5175 5.932"
uaxis="1.0 0.0 0.0"
vaxis="0.0 1.0 0.0"
waxis="0.0 0.0 1.0"/>
</mesh>
<mesh name="stab|SoupMesh2" version="1">
<Geometry name="stab|SoupMesh2" file="stab/SoupMesh2.geom" version="1"/>
<sphere center="8.825001 5.5 8.999999" radius="14.996355"/>
<obbox center="8.825001 5.5 8.999999"
hsize="8.825001 7.0 11.0"
uaxis="1.0 0.0 0.0"
vaxis="0.0 1.0 0.0"
waxis="0.0 0.0 1.0"/>
</mesh>
</meshes>
<Material type="DX11" version="1.1">
<pass name="standard" shader="EngineLib|shRVM|default">
<param type="unknown" name="mReflectionMap" value="CubeRVM.dds"/>
<subParams>
<param type="unknown" name="mDiffuseColor" value="0.0 0.0 0.0"/>
</subParams>
<subParams>
<param type="unknown" name="mDiffuseColor" value="1.0 0.6 0.0"/>
</subParams>
</pass>
</Material>
</RVM>
</mwx>