Forge ARKit - Navisworks 到 Unity
Posted
技术标签:
【中文标题】Forge ARKit - Navisworks 到 Unity【英文标题】:Forge ARKit - Navisworks to Unity 【发布时间】:2021-07-08 07:39:10 【问题描述】:我正在测试 Model Derivative API 以将我的 Navisworks 文件之一转换为 SVF,然后使用 Forge AR|VR Toolkit 在 Unity 中加载模型。我之前尝试过在 Navisworks 中使用一些 sample models,它们正确加载到 Unity。
当我尝试加载我自己的 Navisworks 文件时,它只加载一些组件而不会在统一控制台中抛出任何消息,只是“加载:115.9605317”之一:
在 Forge Viewer 中,我将模型转换为 SVF 后,它看起来像这样:
我的清单出现以下错误:
"urn": "dXJuOmFkc2sub2JqZWN0czpvcy5vYmplY3Q6aW1tZXJzaWFfdGVzdHMvVEFJRi1TVFAtMzAtQ0RNLTMxMDAxX1RpbWVsaW5lci5ud2Q",
"derivatives": [
"hasThumbnail": "true",
"children": [
"guid": "8181cbda-7e23-4809-a45a-08d2499ce6a7",
"type": "geometry",
"role": "3d",
"name": "TAIF-STP-30-CDM-31001.nwc",
"status": "success",
"hasThumbnail": "true",
"progress": "complete",
"messages": [
"type": "warning",
"code": "Navisworks-MissingXref",
"message": [
"Missing external reference file: 0",
"C:\\Users\\arq5\\Documents\\00-RVT-RECURSOS\\05-TEXTURASJPG\\HORMIGON\\hormigon ocre.jpg"
]
],
"viewableID": "cache",
"useAsDefault": true,
"children": [
"guid": "49aef14e-066f-4cfc-b5ac-9c325b4d90b6",
"type": "view",
"role": "3d",
"name": "Default",
"status": "success",
"camera": [
2217718.25,
7836792,
4384.18896484375,
2217845,
7836792,
4325.51806640625,
0.42008858919143677,
-7.63888952093339e-13,
0.9074831008911133,
3.273224115371704,
1.5807563066482544,
1,
0
],
"useAsDefault": true,
"hasThumbnail": "true",
"children": [
"urn": "urn:adsk.viewing:fs.file:dXJuOmFkc2sub2JqZWN0czpvcy5vYmplY3Q6aW1tZXJzaWFfdGVzdHMvVEFJRi1TVFAtMzAtQ0RNLTMxMDAxX1RpbWVsaW5lci5ud2Q/output/0/0_100.png",
"role": "thumbnail",
"mime": "image/png",
"guid": "f6fa8a98-f6bc-4efd-a2a0-f3e3400f0cba",
"type": "resource",
"resolution": [
100,
100
]
,
"urn": "urn:adsk.viewing:fs.file:dXJuOmFkc2sub2JqZWN0czpvcy5vYmplY3Q6aW1tZXJzaWFfdGVzdHMvVEFJRi1TVFAtMzAtQ0RNLTMxMDAxX1RpbWVsaW5lci5ud2Q/output/0/0_200.png",
"role": "thumbnail",
"mime": "image/png",
"guid": "128b27ba-07e8-4696-abbf-518500d081c8",
"type": "resource",
"resolution": [
200,
200
]
,
"urn": "urn:adsk.viewing:fs.file:dXJuOmFkc2sub2JqZWN0czpvcy5vYmplY3Q6aW1tZXJzaWFfdGVzdHMvVEFJRi1TVFAtMzAtQ0RNLTMxMDAxX1RpbWVsaW5lci5ud2Q/output/0/0_400.png",
"role": "thumbnail",
"mime": "image/png",
"guid": "a47779a5-a149-4d27-b80e-84dd78bf28cb",
"type": "resource",
"resolution": [
400,
400
]
]
,
"guid": "64bc3028-731c-4ea1-9775-7a1e1a89ec82",
"type": "folder",
"name": "3D View",
"role": "viewable",
"hasThumbnail": "false",
"status": "success",
"progress": "0% complete",
"children": [
"guid": "1f08519e-1628-4839-af45-93b200032b26",
"type": "view",
"role": "3d",
"name": "3D",
"camera": [
2217922,
7836688.5,
4324.17578125,
2217995,
7836701.5,
4376.45751953125,
-0.5683003664016724,
-0.10182362794876099,
0.8164966106414795,
1,
45,
224.16700744628906,
1
],
"status": "success"
,
"guid": "3e259277-489f-4e98-8ed8-3b3e0a49fd75",
"type": "view",
"role": "3d",
"name": "Analytical",
"camera": [
2218373.25,
7836174,
4628.72900390625,
2218286.25,
7836905.5,
4197.9208984375,
-0.05953280255198479,
0.5012193918228149,
0.8632699251174927,
1,
45,
1036.07373046875,
1
],
"status": "success"
,
"guid": "ef039511-0489-446e-8c06-78bcc5ea0ab2",
"type": "view",
"role": "3d",
"name": "3D - carmen.gg2",
"camera": [
2217942,
7836805.5,
4334.80078125,
2217918.5,
7836822,
4309.9580078125,
-0.5310993790626526,
0.37772226333618164,
0.7584585547447205,
1,
45,
486.9418640136719,
1
],
"status": "success"
,
"guid": "3e93f0b5-97db-430e-9189-a120e8e402c3",
"type": "view",
"role": "3d",
"name": "3D - carmen.gg2 Copy 1",
"camera": [
2218071.75,
7836715.5,
4252.97412109375,
2218091.5,
7836931.5,
4262.3193359375,
-0.004109169356524944,
-0.04292852059006691,
0.9990696907043457,
1,
45,
567.1892700195312,
1
],
"status": "success"
,
"guid": "5fa9f6b6-0847-44b6-b6d9-595c1e772d89",
"type": "view",
"role": "3d",
"name": "3D - ricardo.navas",
"camera": [
2217873.75,
7837036,
4360.271484375,
2217985.25,
7836975,
4267.619140625,
0.5160266160964966,
-0.2839450240135193,
0.8081409335136414,
1,
45,
835.2225952148438,
1
],
"status": "success"
,
"guid": "3f044262-ed05-4336-903b-43df445f204f",
"type": "view",
"role": "3d",
"name": "3D - carmen.gg2 Copy 1 Copy 1",
"camera": [
2218292.75,
7836805.5,
4375.10009765625,
2218032.75,
7836986.5,
4314.8154296875,
-0.1535138338804245,
0.10686176270246506,
0.9823513031005859,
1,
45,
876.185791015625,
1
],
"status": "success"
,
"guid": "8dc04e9c-6994-48d5-be18-5efe1c48c675",
"type": "view",
"role": "3d",
"name": "3D - jorge.mansoGphpF",
"camera": [
2218281,
7836987.5,
4511.279296875,
2218000.25,
7836937,
4309.6044921875,
-0.5683003664016724,
-0.10182362794876099,
0.8164966106414795,
1,
45,
713.5865478515625,
1
],
"status": "success"
]
,
"guid": "7c3a22f2-fe30-4bf9-84ef-86fe9b2f9544",
"type": "view",
"role": "3d",
"name": "Vista",
"camera": [
2218147,
7836836.5,
4338.59912109375,
2218120.75,
7836927.5,
4315.5693359375,
-0.06565795093774796,
0.22708940505981445,
0.9716581106185913,
2.7923386096954346,
0.785398006439209,
1,
0
],
"status": "success"
,
"urn": "urn:adsk.viewing:fs.file:dXJuOmFkc2sub2JqZWN0czpvcy5vYmplY3Q6aW1tZXJzaWFfdGVzdHMvVEFJRi1TVFAtMzAtQ0RNLTMxMDAxX1RpbWVsaW5lci5ud2Q/output/0/0.svf",
"role": "graphics",
"mime": "application/autodesk-svf",
"guid": "9b21a9ef-8aef-4c8a-821d-e5c614446cae",
"type": "resource"
]
,
"urn": "urn:adsk.viewing:fs.file:dXJuOmFkc2sub2JqZWN0czpvcy5vYmplY3Q6aW1tZXJzaWFfdGVzdHMvVEFJRi1TVFAtMzAtQ0RNLTMxMDAxX1RpbWVsaW5lci5ud2Q/output/0/properties.db",
"role": "Autodesk.CloudPlatform.PropertyDatabase",
"mime": "application/autodesk-db",
"guid": "8e4c0271-e625-4b69-8662-562f34b79158",
"type": "resource",
"status": "success"
],
"name": "TAIF-STP-30-CDM-31001_Timeliner.nwd",
"progress": "complete",
"outputType": "svf",
"status": "success"
,
"status": "success",
"outputType": "arkit",
"children": [
"view_id": "8181cbda-7e23-4809-a45a-08d2499ce6a7",
"status": "success",
"startTime": "2021-04-09T09:43:43.372Z",
"endTime": "2021-04-09T10:40:55.076Z",
"type": "resource",
"name": "navisworks"
,
"view_id": "8181cbda-7e23-4809-a45a-08d2499ce6a7",
"status": "success",
"startTime": "2021-04-13T07:14:05.130Z",
"endTime": "2021-04-13T08:11:55.941Z",
"type": "resource",
"name": "taif"
]
],
"hasThumbnail": "true",
"progress": "complete",
"type": "manifest",
"region": "US",
"version": "1.0",
"status": "success"
这可能是什么原因造成的?也许缺少纹理?清单的“3d 视图”节点中的“0% 完成”?
操作编辑: 刚刚发现了一些有趣的东西。大多数网格加载在随机坐标中。只有最后 2 个项目在 0,0,0 坐标中(第一张图片)。此外,这 2 个项目的比例也不正确。
在 Navisworks 文件中将模型移近原点后:
【问题讨论】:
【参考方案1】:我相信我过去曾看到过类似的问题,即 Unity 中的几何图形与原点相距甚远,以至于根本没有出现。你可以试试:
更新原始 Navisworks 文件以将模型移近原点,或 修改加载到 Unity 的所有几何图形的位置,使其更靠近原点【讨论】:
更新原始 navisworks 文件改进了一些模型。我在 op 中添加了一个新的屏幕截图。但有些部分只是在 0,0,0 处实例化,例如屏幕截图中的地板。我检查了 navisworks 文件中的这些部分,它们位于正确的位置。以上是关于Forge ARKit - Navisworks 到 Unity的主要内容,如果未能解决你的问题,请参考以下文章
来自 navisworks 文件的 AR / VR Toolkit 不完整模型