You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

APS模型渲染异常求助:加载模型报错,部分对象无法正常显示

APS模型渲染报错:Unexpected zero length CDN resource received 解决思路

问题概况

  • 模型已完成上传与格式转换,能在Viewer中加载,但浏览器抛出错误:Error loading model: The service returned the following message: Unexpected zero length CDN resource received, path= undefined,导致部分模型对象无法显示
  • 已尝试重新上传模型、调整转换参数,问题仍未解决
  • 转换任务请求代码:
return axios({
    url: `https://developer.api.autodesk.com/modelderivative/v2/designdata/job`,
    method: 'POST',
    headers: {
      Authorization: accessToken,
      'Content-Type': 'application/json',
      'x-ads-force': true
    },
    data: {
      input: {
        urn: objectIdURN
      },
      output: {
        formats: [
          {
            type: 'svf2',
            advanced: {
              format: 'binary',
              exportColor: true,
              exportFileStructure: 'single'
            },
            views: ['2d', '3d']
          }
        ]
      }
    }
  })

解决方向

1. 移除exportFileStructure: 'single'参数

SVF2搭配single文件结构会将所有资源打包为单个文件,复杂模型(含大量嵌套组件、大尺寸纹理)容易出现资源截断。改用默认的多文件结构重试:

data: {
  input: {
    urn: objectIdURN
  },
  output: {
    formats: [
      {
        type: 'svf2',
        advanced: {
          format: 'binary',
          exportColor: true
          // 移除exportFileStructure,使用默认multiple结构
        },
        views: ['2d', '3d']
      }
    ]
  }
}

2. 检查源文件完整性

  • 用对应设计软件打开源文件,排查是否有损坏组件、缺失纹理或无效引用
  • 导出简化版本(清理未用资源、减少嵌套层级)后重新上传转换

3. 调整SVF2转换参数

  • 尝试将format从binary改为text:
advanced: {
  format: 'text',
  exportColor: true
}
  • 先仅转换3D视图,排查是否是2D资源生成异常:
views: ['3d']

4. 验证访问令牌权限

确认accessToken包含viewables:read权限且未过期,可重新生成令牌后重试加载。

5. 提交APS技术支持工单

若以上方法无效,向Autodesk开发者平台提交工单,提供:

  • 模型URN
  • 转换任务ID
  • 错误日志截图
  • 源文件格式与版本信息

内容的提问来源于stack exchange,提问作者user26638094

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.06.19 16:03:24