如何将图像添加到 .stl 格式的网格文件中

问题描述

我一直在尝试使用以下方法将图像文件添加到网格类型 stl 文件中:

<script>
   <name>Logo/R2S</name> 
   <uri>model://r2s_cupcar/materials/scripts/logo.material</uri>
   <uri>model://r2s_cupcar/materials/logo/r2s.png</uri>
</script>

我在 .material 文件中所做的更改:

{
    technique
    {
        pass
        {
            texture_unit
            {
                texture r2s.png
                scale 150.0  1.0
            }
        }
    }
}

我的配置文件:

<model>
  <name>R2S Cup Car</name>
  <version>1.0</version>
  <sdf version="1.5">r2s_cupcar.sdf</sdf>
  <author>
    <name>Benjamin Perseghetti</name>
    <email>bperseghetti@rudislabs.com</email>
  </author>
  <description>A model of the R2S Cup Car.</description>
</model>

我可以在 .sdf.jinja 文件中进行哪些更改以正确包含徽标图像。现在我只是从模型上的图像文件中获得不同的颜色。

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)

相关问答

错误1:Request method ‘DELETE‘ not supported 错误还原:...
错误1:启动docker镜像时报错:Error response from daemon:...
错误1:private field ‘xxx‘ is never assigned 按Alt...
报错如下,通过源不能下载,最后警告pip需升级版本 Requirem...