Forge ARKit:无法在 Unity 中加载模型 [英] Forge ARKit: Cannot load model in Unity

查看:19
本文介绍了Forge ARKit:无法在 Unity 中加载模型的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用最新的 ForgeARKit-update-6-2018.1,我尝试在 Unity 中加载我的模型,其中包含示例 Unity 场景loadAtStartup".我可以从沙盒"成功加载示例模型,但无法加载通过脚本test-2legged"上传的模型.

With the latest ForgeARKit-update-6-2018.1, I was trying to load my model in Unity, with the sample Unity scene 'loadAtStartup'. I can successfully load the sample models from 'Sandbox', but I couldn't load my model, which was uploaded through script 'test-2legged'.

错误消息显示 504,它似乎没有到达服务:

Error message shows 504, it seems not reaching the service:

AsyncRequestCompleted 远程服务器返回错误:(504) 网关超时.UnityEngine.Debug:Log(Object)Autodesk.Forge.ARKit.RequestQueueMgr:AsyncRequestCompleted(Object, AsyncCompletedEventArgs)(在 Assets/Forge/CodeBase/RequestQueue.cs:322)UnityEngine.UnitySynchronizationContext:ExecuteTasks()

模型 URN:dXJuOmFkc2sub2JqZWN0czpvcy5vYmplY3Q6bWFvbGlua3ppOHM3cnlvZWx4bjVndnR4bjcyZWc2N2l0dGp0a2MvMmZsb29yX0FyYy5pZmM=

Model URN: dXJuOmFkc2sub2JqZWN0czpvcy5vYmplY3Q6bWFvbGlua3ppOHM3cnlvZWx4bjVndnR4bjcyZWc2N2l0dGp0a2MvMmZsb29yX0FyYy5pZmM=

[23/4/2019 更新]我发现我可以使用 ForgeARKit-update-3-2017.1.2f1 成功加载相同的模型.我比较了 Unity 中的 Forge 代码.我认为这与服务 URL 有关.版本 6 正在从

[Update 23/4/2019] I found that I can successfully load the same model with ForgeARKit-update-3-2017.1.2f1. I compare the Forge code in Unity. I think it has something to do with the service URL. The version 6 is fetching models from 'https://developer-api-beta.autodesk.io' while version 3 is fetching from 'https://developer-api.autodesk.io'. Meanwhile the shell script 'test-2legged' is uploading to the latter one ('https://developer-api.autodesk.io'). That is why it counldn'd find the resource. Question here is how can I upload model to the 'beta' ARKit? I tried modifying the URL in script 'test-2legged' but it doesn't work. Below screen-shot is the output of script 'test-2legged' when fetching from 'beta' ARkit. It seems model is uploaded successfully, but some parsing post-work failed. I guess the response format is also changed in the beta version. Is there a beta version of 'test-2legged' scripts (and other Scene Preparation scripts)?

请评论,谢谢.

推荐答案

这是正确的.对此我深表歉意,我知道我们没有很好地记录服务器更改.

This is correct. My apologizes for this, I know we did not documented very well on the server changes.

此更新 6 假设您现在正在使用测试版的新服务器.脚本和更新 3 使用旧服务器.请注意,这两个服务器不一定兼容并将数据存储在不同的地方,因此请确保在 Unity 中始终使用与您用于准备场景的服务器相同的服务器.当我们将所有人切换到新服务器时,我们会将数据从旧服务器转移到新服务器云存储.

This update6 assumes you are using the new server under beta right now. The scripts and update 3 are using the legacy server. Note that the 2 servers are not necessarily compatible and store the data in different places, so make sure to always use the same server in Unity as the one you used to prepare the scene. When we will switch everyone to the new server, we will transfer the data from the legacy server to the new server cloud storage.

Update3 包仍然可以从新服务器读取场景,因为我们确保旧的 Unity 代码保持兼容.

The Update3 package will still be able to read scenes from the new server, as we make sure the old Unity code stays compatible.

请注意,您需要在任何地方都使用 SafeBase64 编码的字符串.我在您的描述中看到您使用的是 base64 编码(不安全).新服务器对参数和格式的要求会更加严格,因此我鼓励您在测试版服务器上测试您的脚本/代码.

Note as well you need to use SafeBase64 encoded string everywhere. I saw in your description that you are using base64 encoded (not safe). The new server will be more strict of parameters and format, so I encourage you to test your scripts/code on the beta server.

最后,我正在处理新的 Unity 代码更新,以及将于下周发布的文档.确保使用此版本 - 它增加了对 3legged、自动 2/3legged 令牌刷新等的支持.如果您的场景失败,请直接与我联系并分享您的模型和 URN.我要么在我的开发环境中测试它,要么查看我们的日志文件以找出失败的原因.我的电子邮件地址是我在 autodesk.com 上的名字

Last, I am working on a new Unity code update, and documentation which will be released next week. Make sure to use this version - it adds support for 3legged, automatic 2/3legged token refresh, and more. If you got scenes failing, please contact me directly and share your models and URN. I'll either test it on my development environment, or look into our log files for the reason to fail. My email address is my first name at autodesk.com

这篇关于Forge ARKit:无法在 Unity 中加载模型的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆