简体   繁体   English

使用 MeshLab 结果将 .wrl (VRML) 转换为 .dae (COLLADA) 缺少颜色

[英]Convert .wrl (VRML) to .dae (COLLADA) using MeshLab results missing colors

I used MeshLab to open a VRML .wrl model.我使用 MeshLab 打开了一个 VRML .wrl 模型。 The model was shown just fine in MeshLab.该模型在 MeshLab 中显示得很好。 My goal was to convert .wrl to COLLADA so I can later import .dae into Unity or SketchUp, hoping I can have a working mesh with colors, see Image 1 below.我的目标是将 .wrl 转换为 COLLADA,以便以后可以将 .dae 导入 Unity 或 SketchUp,希望我可以有一个带颜色的工作网格,请参见下面的图 1。

I tried to export mesh using MeshLab as COLLADA (.dae), but when I opened the .dae file in SketchUp or Unity, colors won't show up.我尝试使用 MeshLab 将网格导出为 COLLADA (.dae),但是当我在 SketchUp 或 Unity 中打开 .dae 文件时,颜色不会显示。 I did see all colors in MeshLab just fine.我确实在 MeshLab 中看到了所有颜色。 What did I miss?我错过了什么? Your help will be greatly appreciated.对你的帮助表示感谢。

This is how the model looks like in MeshLab:这是模型在 MeshLab 中的样子:

This is how the .dae file looks like in SketchUp:这是 .dae 文件在 SketchUp 中的样子:

您是否尝试使用文本编辑器打开由 meshlab 生成的 dae 文件以检查 dae 文件中是否存在颜色?

I don't know if this is what you are looking for, but I stumbled across a solution accidentally that works for me.我不知道这是否是您正在寻找的,但我偶然发现了一个对我有用的解决方案。 What I wanted to do is to embed the 3D model of a PCB I designed in KiCAD in a PDF.我想做的是将我在 KiCAD 中设计的 PCB 的 3D 模型嵌入 PDF 中。

I needed a U3D (universal 3D) for embedding in a PDF, but after exporting it, I always ended without colors.我需要一个 U3D(通用 3D)来嵌入 PDF,但是在导出它之后,我总是没有颜色就结束了。 The happy accident I stumbled upon is when I changed the "FILL COLOR" in the right panel, from "vert" to "mesh".我偶然发现的快乐意外是当我将右侧面板中的“填充颜色”从“垂直”更改为“网格”时。

固定颜色的右侧面板设置

This made the model in the viewport look gray,这使得视口中的模型看起来是灰色的,

视口看起来是灰色的

but after exporting it to U3D, and checking the "Vert COLOR" box in the saving options, the U3D model got the colors!但是在将其导出到 U3D 并选中保存选项中的“垂直颜色”框后,U3D 模型得到了颜色!

保存选项

IMO this is a very weird behavior that should be changed immediately. IMO 这是一个非常奇怪的行为,应该立即改变。

最终图像

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM