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

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

问题描述

使用最新的ForgeARKit-update-6-2018.1,我尝试使用示例场景" loadAtStartup "在Unity中加载我的模型.我可以从沙箱"成功加载示例模型,但无法加载通过脚本" 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(对象) Autodesk.Forge.ARKit.RequestQueueMgr:AsyncRequestCompleted(Object,AsyncCompletedEventArgs)(位于Assets/Forge/CodeBase/RequestQueue.cs:322) UnityEngine.UnitySynchronizationContext:ExecuteTasks()

AsyncRequestCompleted The remote server returned an error: (504) Gateway Time-out. UnityEngine.Debug:Log(Object) Autodesk.Forge.ARKit.RequestQueueMgr:AsyncRequestCompleted(Object, AsyncCompletedEventArgs) (at 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代码.我认为这与服务网址有关.版本6从' https://developer-api- beta 获取模型.从版本 https://developer-api.autodesk.io 获取版本3时'.同时,shell脚本"test-2legged"正在上传到后一个脚本(" https://developer-api.autodesk .io ').这就是为什么它会找到资源的原因.这里的问题是如何将模型上传到"beta" ARKit?我尝试修改脚本"test-2legged"中的URL,但是它不起作用.从屏幕截图下方是从"beta" ARkit获取脚本"test-2legged"的输出.看来模型已成功上传,但某些解析后工作却失败了.我想测试版中的响应格式也已更改.是否有beta版的"test-2legged"脚本(和其他场景准备"脚本)?

[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假定您现在正在使用Beta下的新服务器.脚本和更新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编码(不安全).新服务器的参数和格式将更加严格,因此,我建议您在Beta服务器上测试脚本/代码.

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天全站免登陆