VRML to X3D Conversion

后端 未结 7 1339
隐瞒了意图╮
隐瞒了意图╮ 2021-02-05 23:14

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

7条回答
  •  栀梦
    栀梦 (楼主)
    2021-02-05 23:50

    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.

提交回复
热议问题