I\'m working on a web application that manages VRML files. I also want to let users see the uploaded files, without requiring a specific plug-in or player. X3DOM allows viewing
I also needed to convert VRML .wrl to .x3d; I tried meshlab
(meshlabserver
), but unfortunately, the version I have (.deb
2016.12~trusty2
on Ubuntu 14.04) compacts everything to a single mesh, and looses color in the process.
I found that view3dscene can do conversion from the command line, where the materials/colors are preserved in .x3d
, as they were in .wrl
:
view3dscene mymodel.wrl --write --write-encoding xml > mymodel.x3d
Since view3dscene
functions as a viewer for both .wrl
and .x3d
files, it can also be used immediately, to check if the converted (or the original) file has colors or not.