【问题标题】:Showing error while importing Sceneform Assets导入 Sceneform 资源时显示错误
【发布时间】:2020-02-20 07:52:13
【问题描述】:

导入 Sceneform 资产时出现此错误。我已经添加了

dependencies {
    classpath 'com.google.ar.sceneform:plugin:1.15.0
}

在项目级别的 gradle 文件中也是如此

dependencies {
implementation "com.google.ar.sceneform.ux:sceneform-ux:1.15.0"
}

我搜索了很多但收到此错误

【问题讨论】:

  • 模型文件是否全部导入项目? .似乎缺少一些纹理文件。
  • 我添加了一个新模型,尺寸错误和纹理已修复,但 matc: 返回的错误保持不变

标签: android arcore sceneform


【解决方案1】:

您应该在项目 gradle 中使用此格式手动导入模型

  apply plugin: 'com.google.ar.sceneform.plugin'

sceneform.asset('sampledata/models/andy.obj', // 'Source Asset Path' specified during import.
        'default',                            // 'Material Path' specified during import.
        'sampledata/models/andy.sfa',         // '.sfa Output Path' specified during import.
        'src/main/res/raw/andy')              // '.sfb Output Path' specified during import.

如图所示:https://developers.google.com/sceneform/develop/import-assets

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2019-11-21
    • 1970-01-01
    • 2013-03-14
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多