03-09-2023, 12:56 PM
It took a bit of time but I think this importer is now generally usable.
Apart from IndexedFaceSet, it also implements many of the other geometry nodes, making it useful not only to import meshes from other programs, but also to create geometries from VRML code to import directly into wings. Basic geometries like Box, Cylinder, Cone, Sphere are available, as well as the Extrusion and ElevationGrid node. Transforms (translate, rotation, scale) that the shapes are in, are also applied to the shapes.
beam file available:
wpc_wrl.tar
This installs over the stock wpc_wrl plugin to provide X3D export support.
Example ElevationGrid:
Apart from IndexedFaceSet, it also implements many of the other geometry nodes, making it useful not only to import meshes from other programs, but also to create geometries from VRML code to import directly into wings. Basic geometries like Box, Cylinder, Cone, Sphere are available, as well as the Extrusion and ElevationGrid node. Transforms (translate, rotation, scale) that the shapes are in, are also applied to the shapes.
beam file available:
wpc_wrl.tar
This installs over the stock wpc_wrl plugin to provide X3D export support.
Example ElevationGrid:
Code:
#VRML V2.0 utf8
DEF elevation2x2 Transform {
children [
Shape {
appearance Appearance {
material DEF default Material { }
}
geometry ElevationGrid {
xDimension 3
zDimension 3
colorPerVertex FALSE
height [ 0.0 0.2 0.4 0.2 0.4 0.6 0.4 0.6 0.8 ]
color Color { color [ 1 0 0 0 1 0 0 0 1 1 1 0 1 0 1 0 1 1 ] }
}
}
]
}