在 SwiftUI RealityKit 应用程序中加载 DAE 文件
Load DAE file in a SwiftUI RealityKit app
我有一个 SwiftUI 应用程序,我试图在其中显示带有 RealityKit 框架的 .dae
文件。
这可能吗?还是只能加载 .reality
和 .usdz
文件?
我在代码中创建了一个简单的盒子,但渲染模型似乎有问题。
In RealityKit you can use three file formats specifically made for it: .usdz
, .rcproject
and .reality
. Mentioned file formats have hierarchical structure that correlates with RealityKit's guts.
如果您准备了其他文件格式的模型(.obj
、.gltf
、.fbx
、.abc
、.usda
、.usdc
, .usd
) 使用 usdzconvert 命令将其转换为 .usdz
.
P.S.
.dae
和 .scn
文件格式都实现了在 SceneKit 的 SCNView 和 ARKit 的 ARSCNView 中使用它们。因此,您无法将 .dae
模型加载到 RealityKit 视图中。
我有一个 SwiftUI 应用程序,我试图在其中显示带有 RealityKit 框架的 .dae
文件。
这可能吗?还是只能加载 .reality
和 .usdz
文件?
我在代码中创建了一个简单的盒子,但渲染模型似乎有问题。
In RealityKit you can use three file formats specifically made for it:
.usdz
,.rcproject
and.reality
. Mentioned file formats have hierarchical structure that correlates with RealityKit's guts.
如果您准备了其他文件格式的模型(.obj
、.gltf
、.fbx
、.abc
、.usda
、.usdc
, .usd
) 使用 usdzconvert 命令将其转换为 .usdz
.
P.S.
.dae
和 .scn
文件格式都实现了在 SceneKit 的 SCNView 和 ARKit 的 ARSCNView 中使用它们。因此,您无法将 .dae
模型加载到 RealityKit 视图中。